Commit Graph

21 Commits

Author SHA1 Message Date
ZhongShengping 5f90447b40 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: I7cd39dacaa1f2cdc2d74da39ae3971246e922907
2019-04-24 11:51:00 +08:00
Colleen Murphy 6f4e37e9e6 Remove the local tempest plugin
The plugin has been split into its own repository[1] in accordance with
Queens Goal "Split Tempest Plugins into Separate Repos/Projects[2]".
This patch removes the local copy as well as the setuptools entry point.
We can also now remove the autodoc_tree_excludes pbr option since
there's no more plugin to exclude and it defaults to [setup.py].

[1] http://git.openstack.org/cgit/openstack/keystone-tempest-plugin
[2] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html

Depends-On: I47f59505126509b6b52cf04b8f7501e8ef4041b7
Change-Id: I1805b196b42b6a76c56e129a316e170e767455c1
2017-06-06 11:48:37 +00:00
Rodrigo Duarte Sousa 11712bc128 Writing API & Scenario Tests docs
It is nice to see a real example of a real test when trying to write a
new one. This patch adds a doc that gives an overview of writing new API
and Scenario tests for the keystone tempest plugin.

This also fixes a typo in the IdentityProdiversTest class name.

Change-Id: Icd631124b451f17df3d4de184e73f6223fdb7de3
2017-05-30 11:57:17 -03:00
Luong Anh Tuan 4418fe3cfa Replace test.attr with decorators.attr
Function 'tempest.test.attr()' has moved to 'tempest.lib.decorators
.attr()' in Pike and will be removed in a future version[1].
This patch replaces the 'tempest.test.attr()' with the 'tempest.lib
.decorators.attr().'

[1] Iaafbb112b6eee458089cc49918359a8a8d0485e2

Change-Id: I52289f8915c05c338b46dce5df7e7d674846916a
2017-05-19 16:20:14 +07:00
Nishant Kumar d6a05f568d Reuse already existing groups from upstream tempest config
Tempest plugin tests uses the same config file/object from the
upstream tempest, therefore instead of registering the same group
again in plugin tests we should reuse already existing groups and
register only plugin specific option here.

Change-Id: I948fdcf20732b98d5ba5d34fe0352ea9cff59f91
Closes-Bug: #1659596
2017-01-27 01:07:00 -05:00
Davanum Srinivas b4012e8085 Fix issues with keystone-dsvm-py35-functional-v3-only on py35
keystone/token/providers/fernet/token_formatters.py
* decode payload[2] from bytes to string before comparing
  with a string (CONF.identity.default_domain_id)

keystone_tempest_plugin/services/identity/clients.py
keystone_tempest_plugin/services/identity/v3/auth_client.py
keystone_tempest_plugin/services/identity/v3/identity_providers_client.py
* decode the response body from bytes to string before we
  try to parse the json using json.loads

Change-Id: I98053bc498d78c5f0076a66e725ff2d634f5b663
2017-01-05 21:59:57 +00:00
Rodrigo Duarte f19f131b57 Fix the usage of tempest.client.Manager class
This should fix our gate. We should continue the work to remove
the dependencies from any module that isn't at tempest.lib.

Change-Id: I2158d1971a4187171a89169c3f324453f0ec13be
2017-01-05 13:07:55 -03:00
Lance Bragstad 11545b5f0f Fix import ordering in tempest plugins
For some reason the third-party imports were divided into two
separate groups. This commit combines them to follow the convention
established throughout the rest of the project.

Change-Id: Ice1a681938aef96d0d289a83cadc1cde2f12eb1e
2017-01-02 05:02:11 +00:00
Rodrigo Duarte 647b83d723 Federated authentication via ECP functional tests
Adds a first test for the federated authentication feature. It handles
first the authentication using the SAML2 ECP profile.

The tests cleanup have some issues, see related bug.

Related-Bug: 1642692
Change-Id: I3b393a695c6d9f846efdaf302c1beea34e6bd54b
2016-12-27 09:48:10 -03:00
Ronald De Rose de8fbcf9a0 Validate mapping exists when creating/updating a protocol
This patch validates that a mapping exists when adding or updating
a federation protocol.

Change-Id: I996f94d26eb0f2c679542ba13a03bbaa4442486a
Closes-Bug: #1571878
2016-10-20 19:12:04 +00:00
Dolph Mathews d9c6b50a3a Replace keystone.common.config with keystone.conf package
keystone.common.config is 1200+ lines of super dense, merge-conflict
prone, difficult to navigate, and finicky to maintain code. Let's follow
nova's lead and break it down into more manageable modules.

