summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/os_credentials.py
AgeCommit message (Collapse)AuthorFilesLines
2018-06-04Added support for OSCreds output to SNAPS-OO orchestrator app.spisarski1-1/+40
Change-Id: Ic690ebff47d137fdd172f5dd5f263cd7f4a6ae04 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-03-07Updated stack tests to only use an admin user when necessary.spisarski1-1/+3
Changed super test class OSIntegrationTestCase to allow subclasses to set the user roles when required. For all heat stack test, the user role will always be 'heat_stack_owner'. 'admin' will be used for tests requiring this role (i.e. heat template creates flavors) JIRA: SNAPS-268 Change-Id: I0ec01cfea6297547a6a158eec8e5c69af6d6c7d7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2018-01-31Remove a wrong @propertyCédric Ollivier1-1/+0
Else OSCreds.__str__() simply doesn't work. Change-Id: I0a0147862ad3015dc9cf284c61429f1534a47d61 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-09Initial patch to begin adding support for Magnum.spisarski1-2/+8
JIRA: SNAPS-212 Change-Id: I5f72fe9c28fe5cdd61546eee828becd034f8aff9 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-10-26Updated documentation to reflect new block storage support.spisarski1-5/+2
1. Updated library usaged LibraryUsage.rst 2. Added new unit tests to UnitTests.rst 3. Added new component tests to APITests.rst 4. Added new integration tests to IntegrationTests.rst 5. Updated application usage docs in VirtEnvDeploy.rst 6. Updated pydocs where inaccurate JIRA: SNAPS-203 Change-Id: I8bee2c6cdb5f54b86abf805bc930563028df3425 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-10-16First of several patches for adding volume support.spisarski1-1/+9
* Added volume API version attribute to OSCreds * Created utility for interfacing with the Cinder APIs * Created QoS creator * Added new tests to test_suite_builder.py JIRA: SNAPS-195, SNAPS-194 Change-Id: I0c6a53b4cba6efea3e92d909b94b259fa07a35c3 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-09-08Enhanced launch.py app to support all types.spisarski1-1/+1
Added application support for users, projects, and security groups. In addition, added support for multiple credential sets so one can manage multiple projects potentially on multiple clouds. Added Jinja2 template support for substituting values in the template file with values contained in the environment file. Added ansible substituion value for a VM's floating IP. Changed credentials interface attribute's default value from 'admin' to 'public'. Added optional pre_sleep_time attribute to ansible execution that will wait for a given number of seconds prior to attempting to apply a playbook to a set of VMs. JIRA: SNAPS-4, SNAPS-5, SNAPS-6, SNAPS-26 Change-Id: I67b8d69a3b06a43631d80e8fe0c56e02773dbfbe Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-09Merge "Reformat auth_url based on the ID API version."Steven Pisarski1-5/+26
2017-08-03Add domain name when creating projects and usersLinda Wang1-8/+8
(spisarski) Also clarified the difference between domain ID and name Added helper methods and domain object for Domains JIRA: FUNCTEST-858 Change-Id: Iccd7eef56713a4ad0c23232073f52bc71168bf5c Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-31Reformat auth_url based on the ID API version.spisarski1-5/+26
No longer raising an OSCredsError when the auth_url does not end with a 'v' + some number. Additionally, the auth_url will be massaged to remove any 'v' + num from the end of the URL and generate its own version value based on the ID API version configured. JIRA: SNAPS-144 Change-Id: I3a7844025324105576da59b1516d0f541281e6bf Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-31Attempt to fix domain support.spisarski1-8/+19
The prior code treated *_domain_name & *_domain_id the same where the ID was taken first and the name was used as the fallback which was incorrect. This patch treats the name and ID fields as separate members. JIRA: SNAPS-154 Change-Id: I5219863de597c4db24579f4af74ece2d648b2b07 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-27Changes to enable overriding the OSCreds for tests.spisarski1-1/+5
JIRA: FUNCTEST-847 Change-Id: I36d1add82cdb13a2c8252495fd6df8e05dab837b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-26Updated docs for the OSCreds classspisarski1-2/+2
JIRA: SNAPS-122 Change-Id: Id57f8830f7e87c513179de307130c76cb28f22a8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-25Added region support.spisarski1-0/+3
Added region_name attribute to OSCreds Added region_name to neutron, nova, glance, heat, and keystone client retrieval Fixed false positive heat connection test. JIRA: SNAPS-50 & SNAPS-146 Change-Id: If3471ed7a2bdd0e6bfc281455c996386d031235d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Default OSCreds cacert attribute to False.spisarski1-5/+8
The default of True causes more problems than False when dealing with unsecure and secure (HTTPS) API calls. This was issue was found while testing against the new OPNFV CI test pod running Pike. JIRA: SNAPS-80 Change-Id: I819b4f64fa637bb7ce53c58a7a1164600ff6a3b9 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-20Changes required for running CI tests (Pike pod).spisarski1-7/+60
Added support for HTTPS proxies HTTPS OSCreds settings for both RC file and os_env.yaml OSCreds 'cacert' T/F and cert file path support OSCreds API version support cleanup including the addition of heat Added more OSCreds test validations Disabling of InsecureRequestWarning PEP8 line width refactoring heat_utils_test.py fix when stack status is error test suite for CI removed default flavor metadata of mem_page_size: Any to None JIRA: SNAPS-80 Change-Id: I333e83ca79d7403bf43a9b74da4c072b4da976ba Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-05Refactor OSCreds to leverage kwargs instead of named parameters.spisarski1-56/+80
JIRA: SNAPS-109 Change-Id: I423ede964cce9fc3b4e5b27f1e8f0dd7603d9ff1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27Enable snaps work using public endpointLinda Wang1-1/+4
When functest is not run on jumpserver but on other external host without admin network, snaps failed to connect the admin endpoint. So running snaps tests using public endpoint should be allowed. JIRA: SNAPS-110 Change-Id: I8ca8d8c48330b5f427568d3d5fe942f6f2ca9ea9 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-22Enable https for Openstack in SnapsLinda Wang1-2/+6
When running in https environment, snaps should provide two options: 1. To support certification verify when https certification file is provided; 2. To disable server certificate verification without cert file. JIRA: SNAPS-84 Change-Id: I5a9094238db5c8017cc8b80e3353adc6e793b552 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-04-26Added support for Glance v2spisarski1-2/+2
Updated copyright date on new and edited files to current year. JIRA: SNAPS-66 Change-Id: I491157d6ced8bd9322f99272fc14e00168faaf29 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+103
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>