summaryrefslogtreecommitdiff
path: root/tempest/api
Commit message (Collapse)AuthorAgeFilesLines
* Switch all uses of urlparse to import from sixMatthew Treinish2015-04-237-7/+7
| | | | | | | | | As part of enabling python3 support in tempest we need to be able to handle urlparse usage in both python2 and python3. Six provies a compat layer for doing this, so this commit moves all uses of urllparse to get it through six. Change-Id: Ic9c15d90fd3b8413fec4d01a070cc167f7536e62
* Switch all uses of StringIO to use it from sixMatthew Treinish2015-04-237-20/+18
| | | | | | | | | As part of enabling python3 support in tempest we need to be able to handle StringIO usage in both python2 and python3. Six provides a compat layer for doing this, so this commit moves all uses of StringIO and cStringIO to get it through six. Change-Id: Ie6ac86b3b5ed2c307dc2cc41386da9e5ba1ee23e
* Merge "Apply a naming rule of GET to messaging client"Jenkins2015-04-203-11/+11
|\
| * Apply a naming rule of GET to messaging clientKen'ichi Ohmichi2015-04-133-11/+11
| | | | | | | | | | | | | | | | | | | | [GET /resources] methods should be "list_<resource name>s" or "show_<resource name>", so this patch applies the rule to messaging client. Partially implements blueprint consistent-service-method-names Change-Id: Ibae5f78b3dee12dbab5095872b8d868fbfec7f5d
* | Add network support to the accounts providersMatthew Treinish2015-04-141-1/+4
|/ | | | | | | | | | | | | | | | This commits adds support for specifying the network to use with a user/tenant into the accounts.yaml file. You can only specify a single network which will be the network used for all that requires a pre-existing network. This also means regardless of which cred provider is configured the fixed_network can assume a TestResource object will be returned from a get_creds call. As part of this change a common method to return the full network dict from a just a network name is abstracted out into tempest.common.fixed_network module since this same method is needed to have the accounts file provide a network by name. Partially-implements: bp test-accounts-continued Change-Id: I6f5ac1239d18f2935847b385a08de608f40fdda5
* Merge "Apply a naming rule of GET to orchestration client"Jenkins2015-04-107-22/+27
|\
| * Apply a naming rule of GET to orchestration clientKen'ichi Ohmichi2015-04-077-22/+27
| | | | | | | | | | | | | | | | | | | | [GET /resources] methods should be "list_<resource name>s" or "show_<resource name>", so this patch applies the rule to orchestration client. Partially implements blueprint consistent-service-method-names Change-Id: I5a0d046d3811d48d3e4bddae8b0f022762c621c8
* | Merge "Apply a naming rule of GET to volume client"Jenkins2015-04-1022-74/+75
|\ \ | |/
| * Apply a naming rule of GET to volume clientKen'ichi Ohmichi2015-04-0722-74/+75
| | | | | | | | | | | | | | | | | | | | [GET /resources] methods should be "list_<resource name>s" or "show_<resource name>", so this patch applies the rule to volume client. Partially implements blueprint consistent-service-method-names Change-Id: I843dd43293f40bf673a033b1dbf24e035bc8f0c3
* | Merge "Prevent failures when running as non-admin"Jenkins2015-04-092-7/+11
|\ \
| * | Prevent failures when running as non-adminDavid Kranz2015-04-072-7/+11
| |/ | | | | | | | | | | | | | | | | | | | | In some cases a skip method was needed to check for non-admin. In other cases there was already a try/except to handle on-admin but it needed to be changed to use is_admin_available. NegativeAutoTest was changed to push creation of an admin client to the point where the need has been established. Also fixed some skip_checks methods to call super first. Change-Id: Ie58135285a4c95c2eed9c0462c4e76af3ad5d97e
* | Make L3AgentSchedulerTestJSON DVR-awareSwaminathan Vasudevan2015-04-071-0/+15
|/ | | | | | | | | | | | | | | | test_add_list_remove_router_on_l3_agent fails when testing with DVR routers as distributed routers follow a different agent binding logic. Due to this failure, performance improvements like e99f6e00 were reverted. This called for a revision of the test case. This change ensures that, when needed, the test provisions extra resources so that the binding logic can be successful. Closes-Bug: #1433349 Co-Authored-By: Armando Migliaccio <armamig@gmail.com> Change-Id: I15bbf16fd4378c6431e9da8942d0968e7a012a91
* Merge "L3 Agent Scheduler testcase cleanups"Jenkins2015-04-061-9/+18
|\
| * L3 Agent Scheduler testcase cleanupsarmando-migliaccio2015-04-011-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | This patch cleans up the test case a bit: it uses the base class method to create/delete routers, and ensure that, when selecting the L3 agent, this is of a specific type, i.e. legacy. In multi node environments, and especially the ones post-Juno, there may be more than one L3 agent running and having the ability to filter based on the type is instrumental to getting this test case to work while validating multi-node deployments. Change-Id: I479b8f52e6da0f520bda965580beddbae0c6a296
* | Merge "Testcase to create domain without description"Jenkins2015-04-031-0/+12
|\ \
| * | Testcase to create domain without descriptionravikumar-venkatesan2015-03-121-0/+12
| | | | | | | | | | | | | | | | | | | | | This submission adds "test_create_domain_without_description" testcase to test_domains.py. Change-Id: I3ab22f6dc9505a7e2e65d40af30cec7276efba31
* | | Rename test_live_block_migration to test_live_migrationJoe Gordon2015-04-021-0/+0
| |/ |/| | | | | | | | | | | | | | | These tests can actually test both block and regular live migration, so update the filename to reflect that. Also move test to admin, since by default migration is a admin only API call Change-Id: Ibdae2e8ba9b537ed721bc4448d7107d3f8eaf013
* | Merge "Add API tests for Neutron DVR extension"Jenkins2015-03-304-16/+77
|\ \
| * | Add API tests for Neutron DVR extensionarmando-migliaccio2015-03-274-16/+77
| | | | | | | | | | | | | | | | | | | | | This patch adds a number of positive and negative tests for the DVR functionality implemented by Neutron. Change-Id: I6d3fbf7c480c23a4500af115891f63ea058dcfac
* | | Merge "Remove hyphen from rand_name calls in identity tests"Jenkins2015-03-3022-151/+151
|\ \ \
| * | | Remove hyphen from rand_name calls in identity testsKen'ichi Ohmichi2015-03-2622-151/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data_utils.rand_name() appends randam charactors with a hypen like: def rand_name(name=''): randbits = str(random.randint(1, 0x7fffffff)) if name: return name + '-' + randbits So it is not necessary to specify a hypen in caller side. This patch removes a hypen in identity tests. Change-Id: I8b1eb0ea1db708fa02673b3c3963fcb39d1a3ff6
* | | | Merge "Handle fixed_network edge cases gracefully"Jenkins2015-03-302-9/+25
|\ \ \ \
| * | | | Handle fixed_network edge cases gracefullyMatthew Treinish2015-03-272-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we added support for using the fixed_network_name config option to specify the network to boot with in a multi-network env a couple of configuration edge cases were not taken into account. First the case of misconfiguration was not handled at all this would cause an ugly IndexError exception to be raised because no matches were found for the name specified in config. The other was since the default config option was set to 'private' and fixed network name is always used when configured the default for single network environments broke if the single network. This commit addresses these by removing the default value for fixed_network_name (and making the help more clear) and having fixed_network_name handle the misconfiguration case more clearly by raising an InvalidConfiguration exception. Change-Id: I06ac0605a1a7e35d1af9a93a3bfc387a78f8be1c Closes-Bug: #1437328
* | | | | Merge "Non-admin token tests for Keystone API"Jenkins2015-03-275-15/+144
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Non-admin token tests for Keystone APIChris Hoge2015-03-255-15/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds non-admin token tests for Keystone/identity API. Work in support of adding Defcore/interop capabilities for identity. Currently only supports get token for v2 and v3. Depends-On: I06fd043e1b31ae0e5e33f4dcf898fb58f2907267 Change-Id: I2134e5694fdbab13b4b19205ecba5711dbac0c25
* | | | | Merge "Split resource_setup for network tests"Jenkins2015-03-2727-96/+172
|\ \ \ \ \
| * | | | | Split resource_setup for network testsRohan Kanade2015-03-2727-96/+172
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split up the resource_setup method for all the network tests, as per the latest spec. Partially-implements bp:resource-cleanup Change-Id: If96a154cfe65dd3d18ff6b1e1943ccfb1db7300e
* | | | | Merge "Remove hyphen from rand_name calls in compute tests"Jenkins2015-03-2717-55/+55
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| |
| * | | Remove hyphen from rand_name calls in compute testsKen'ichi Ohmichi2015-03-2617-55/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data_utils.rand_name() appends randam charactors with a hypen like: def rand_name(name=''): randbits = str(random.randint(1, 0x7fffffff)) if name: return name + '-' + randbits So it is not necessary to specify a hypen in caller side. This patch removes a hypen in compute tests. Change-Id: Ibed983d75ad9fdbb1f90100863ba0ff1934ab644
* | | | Start instances using fixed network when possibleRohan Kanade2015-03-268-21/+41
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses the fixed_network_name option to select which network to boot test instances on. This allows Tempest to be run in environments where there are multiple networks available. This problem does not apply to nova-network environments because it will happily start instances with multiple networks attached, so the behavior is left as before in that case. Co-Authored-By: Ben Nemec <bnemec@redhat.com> Co-Authored-By: Vincent Untz <vuntz@suse.com> Co-Authored-By: git-harry <git-harry@live.co.uk> Change-Id: Ib5b84b59e3d182d8b9cc83954537c32f3eb9e388 Closes-Bug: #1250866
* | | Remove hyphen from rand_name calls in baremetal testsKen'ichi Ohmichi2015-03-252-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data_utils.rand_name() appends randam charactors with a hypen like: def rand_name(name=''): randbits = str(random.randint(1, 0x7fffffff)) if name: return name + '-' + randbits So it is not necessary to specify a hypen in caller side. This patch removes a hypen in baremetal tests. Change-Id: I43fde9b537f7d225266ebb3950b6768aa7ae9fae
* | | Remove hyphen from rand_name calls in image testsKen'ichi Ohmichi2015-03-253-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data_utils.rand_name() appends randam charactors with a hypen like: def rand_name(name=''): randbits = str(random.randint(1, 0x7fffffff)) if name: return name + '-' + randbits So it is not necessary to specify a hypen in caller side. This patch removes a hypen in image tests Change-Id: Iac422b107ca558e5b41d9ad3fbde051b012df56c
* | | Remove hyphen from rand_name calls in volume testsKen'ichi Ohmichi2015-03-258-25/+25
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | data_utils.rand_name() appends randam charactors with a hypen like: def rand_name(name=''): randbits = str(random.randint(1, 0x7fffffff)) if name: return name + '-' + randbits So it is not necessary to specify a hypen in caller side. This patch removes a hypen in volume tests. Change-Id: I1ea38961053cf751b14e261321d6695a8c11dd54
* | Merge "Fixing spelling error in the message when test is skipped"Jenkins2015-03-201-1/+1
|\ \
| * | Fixing spelling error in the message when test is skippedYaroslav Lobankov2015-03-171-1/+1
| | | | | | | | | | | | Change-Id: If64c47071b5d68b44082b742886f49ed92c9893d
* | | Respect configured credential provider everywhereMatthew Treinish2015-03-183-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes all the uses of the old AdminManager and Manager() constructs to use cls.isolated_creds to provide user credentials from whatever the configured credential provider is being used instead of assuming it's the non-locking accounts provider without an accounts.yaml file. As part of this we need to add a heat option for the stack owner role so that we can request the creds by that role. The heat tests were previously making an implicit assumption about the configured user having that role assigned. Which while true in devstack today, it isn't necessarily the case everywhere. Depends-On: Id98a83f0a716de0fdb5f36d03407364830e8fa5f Closes-Bug: #1433723 Change-Id: Ie071cb2cb6add591a60c9d76a12c95b7fb5ee539
* | | Remove redundant calls to clear_isolated_credsAndrea Frittoli2015-03-176-10/+0
|/ / | | | | | | | | | | | | | | | | clear_isolated_creds is executed as part of the class teardown defined in test.py. Test classes and base classes do not need to invoke it anymore, so removing any redundant invocation. Change-Id: I5a9ac66a6c5d41bf0274d022e7b6b4a1932c77df Partially-implements: bp/resource-cleanup
* | Merge "Update test to fail instead of skip if floating pool is already ↵Jenkins2015-03-171-1/+2
|\ \ | | | | | | | | | allocated"
| * | Update test to fail instead of skip if floating pool is already allocatedRichard Winters2015-03-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The FloatingIPsBulkAdminTestJSON skips instead of fail if the pool is already configured. This patch updates the test to fail when the floating pool is found to be already configured. Change-Id: Iee5317c174c9abfc3514b6833d35e17969b15693 Closes-Bug: #1401280
* | | Merge "remove redundant negative flavor admin tests"Jenkins2015-03-131-120/+0
|\ \ \
| * | | remove redundant negative flavor admin testsSean Dague2015-03-121-120/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests are now in the nova functional test tree, which is a better place to put them. The nova tests go a step further and actually verify the database is correct after these land. Depends-On: I0cc37c0a49e26b965403bb3ed59ff4569f0952f1 Change-Id: I37a5ccc0f1ff0a62f0f097e80620ec1883ba61f3
* | | | Merge "Replace hardcoded volume size by created volume size"Jenkins2015-03-132-4/+9
|\ \ \ \
| * | | | Replace hardcoded volume size by created volume sizeMarkus Zoeller2015-03-102-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the volumes_client is configured to use a volume_size different from the hardcoded value "1", an error will be raised. This patch replaces the hardcoded value by the actual size of the created volume. Closes-Bug: 1430375 Change-Id: Ie6593b5c60c697b62a65a38d37e4942e9e80cc10
* | | | | Merge "Create test nodes for test_baremetal_nodes"Jenkins2015-03-131-9/+21
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Create test nodes for test_baremetal_nodesAdam Gandelman2015-03-111-9/+21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test currently relies on pre-existing resources and races if run in parallel to other baremetal tests. This adds creation of 3 test nodes directly in Ironic to be tested via the Nova API extension. This also tags said test with the 'baremetal' test attribute. Closes-bug: #1425258 Change-Id: I4dbd37bdb2019b6eb0140d46a605d5c8392323f4
* | | | Merge "Allow full v3 authentication"Jenkins2015-03-124-12/+14
|\ \ \ \ | |_|_|/ |/| | |
| * | | Allow full v3 authenticationJamie Lennox2015-03-124-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow authenticating with ids and fetching domain scoped tokens. Changes the acceptable parameters to more specific parameter names so that _id and _name parameters can no longer be confused. This tries to not change the config file and existing credential loading paths. Closes-Bug: #1420605 Change-Id: If5a889be5826d60bf61dbb84661a5896cb094875
* | | | Merge "Fix: don't hardcode admin role name, use config option instead"Jenkins2015-03-121-1/+1
|\ \ \ \
| * | | | Fix: don't hardcode admin role name, use config option insteadPeter Sabaini2015-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I7d80de4f8d1df97901041aaccadae2a426c868eb
* | | | | Merge "Fix unpack error in test_list_servers_detailed_filter_by_image"Jenkins2015-03-121-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | |