Given a whitelist of the following format
$ cat whitelist.txt
tempest.api.network.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_create_list_show_floating_ip_with_tenant_id_by_admin
tempest.api.network.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_list_floating_ips_from_admin_and_nonadmin
tempest.api.network.admin.test_negative_quotas.QuotasNegativeTest.test_network_quota_exceeding
tempest.api.network.test_networks.NetworksIpV6Test.test_external_network_visibility
tempest.api.network.test_networks.NetworksTest.test_external_network_visibility
ostestr --whitelist-file whitelist.txt --list
will not match the list provided.
Perhaps it couldn't find any tests because it does not use regex when listing files from a whitelist and defaults to listing all tests if the result set is empty but I would like to have the output to include the test metadata too, like
tempest.scenario.test_volume_migrate_attached.TestVolumeMigrateRetypeAttached.test_volume_migrate_attached[compute,id-deadd2c2-beef-4dce-98be-f86765ff311b,slow,volume]
When running with a whitelist it does run the correct files (I don't have services running at the moment).
$ ostestr --whitelist-file whitelist.txt
2017-10-26 12:32:35.648 10441 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2017-10-26 12:32:35.676 10443 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2017-10-26 12:32:35.696 10445 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2017-10-26 12:32:35.699 10447 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
{0} setUpClass (tempest.api.network.test_networks.NetworksIpV6Test) ... SKIPPED: Neutron support is required
{1} setUpClass (tempest.api.network.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON) ... SKIPPED: Neutron support is required
{3} setUpClass (tempest.api.network.admin.test_negative_quotas.QuotasNegativeTest) ... SKIPPED: Neutron support is required
{2} setUpClass (tempest.api.network.test_networks.NetworksTest) ... SKIPPED: Neutron support is required
as advertised, the list option states:
--list, -l List all the tests which will be run.
but we can clearly see the --list option print all the tests, I did not include them for brevity but you can try it out.
stestr works fine though so we can skip this if we plan on replacing ostestr with stestr :)
$ stestr list --whitelist-file whitelist.txt
tempest.api.network.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_list_floating_ips_from_admin_and_nonadmin[id-64f2100b-5471-4ded-b46c-ddeeeb4f231b]
tempest.api.network.test_networks.NetworksTest.test_external_network_visibility[id-af774677-42a9-4e4b-bb58-16fe6a5bc1ec,smoke]
tempest.api.network.test_networks.NetworksIpV6Test.test_external_network_visibility[id-af774677-42a9-4e4b-bb58-16fe6a5bc1ec,smoke]
tempest.api.network.admin.test_negative_quotas.QuotasNegativeTest.test_network_quota_exceeding[id-644f4e1b-1bf9-4af0-9fd8-eb56ac0f51cf,negative]
tempest.api.network.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_create_list_show_floating_ip_with_tenant_id_by_admin[id-32727cc3-abe2-4485-a16e-48f2d54c14f2]
Given a whitelist of the following format api.network. admin.test_ floating_ ips_admin_ actions. FloatingIPAdmin TestJSON. test_create_ list_show_ floating_ ip_with_ tenant_ id_by_admin api.network. admin.test_ floating_ ips_admin_ actions. FloatingIPAdmin TestJSON. test_list_ floating_ ips_from_ admin_and_ nonadmin api.network. admin.test_ negative_ quotas. QuotasNegativeT est.test_ network_ quota_exceeding api.network. test_networks. NetworksIpV6Tes t.test_ external_ network_ visibility api.network. test_networks. NetworksTest. test_external_ network_ visibility
$ cat whitelist.txt
tempest.
tempest.
tempest.
tempest.
tempest.
ostestr --whitelist-file whitelist.txt --list
will not match the list provided.
Perhaps it couldn't find any tests because it does not use regex when listing files from a whitelist and defaults to listing all tests if the result set is empty but I would like to have the output to include the test metadata too, like scenario. test_volume_ migrate_ attached. TestVolumeMigra teRetypeAttache d.test_ volume_ migrate_ attached[ compute, id-deadd2c2- beef-4dce- 98be-f86765ff31 1b,slow, volume]
tempest.
When running with a whitelist it does run the correct files (I don't have services running at the moment).
$ ostestr --whitelist-file whitelist.txt tempest. conf tempest. conf tempest. conf tempest. conf api.network. test_networks. NetworksIpV6Tes t) ... SKIPPED: Neutron support is required api.network. admin.test_ floating_ ips_admin_ actions. FloatingIPAdmin TestJSON) ... SKIPPED: Neutron support is required api.network. admin.test_ negative_ quotas. QuotasNegativeT est) ... SKIPPED: Neutron support is required api.network. test_networks. NetworksTest) ... SKIPPED: Neutron support is required
2017-10-26 12:32:35.648 10441 INFO tempest [-] Using tempest config file /etc/tempest/
2017-10-26 12:32:35.676 10443 INFO tempest [-] Using tempest config file /etc/tempest/
2017-10-26 12:32:35.696 10445 INFO tempest [-] Using tempest config file /etc/tempest/
2017-10-26 12:32:35.699 10447 INFO tempest [-] Using tempest config file /etc/tempest/
{0} setUpClass (tempest.
{1} setUpClass (tempest.
{3} setUpClass (tempest.
{2} setUpClass (tempest.
as advertised, the list option states:
--list, -l List all the tests which will be run.
but we can clearly see the --list option print all the tests, I did not include them for brevity but you can try it out.
stestr works fine though so we can skip this if we plan on replacing ostestr with stestr :) api.network. admin.test_ floating_ ips_admin_ actions. FloatingIPAdmin TestJSON. test_list_ floating_ ips_from_ admin_and_ nonadmin[ id-64f2100b- 5471-4ded- b46c-ddeeeb4f23 1b] api.network. test_networks. NetworksTest. test_external_ network_ visibility[ id-af774677- 42a9-4e4b- bb58-16fe6a5bc1 ec,smoke] api.network. test_networks. NetworksIpV6Tes t.test_ external_ network_ visibility[ id-af774677- 42a9-4e4b- bb58-16fe6a5bc1 ec,smoke] api.network. admin.test_ negative_ quotas. QuotasNegativeT est.test_ network_ quota_exceeding [id-644f4e1b- 1bf9-4af0- 9fd8-eb56ac0f51 cf,negative] api.network. admin.test_ floating_ ips_admin_ actions. FloatingIPAdmin TestJSON. test_create_ list_show_ floating_ ip_with_ tenant_ id_by_admin[ id-32727cc3- abe2-4485- a16e-48f2d54c14 f2]
$ stestr list --whitelist-file whitelist.txt
tempest.
tempest.
tempest.
tempest.
tempest.