<commit_before><commit_msg>MCP: added fixture for unit test<commit_after>---

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

- schema: User
  name: sschwigo
  data:
    id: 12
    name: <NAME>
    login: sschwigo
    password: <PASSWORD>

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

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


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

- 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

# -------------------- "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 =========================

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

# --- ccc ---

- schema: Testrun
  name: ccc-kernel
  data:
    id: 3001
    owner_user_id: 12
    shortname: ccc-kernel
    notes: ccc
    topic_name: old_topic

- schema: TestrunScheduling
  name: Kernel-ccc
  data:
    id: 301
    testrun_id: 3001            # ccc
    queue_id: 3                 # Kernel
    auto_rerun: 1
    status: schedule

# --- ccc2 ---

- schema: Testrun
  name: ccc2-kernel
  data:
    id: 3002
    owner_user_id: 12
    shortname: ccc2-kernel
    notes: ccc2
    topic_name: old_topic

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


# -------------------- 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: 0

# -------------------- "Host Yaron queuebound to KVM"

- schema: QueueHost
  name: YaronKVM
  data:
    queue_id: 2
    host_id: 10



# -------------------- "preconditions for scheduled tests 1"

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

- schema: TestrunPrecondition
  name: 1st precondition for perfmon
  data:
    testrun_id: 3001
    precondition_id: 6
    succession: 2

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


# -------------------- "preconditions for scheduled tests 2"

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

- schema: TestrunPrecondition
  name: 1st precondition for perfmon
  data:
    testrun_id: 3002
    precondition_id: 5
    succession: 2


# -------------------- Testrequest with requested host bound to queue

- schema: Testrun
  name: bound-kernel
  data:
    id: 3010
    owner_user_id: 12
    shortname: bound-kernel
    notes: bound
    topic_name: old_topic

- schema: TestrunRequestedHost
  name: bound-yaron
  data:
    id: 310
    testrun_id: 3010            # bound-kernel
    host_id: 10                 # yaron

- schema: TestrunScheduling
  name: Kernel-bound
  data:
    id: 310
    testrun_id: 3010            # ccc
    queue_id: 3                 # Kernel
    auto_rerun: 1
    status: prepare

{'fraction_non_alphanumeric': 0.15098722415795587, 'fraction_numerical': 0.03716608594657375, 'mean_word_length': 1.9574175824175823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5007767', 'n_tokens_mistral': 1570, 'n_tokens_neox': 1396, 'n_words': 402}