This patch creates a new Python package, keystone.conf, and moves all of
our configuration options into it, mirroring nova's nova.conf package.

There are a couple special modules in keystone.conf introduced here as
well:

- keystone.conf.__init__: This causes all of Keystone options to be
  registered on import, so consumers of keystone.conf don't have
  races with config initialization code while trying to use
  oslo_config.cfg.CONF directly (keystone.conf replaces all uses for
  oslo_config.cfg.CONF in keystone).

- keystone.conf.base: Keystone's [DEFAULT] group options. I'd prefer
  this to be called 'default.py', but I'm just copying nova's lead here.

- keystone.conf.opts: The entry point for oslo.config itself.

- keystone.conf.constants: There are a few constants (deprecation
  messages, default paths, etc) that are used by multiple configuration
  modules, so they need to live in a common place.

Change-Id: Ia3daffe3fef111b42de203762e966cd14d8927e2
2016-06-24 17:02:15 +00:00
Rodrigo Duarte Sousa 76e9209801 Integration tests cleanup
This patch does a cleanup and fixes some nits found by reviewers
in the original patches [1], some of them are:

- import json instead of jsonutils
- use six.moves.http_client
- put common logic on clients superclass
- use "fails" to indicate negative cases
- stronger comparison in update tests

[1] https://review.openstack.org/#/q/topic:federation_integration_tests

Change-Id: I216fc5d4758e7b09d167d9d26271ddd149c66816
2016-06-19 08:27:10 +00:00
Rodrigo Duarte b7b4aaa2cf Add protocols integration tests
This patch adds the tests related to protocols/mappings
in the Identity Provider API (part of the Federated
Identity API)

Change-Id: I5e2573a175edbaf6f7a1bb73f3e0a86deeb94f1d
2016-06-02 16:12:44 -03:00
Rodrigo Duarte 28f778827e Add mapping rules integration tests
This patch adds the tests for the Mappings API (part of the
Federated Identity API).

The tests added here are not intended to cover all negative and
corner cases, they are rather testing the API in a higher level
and its integration in a working environment.

Change-Id: If245a12a407f960a7ad5f73aa7af717229976ea2
2016-06-02 16:12:44 -03:00
Rodrigo Duarte 23c23fcbf3 Add service providers integration tests
This patch adds the tests for the Service Provider API (part of
the Federated Identity API).

To run the tests install keystone and run (in tempest):

    $ tox -e all-plugin -- keystone

Change-Id: I6d6f44736e4187dd2a500c7c0b6715e52296a9b3
2016-06-02 16:12:43 -03:00
Rodrigo Duarte b4bfc541b0 Fix credentials_factory method call
The method has changed from get_configured_credentials to
get_configured_admin_credentials.

This is one of the parts imported directly from tempest
(not tempest.lib) so there is no "care" in keeping it stable.

Change-Id: I0072157d0cf9ab87a5b939868ae4a1d0bbec294b
2016-05-31 10:11:27 -03:00
Jenkins 0b65a9664c Merge "Add identity providers integration tests" 2016-05-26 22:17:40 +00:00
Rodrigo Duarte 8d90866014 Add identity providers integration tests
This patch adds a first set of tests in the keystone tempest plugin.
These tests are for the Identity Provider API (part of the Federated
Identity API).

To run the tests install keystone and run (in tempest):

    $ tox -e all-plugin -- keystone

Change-Id: I64ebba2e57aa952a2262f9e0ad143cea7de259c0
2016-05-11 12:44:35 -03:00
OpenStack Proposal Bot 5962c2cda1 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9fe9365dd22fad88a778486b31b45c82af62fc8e
2016-04-21 07:06:59 +00:00
OpenStack Proposal Bot 2995748b63 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I4ffdc22ba036fa0be10403cc02bbceee70058409
2016-04-08 06:29:56 +00:00
Rodrigo Duarte 088393d521 Base for keystone tempest plugin
This patch adds the basic files and configs in order to enable the
keystone tempest plugin interface using tempest-plugin-cookiecutter.
Since we are adding them inside keystone's repository, they can be
installed alongside keystone and to run the tests (when we have one)
we simply use `testr run keystone_tempest_plugin` in tempest.

For more details about the tempest plugin interface see [1]

[1] http://docs.openstack.org/developer/tempest/plugin.html

Change-Id: Ia42e79246251e8af1010aa8eaf462aacf75644a7
Partially-Implements: bp keystone-tempest-plugin-tests
2016-03-31 11:41:13 -03:00