Commit Graph

30 Commits

Author SHA1 Message Date
Zuul
ab4e518bab Merge "Replace tenant by project, part 2" 2018-06-27 12:44:52 +00:00
Zuul
16f0a1c66e Merge "Configure tempest for Octavia tests" 2018-06-26 15:29:47 +00:00
Nir Magnezi
45ed967efa Configure tempest for Octavia tests
Story: 2001768
Task: 12474

Change-Id: I457e6a31ecb631f70e3853e4dc88c9d22cac20b3
2018-06-24 23:25:18 +03:00
Martin Kopec
1bd20dca53 Replace tenant by project, part 2
Story: 2002116
Task: 20023
Change-Id: I465fe96120ed5609c2747b587963d2e5f57b55be
2018-06-22 10:42:06 +00:00
Chandan Kumar
f5bfc21351 Use healthcheck api to determine swift service
* Added check_service_status to determine the service
  availability and later on it will be used for all services.

* Removed hardcoded values for swift services
* As swift was disabled earlier, SwiftOperator was not getting used
  and it is not present in the CI Job, let's use member role for
  the same.
* Set operator_role default to admin if admin credential is available
  otherwise, set operator_role to ResellerAdmin
* Do not fail if a conflict exist in roles names

Story: 2001253
Task: 5783

Co-Authored-By: Arx Cruz <arxcruz@redhat.com>
Depends-On: https://review.openstack.org/#/c/576472/
Closes-Bug: 1776729
Change-Id: Ie1e9d8e98fde460f9270c2799f971ea017d10d84
2018-06-21 11:32:35 +02:00
Zuul
6935a898bb Merge "Generate accounts.yaml" 2018-06-15 17:39:28 +00:00
Martin Kopec
243ab6cb47 Generate accounts.yaml
Generate accounts.yaml file when create_accounts_file
is specified and test_accounts is not.

Story: 2001693
Task: 8685

Change-Id: I7ed8390b29a430d97e1846f8f868f5b6af8eb02b
2018-06-14 12:54:01 +00:00
Zuul
cf2b33b5df Merge "Allow non admin users to upload image to glance" 2018-06-13 10:56:12 +00:00
Chandan Kumar
a5c6dc0977 Allow non admin users to upload image to glance
* Currently only users having admin related permission, has the
  ability to upload image to glance which later used to set Image/
  image_alt ref in tempest.conf. In order to make easier for non-admin
  user, this changes allow the same and if the user does not have
  permission to do the same, it will log an exception with the
  proper message as non-admin user can upload the image from CLI.

* Fixed set_default_tempest_options method for image as it is giving
  AttributeError: 'ImageService' object has no attribute 'image_path
  because image_path is set in set_image_preferences which is called
  after service_class in main.py which leads to the above error.

* Removed additional overrides image.http_image from roles

Change-Id: I3ab32b6c5628281f55193291cd367dcdb76a5571
2018-06-12 15:44:06 +00:00
Martin Kopec
4912283b03 Remove admin_* from identity section
Since Tempest 12 following values are removed from
identity section:
 - admin_username
 - admin_password
 - admin_project_name
The values were moved to auth section.

Change-Id: Ia98c9449b3fdc7aae40d204f0e2da44f987a5f9d
2018-06-11 14:46:56 +00:00
Martin Kopec
283de20574 Replace tenant by project, part 1
Replace use of tenant when it's setting to or reading from
tempest.conf (conf object).
The change is needed for correct reading of that value in
dependent patches - need to count on that it's project not
tenant anymore.

Change-Id: Ic2987ce322a0cd4a92d35b06a86aec95226f981e
Story: 2002116
Task: 19795
2018-06-11 12:06:56 +00:00
Zuul
ebbd17a1ce Merge "Validation support" 2018-06-04 16:52:14 +00:00
Zuul
32761d4175 Merge "Load deployer input file automatically" 2018-06-04 12:04:18 +00:00
Martin Kopec
275b6b7591 Validation support
validation.image_ssh_user option is heavily used in CI and it's also needed
in refstack. Therefor set the value automatically when image used is cirros.

Change-Id: Ib823380225fda78462c727e50a0f4f82b6da4e74
2018-06-04 11:54:31 +00:00
Zuul
90653f2a62 Merge "Don't expose user credentials" 2018-06-04 11:51:27 +00:00
Martin Kopec
ed5163e729 Don't expose user credentials
When --test-accounts is used, don't print any user credentials
to a tempest.conf file.

Depends-On: https://review.openstack.org/#/c/570822/
Change-Id: Ic7977ed9e0e03d04aca446407b22a9a73c2dca98
2018-06-01 12:17:42 +00:00
Arx Cruz
42ba94a164 Load deployer input file automatically
This patch add the load of deployer-input automatically, if exists in
default path (~/tempest-deployer-input.conf).
It also add the option to not load it, with --no-default-deployer
This will fix the cases that user miss to add --deployer-input and
tempestconf miss some configuration due of that.

