---

# -------------------- users

- schema: User
  name: sschwigo
  data:
    id: 12
    name: Steffen Schwigon
    login: sschwigo
    password: verysecret

# -------------------- topics

- schema: Topic
  name: software
  data:
    name: Software
    description: any non-kernel software, e.g., libraries, programs

# -------------------- testruns "perfmon", "lmbench"

- schema: Testrun
  name: perfmon
  data:
    id: 23
    owner_user_id: 12
    shortname: perfmon
    notes: perfmon
    topic_name: Software

- schema: Testrun
  name: lmbench
  data:
    id: 24
    owner_user_id: 12
    shortname: lmbench
    notes: tapper test suite lmbench wrapper
    topic_name: Distribution

- schema: Testrun
  name: foobar
  data:
    id: 4
    owner_user_id: 12
    shortname: foobar
    topic_name: Software
    wait_after_tests: 5

- schema: Testrun
  name: foobar
  data:
    id: 100
    owner_user_id: 12
    shortname: autoinstall
    notes: this testrun only exists to test autoinstall preconditions
    topic_name: Software
    wait_after_tests: ~


# -------------------- preconditions

- schema: Precondition
  name: tapper-tools
  data:
    id: 7
    shortname: tapper-tools
    precondition: some yaml here 1

- schema: Precondition
  name: perl-5.10
  data:
    id: 8
    shortname: perl-5.10
    precondition: some yaml here 2

- schema: Precondition
  name: gcc
  data:
    id: 9
    shortname: gcc-4.2
    precondition: some yaml here 3

- schema: Precondition
  name: glibc
  data:
    id: 10
    shortname: glibc-2.1
    precondition: some yaml here 4

- schema: Precondition
  name: gcc
  data:
    id: 11
    shortname: gcc-4.2
    precondition: some yaml here 5


- schema: Precondition
  name: autoinstall
  data:
    id: 101
    shortname: auto_auto
    precondition: |
      ---
      precondition_type: autoinstall
      timeout: 10800
      filename: suse/SLES10SP3_x86_64.lst

- schema: Precondition
  name: Config for autoinstall
  data:
    id: 102
    shortname: auto_prc
    precondition: |
      ---
      precondition_type: testprogram
      runtime: 30
      program: /bin/uname_tap.sh
      timeout: 90


# -------------------- "perfmon" <== "perl", "tapper-tools"

- schema: TestrunPrecondition
  name: 1st precondition for perfmon
  data:
    testrun_id: 23
    precondition_id: 8
    succession: 1

- schema: TestrunPrecondition
  name: 2nd preconditions for perfmon
  data:
    testrun_id: 23
    precondition_id: 7
    succession: 2

# -------------------- "lmbench" <== "perl", "tapper-tools", "gcc", "glibc"

- schema: TestrunPrecondition
  name: 1st precondition for lmbench
  data:
    testrun_id: 24
    precondition_id: 8
    succession: 1

- schema: TestrunPrecondition
  name: 2nd preconditions for lmbench
  data:
    testrun_id: 24
    precondition_id: 7
    succession: 2

- schema: TestrunPrecondition
  name: 3rd preconditions for lmbench
  data:
    testrun_id: 24
    precondition_id: 9
    succession: 3

- schema: TestrunPrecondition
  name: 4th preconditions for lmbench
  data:
    testrun_id: 24
    precondition_id: 10
    succession: 4

# -------------------- "perl" <== "gcc(9)", "glibc"

- schema: PrePrecondition
  name: 1st precondition for perl
  data:
    parent_precondition_id: 8
    child_precondition_id: 9
    succession: 1

- schema: PrePrecondition
  name: 2nd precondition for perl
  data:
    parent_precondition_id: 8
    child_precondition_id: 10
    succession: 2

# -------------------- "tapper-tools" <== "gcc(11)"

- schema: PrePrecondition
  name: make tapper-tools a parent for another gcc-4.2
  data:
    parent_precondition_id: 7
    child_precondition_id: 11
    succession: 1

# -------------------- "autoinstall"

- schema: TestrunPrecondition
  name: First precondition for autoinstall
  data:
    testrun_id: 100
    precondition_id: 101
    succession: 1

- schema: TestrunPrecondition
  name: Second precondition for autoinstall
  data:
    testrun_id: 100
    precondition_id: 102
    succession: 2

# ==================== "scheduling"

# -------------------- "queues"

- schema: Queue
  name: Xen Queue
  data:
    id: 1
    name: Xen
    priority: 300
    active: 1

- schema: Queue
  name: KVM Queue
  data:
    id: 2
    name: KVM
    priority: 200
    active: 1

- schema: Queue
  name: Kernel Queue
  data:
    id: 3
    name: Kernel
    priority: 10
    active: 1

# -------------------- "test requests" (Testruns)

# ======================= Xen requests =========================

# --- aaa ---

- schema: Testrun
  name: aaa-xen
  data:
    id: 1001
    owner_user_id: 12
    shortname: aaa-xen
    notes: aaa
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: aaa-mem-8000
  data:
    id: 101
    testrun_id: 1001            # aaa
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-aaa
  data:
    id: 101
    testrun_id: 1001            # aaa
    queue_id: 1                 # Xen
    host_id: 9

# --- aaa2 ---

- schema: Testrun
  name: aaa2-xen
  data:
    id: 1002
    owner_user_id: 12
    shortname: aaa2-xen
    notes: aaa2
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: aaa2-mem-8000
  data:
    id: 102
    testrun_id: 1002            # aaa2
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-aaa2
  data:
    id: 102
    testrun_id: 1002            # aaa2
    queue_id: 1                 # Xen

# --- aaa3 ---

- schema: Testrun
  name: aaa3-xen
  data:
    id: 1003
    owner_user_id: 12
    shortname: aaa3-xen
    notes: aaa3
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: aaa3-mem-8000
  data:
    id: 103
    testrun_id: 1003            # aaa3
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-aaa3
  data:
    id: 103
    testrun_id: 1003            # aaa3
    queue_id: 1                 # Xen


# ======================= KVM requests =========================

# --- bbb ---
    
- schema: Testrun
  name: bbb-kvm
  data:
    id: 2001
    owner_user_id: 12
    shortname: bbb-kvm
    notes: bbb
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: bbb-mem-8000
  data:
    id: 201
    testrun_id: 2001            # bbb
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-bbb
  data:
    id: 201
    testrun_id: 2001            # bbb
    queue_id: 2                 # KVM

# --- bbb2 ---
    
- schema: Testrun
  name: bbb2-kvm
  data:
    id: 2002
    owner_user_id: 12
    shortname: bbb2-kvm
    notes: bbb2
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: bbb2-mem-8000
  data:
    id: 202
    testrun_id: 2002            # bbb2
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-bbb2
  data:
    id: 202
    testrun_id: 2002            # bbb2
    queue_id: 2                 # KVM

# --- bbb3 ---
    
- schema: Testrun
  name: bbb3-kvm
  data:
    id: 2003
    owner_user_id: 12
    shortname: bbb3-kvm
    notes: bbb3
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: bbb3-mem-8000
  data:
    id: 203
    testrun_id: 2003            # bbb3
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-bbb3
  data:
    id: 203
    testrun_id: 2003            # bbb3
    queue_id: 2                 # KVM

# ======================= Kernel requests =========================

# --- ccc ---
    
- schema: Testrun
  name: ccc-kvm
  data:
    id: 3001
    owner_user_id: 12
    shortname: ccc-kvm
    notes: ccc
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: ccc-mem-8000
  data:
    id: 301
    testrun_id: 3001            # ccc
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-ccc
  data:
    id: 301
    testrun_id: 3001            # ccc
    queue_id: 3                 # Kernel

# --- ccc2 ---
    
- schema: Testrun
  name: ccc2-kvm
  data:
    id: 3002
    owner_user_id: 12
    shortname: ccc2-kvm
    notes: ccc2
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: ccc2-mem-8000
  data:
    id: 302
    testrun_id: 3002            # ccc2
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-ccc2
  data:
    id: 302
    testrun_id: 3002            # ccc2
    queue_id: 3                 # Kernel

# --- ccc3 ---
    
- schema: Testrun
  name: ccc3-kvm
  data:
    id: 3003
    owner_user_id: 12
    shortname: ccc3-kvm
    notes: ccc3
    topic_name: Distribution

- schema: TestrunRequestedFeature
  name: ccc3-mem-8000
  data:
    id: 303
    testrun_id: 3003            # ccc3
    feature: 'mem <= 8000'

- schema: TestrunScheduling
  name: Xen-ccc3
  data:
    id: 303
    testrun_id: 3003            # ccc3
    queue_id: 3                 # Kernel

# -------------------- hosts --------------------

- schema: Host
  name: iring
  data:
    id: 5
    name: iring
    free: 1
    active: 1

- schema: Host
  name: bullock
  data:
    id: 6
    name: bullock
    free: 1
    active: 1

- schema: Host
  name: dickstone
  data:
    id: 7
    name: dickstone
    free: 1
    active: 1

- schema: Host
  name: athene
  data:
    id: 8
    name: athene
    free: 1
    active: 1

- schema: Host
  name: bascha
  data:
    id: 9
    name: bascha
    free: 1
    active: 1
