40 Commits

Author SHA1 Message Date
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
Martin Kopec
c9b3c78c72 Merge "Rename IdentityV3Client to IdentityClient" 2017-03-27 09:27:40 -04:00
Luigi Toscano
04472ac09f Convert the README from Markdown to reStructuredText
So that the format matches the extension.
The other option would have been to rename the file to README.md,
but that would require changes in the spec file for RDO for example.

Change-Id: I0766abd310b0ea717989e755ace7252d68d7111f
2017-03-27 13:13:14 +02:00
Chandan Kumar
f844c008bb Rename IdentityV3Client to IdentityClient
As per tempest.lib.services.identity.v3.identity_client IdentityV3Client class
is renamed to IdentityClient [1.], we need to fix the same in configtool in order
to avoid the method not found error

[1.] https://git.openstack.org/cgit/openstack/tempest/tree/tempest/lib/services/identity/v3/identity_client.py#n21

Change-Id: I02848df564f2364e18d7e89cafa46c0a868079fa
2017-03-27 10:20:18 +00:00
Martin Kopec
77139f2bae Simplify base files hierarchy
Merge base_service_test.py and base_config_tempest_test.py into base.py to cut
one level of base hierarchy.

Change-Id: Id98b9c3a5788b4ca6198462df48426e6a79224a6
2017-03-21 10:20:50 +00:00
Luigi Toscano
54ee179bde Merge "Split tests to multiple files" 2017-03-20 12:14:29 -04:00
Martin Kopec
d89e635020 Update readme
Add an example on how to use python-tempestconf tool.

Change-Id: I13deed96c5af1feeef4e369cc2da17ad42de0363
2017-03-20 15:26:54 +00:00
Martin Kopec
3c401a68c9 Split tests to multiple files
The patch splits tests located in test_config_tempest.py to multiple files
for better readability.

Change-Id: I2454186535a8eeb3ce74ae134abe605f2478002e
2017-03-20 14:19:14 +00:00
Luigi Toscano
affc5179e9 Merge "Added remaining unit tests for config_tempest.py" 2017-03-15 09:59:52 -04:00
Prateek Arora
76757be62b Added remaining unit tests for config_tempest.py
Tests for following methods are added
1) create_tempest_images
2) create_user_with_tenant done
3) give_role_to_user
4) create_tempest_users

Change-Id: If706c56ba893733d642abb640335e12aad265386
2017-03-14 02:10:01 -05:00
Luigi Toscano
feaf3770d1 Merge "Add unit tests for tempest_config module" 2017-03-10 09:56:43 -05:00
Luigi Toscano
54e91ad476 Remove old compatibility stuff for sahara
The values have been stable since Kilo.

Change-Id: I665137f35f44bd135907a48a8dc216d56fd5680f
2017-03-09 14:57:22 +01: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
Prateek Arora
08be15ab94 Add unit tests for tempest_config module
Add tests for method find_or_upload_image
of tempest_config module

Change-Id: I491e1ac17dd9f1c0910af3b28f81aeb68b0547e5
2017-02-28 13:50:16 -05:00
Martin Kopec
2d17c8bf48 Add unit tests for tempest_config module
The patch adds more tests for functions of tempest_config module and
refactors function names in test class which tests flavors.

Change-Id: If7d54edd1e66e1315d4fc7bb2689208f86ddfb7d
2017-02-28 18:47:05 +00:00
Daniel Mellado
4a2fcbac37 Merge "Fix string arguments in a call to logger.info" 2017-02-28 08:07:18 -05:00
Martin Kopec
6c6270bc51 Add unit tests for tempest_config module
The patch adds unit tests for ClientManager class, TempestConf class
and methods of the module itself.

Change-Id: I9e8f251c09887cca92337e79f596bf94defc1b49
2017-02-22 09:14:13 +00:00
Martin Kopec
1b6e8d1d5e Initiate public_network_name to None
Otherwise, if no network is found, public_network_name won't be
defined and an exception will be raised.

Change-Id: Ida6a232b2b67e50706cfa7cd75372ff3f2f9e9f9
2017-02-16 13:46:55 +00:00
Luigi Toscano
71a40accec Set public_network_name also when network ID is provided
Otherwise, when the code follows that branch, public_network_name
won't be defined and an exception will be raised.