Change-Id: I17ce46bac06158dd3cca298f33c6ea929051fb06
2018-06-01 10:21:13 +00:00
Arx Cruz
9be036cf1f Enhancements in nova support
This patch add the discover of nova following options:
* compute-feature-enabled.attach_encrypted_volume

Also add the defaults to the following to true:
* compute-feature-enabled.console_output
* compute-feature-enabled.resize

Change-Id: I96f140de50d5cfaeaab06e1e4d15e427c50b215b
2018-05-28 11:06:12 +02:00
Arx Cruz
ff5fbcbdb3 Load basic default config
This patch reduce the requirements of the values in the
defaults-overrides file when the user run the tool without
it.

Change-Id: I2a6d375598ee39789f81da750ba02783da2a83c2
2018-05-15 11:51:42 +02:00
Emilien Macchi
6d2c9941b4 Switch endpoint_type to publicURL
We were using adminURL to talk to Keystone API but in most cases, we run Tempest
from outside of admin network for security reasons. We now use public URL, so the
public network, which is what we expect our cloud users to do.

Change-Id: Iefcca23dc7593148cfa836d588d484cac0707851
2017-11-23 23:25:05 +00:00
Prateek Arora
d03fa08aba Add new parameter in place of deprecated one
The allow_tenant_isolation parameter has been replaced by
use_dynamic_credentials. As such added the parameter and removed
the old one. The default location from where tempest expects
to pick up the file containing credentials is also added
in the patch. The file location is only added when the file
is being used.

Change-Id: I2e2ec3bcc88570a55cf97bd4b74278970ffa0564
2017-05-15 03:44:26 -04:00
Prateek Arora
d430dcd548 Add support for admin parameters moving to auth
The admin parameters have been moved to auth. As such this patch
tries to find them under auth section and if they are not found
falls back to the older method.

Change-Id: Ic2676a949dbc92abca270a58ea5a39ef494702de
2017-05-05 06:59:48 -04:00
Daniel Mellado
723f92d022 Add os-client-config support
This patch adds os-client-config[1] support to python-tempestconf.
Further documentation on usage has been added to the included release
note. In addition, all args from os-client-config are supported.

[1] https://github.com/openstack/os-client-config

Co-Authored-By: Martin Kopec <mkopec@redhat.com>
Closes Issue: #2
Change-Id: I79e7ffb42071abcf1744f21265660fd5cfe0c6a0
2017-04-12 09:43:28 +02:00
Martin Kopec
3deb8061aa Add ability to remove any option from tempest.conf
A user will be able to specify which values should not be included in
tempest configuration file through --remove argument.
For ommiting value(s):
--remove section.key=value[,value2[...]]

For ommiting all values in section.key:
--remove section.key

Patch removes network.remove-extension option, because the patch is more
generic solution of the same issue.

Change-Id: I0375f2bbfa3bb7db4f9b81ea1518e86d725c30a3
2017-04-11 15:53:32 +00:00
Chandan Kumar
08903197d3 Added network.remove-extension option
* It will remove a list of api-extension from network-api-extension
* If this argument is not passed, it will not remove anything.
* Currently neutron ext-list provides available extensions
  but it doesnot lists enabled extensions. So we have added
  an option to remove extension based on need. As there is a
  neutron for the same:
  https://bugs.launchpad.net/neutron/+bug/1450067

Change-Id: Id205e972bee406ae30e44d3d7cdda619ecb1f5c6
2017-03-07 14:33:46 +00:00
Martin Kopec
088ec97bf0 Add unit tests
The patch adds unit tests for methods of api_discovery module.

Change-Id: Idc0f4b511e5d54e8a21ade6694e18add12c4e9ec
2017-02-07 11:20:40 +00:00
Luigi Toscano
110b7338e9 Merge "Enable configuration of manila service" 2017-01-20 12:49:25 -05:00
Dustin Schoenbrun
fba815f9c0 Enable configuration of manila service
This change allows the config_tempest.py script to be able to
configure Tempest to Test Manila by default by adding it to the
list of available services.

Change-Id: Ic21752f723b5856fbdbc76b55b81d9eec949aa2d
2017-01-20 12:41:58 -05:00
Daniel Mellado
e9194b99ec Start using reno for release notes
This commit starts using reno for tracking release notes and
documentation on the python-tempestconf project.

Change-Id: I26de978d4db7b6e67451be56dbf007a7918b4a7a
2017-01-20 14:28:26 +01:00
Martin Kopec
8c913923a0 Initial Cookiecutter Commit. 2016-08-24 17:21:57 +02:00