Skip to content

Commit

Permalink
Merge pull request #219 from richm/tags-for-nvme-scsi
Browse files Browse the repository at this point in the history
tag tests that use NVME and SCSI
  • Loading branch information
richm authored Aug 3, 2021
2 parents 35fe83d + 4398706 commit fb5b374
Show file tree
Hide file tree
Showing 77 changed files with 309 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/scripts/generate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::%s
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "%s"
- import_playbook: %s
tags:
- tests::%s
"""

# list of interfaces which will have their files generated
Expand All @@ -47,7 +51,7 @@ def generate_file(org_filename, iface):
gen_path_file = path.join(TARGET_PATH, generate_filename(org_filename, iface))

with open(gen_path_file, "w") as f:
f.write(TEST_FILE_CONTENTS % (iface, org_filename))
f.write(TEST_FILE_CONTENTS % (iface, iface, org_filename, iface))


# will new test be generated based on this item?
Expand Down
4 changes: 4 additions & 0 deletions tests/tests_change_disk_fs_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_change_disk_fs.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_change_disk_fs_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_change_disk_fs.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_change_disk_mount_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_change_disk_mount.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_change_disk_mount_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_change_disk_mount.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_change_fs_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_change_fs.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_change_fs_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_change_fs.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_change_fs_use_partitions_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_change_fs_use_partitions.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_change_fs_use_partitions_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_change_fs_use_partitions.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_change_mount_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_change_mount.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_change_mount_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_change_mount.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_create_disk_then_remove_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_disk_then_remove.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_create_disk_then_remove_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_disk_then_remove.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_create_lv_size_equal_to_vg_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_lv_size_equal_to_vg.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_create_lv_size_equal_to_vg_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_lv_size_equal_to_vg.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_create_lvm_pool_then_remove_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_lvm_pool_then_remove.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_create_lvm_pool_then_remove_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_lvm_pool_then_remove.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_create_lvmvdo_then_remove_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_lvmvdo_then_remove.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_create_lvmvdo_then_remove_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_lvmvdo_then_remove.yml
tags:
- tests::scsi
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_partition_volume_then_remove.yml
tags:
- tests::nvme
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_partition_volume_then_remove.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_create_raid_pool_then_remove_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_raid_pool_then_remove.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_create_raid_pool_then_remove_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_raid_pool_then_remove.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_create_raid_volume_then_remove_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_create_raid_volume_then_remove.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_create_raid_volume_then_remove_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_create_raid_volume_then_remove.yml
tags:
- tests::scsi
4 changes: 4 additions & 0 deletions tests/tests_default_nvme_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::nvme
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "nvme"

- import_playbook: tests_default.yml
tags:
- tests::nvme
4 changes: 4 additions & 0 deletions tests/tests_default_scsi_generated.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# This file was generated by generate_tests.py
- hosts: all
tags:
- tests::scsi
tasks:
- name: set disk interface for test
set_fact:
storage_test_use_interface: "scsi"

- import_playbook: tests_default.yml
tags:
- tests::scsi
Loading

0 comments on commit fb5b374

Please sign in to comment.