Change-Id: I96007d74d78a42f4eb9543f52fae8f24a0161ac7
2017-02-15 10:09:51 +01:00
Luigi Toscano
a9f15a7fdc Fix string arguments in a call to logger.info
Change-Id: I7302a223d0cf7e4a8d4d77e17e8bfd75e564ed0c
2017-02-07 19:08:04 +01:00
Martin Kopec
088ec97bf0 Add unit tests
The patch adds unit tests for methods of api_discovery module.

Change-Id: Idc0f4b511e5d54e8a21ade6694e18add12c4e9ec
1.0.0
2017-02-07 11:20:40 +00:00
Chandan Kumnar
51e8a6d5b2 Fixed discover-config-tempest to read default-overrides.conf from
tempest-workspace/etc

* As tempest init <tempest workspace> dumpes all the config files in
  tempest-workspace/etc. so discover-config-tempest should read the
  default-overrides.conf from there otherwise user needs to pass an
  argument --deployer-input <path to default-overrides.conf> file.

* Remove python shebang from config-tempest.py

Fixes: https://github.com/redhat-openstack/python-tempestconf/issues/4
Change-Id: I68eb6e57f0b14da78e2d70a86aca106b2a34aebe
2017-01-27 16:16:05 +05:30
Martin Kopec
00b1a51bd6 Fix config_tempest failing due to v3 on ocata
The patch fixes config_tempest which was failing on RDO ocata installed by
packstack because of keystone v3 conflicts.

Change-Id: I4ff7cbc1cc11a892d870b146a280e6bdfbeeaba9
2017-01-26 12:46:10 +00:00
Joe H. Rahme
25e0580394 Enables Hacking extensions H106,H203,H904
These Hacking checks are enabled in Tempest[1], so we might as well
include them here.

For info:

* H106: Don't put vim configuration in source files.
* H203: Use assertIs(Not)None to check for None
* H904: Delay string interpolations at logging calls

More on this can be found in the Hacking doc[2].

 [1]: https://git.openstack.org/cgit/openstack/tempest/tree/tox.ini?h=master#n149
 [2]: https://pypi.python.org/pypi/hacking

Change-Id: Id2fd27f726811eeea682227f3566dbe0b011a8b0
2017-01-25 16:20:15 +01: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
Luigi Toscano
28f4a6e760 Merge "Start using reno for release notes" 2017-01-20 11:26:07 -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
Luigi Toscano
4a89425f42 Merge "Adding floating_network_name to network section" 2017-01-20 06:35:53 -05:00
Chandan Kumar
5aadb968ca Fixed tests and doc build
* switch to testr instead of test for running test
* remove reference of contributing.rst

Change-Id: Ic8f81d2f031550f5b479973072ce44d2e5ffa342
2017-01-19 15:10:46 +05:30
Itzik Brown
ba46bd7c85 Adding floating_network_name to network section
When discovering the external network there is also
a neet to add the network name.

Github issue:
https://github.com/redhat-openstack/python-tempestconf/issues/3

Change-Id: I16dcd265cb858771e7dfc2b8f81b7ff9dd06ab68
2017-01-19 11:09:06 +02:00
Chandan Kumar
305bf0bb19 Refactored python-tempestconf to work with devstack
Change-Id: I5143d9ef63d7bf326b477110c0ff6f82b3c2a9b2
2017-01-18 17:47:00 +05:30
Daniel Mellado
2811119bd4 Fix pep8 compliance
This commits fixes some pep8 linters that were missing and makes it
pep8-compliant.

Change-Id: Ib50d7a3cdeadffa7db76e7e188d081eb313802b9
2016-12-14 17:12:17 +01:00
Daniel Mellado
22953d9916 Add gerrithub to .gitreview
This commit sets the proper gerrit to use with the project, besides the
one set up from the cookiecutter template.

Change-Id: I640e676d237a6886042dcdcf4f55bf240b858a66
2016-12-12 11:00:41 +01:00
Martin Kopec
025a025033 edited 2016-08-26 16:52:54 +02:00
Martin Kopec
6c8c2b3208 deleted unwanted files 2016-08-26 16:52:37 +02:00
Martin Kopec
bf9a192cda default conf file 2016-08-25 14:15:57 +02:00
Martin Kopec
f1bea2a7e8 tempest_config_tool 2016-08-25 14:13:16 +02:00
Martin Kopec
aa7973cd05 added requirements 2016-08-25 14:12:08 +02:00
Martin Kopec
8c913923a0 Initial Cookiecutter Commit. 2016-08-24 17:21:57 +02:00