Commit Graph

24 Commits

Author SHA1 Message Date
OpenDev Sysadmins 4306237126 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:07 +00:00
Chris Dent 217b81485a Fix links in README.rst and description mime type
As part of getting releases working.

Change-Id: I5ae3962d84aae4634e13b4ad58072187653e9a01
2018-10-29 19:55:38 +00:00
Chris Dent 33dcbab38f Don't include version information in python
Instead we'll use the OpenStack norm of tagging a commit
for release.

Change-Id: I1ebfa012d2674208fddfe90e194fd6f9aab42801
2018-10-29 18:57:22 +00:00
Chris Dent d130b0bbad Add rudimentary docs
Add basic sphinx docs setup with some rudimentary information
on how to use gabbi-tempest. This isn't perfect but provides
the basics for future improvement.

A docs template is added to .zuul.yaml.

Change-Id: If2631d92366866ba6bd149909ece17734931ae91
2018-10-29 14:28:53 +00:00
Chris Dent 3f0191f82d Provide a gabbi-tempest job, tested by itself
The name follows the patterns defined by zuul docs.
The Depends-On is to a necessary Tempest change for
handling the enviornment variable.

The gabbigts in gate/gabbits talk to keystone and nova
to simply confirm that the tests can run.

Depends-On: https://review.openstack.org/607507
Change-Id: I7a9efefb28e23bf47951617cbe08f177235688d6
2018-10-26 11:33:50 +01:00
Chris Dent 086f5c3080 Add zuul noop jobs and .gitreview to get started.
With this in place we can start adding real test jobs and do
real review on gerrit.

Change-Id: Ieb5d8caef4215b7cc4928a1f7214a30a34cb1a25
2018-10-18 17:34:25 +01:00
Chris Dent 67d545967e Apparently don't need .zuul.yaml initially. 2018-10-15 17:33:10 +01:00
Chris Dent ca8ac1c925 Add a .zuul.yaml to plan for import to openstack infra 2018-10-15 16:52:35 +01:00
Chris Dent 283e901d24 release 0.1.1 2018-01-10 16:17:09 +00:00
Chris Dent 262be4c225 Only set flavor and image vars from conf is conf has them
Otherwise the tests bail out early on a Python runtime issue with
trying to set the environ to None.
2018-01-10 16:16:13 +00:00
Chris Dent 1fe8486eec
Merge pull request #2 from cdent/gabbi-tempest-path
Use a GABBI_TEMPEST_PATH to locate gabbits
2018-01-09 17:20:58 +00:00
Chris Dent 487ebec24f Clean up packaging and docs to make this consumable
* add a convenience Makefile
* add license headers
* rationalized requirements.txt
* add wheel building capabilities
* update README
2018-01-09 17:12:00 +00:00
Chris Dent d570f5da52 Use a GABBI_TEMPEST_PATH to locate gabbits
In this way the plugin becomes generic: point it at some directories
that contain gabbi YAML files that use the provided environment
variables (see the README.rst), what them run.

One concern that will need to be address is dealing with parallelism:
tempest doesn't make it easy to manipulate the group_regex.
2018-01-03 17:43:40 +00:00
Chris Dent 624cb2dc9d Wait longer for allocations to clear after server delete
These changes work when running with the fix to
https://bugs.launchpad.net/nova/+bug/1710908
2017-08-15 17:01:37 +01:00
Chris Dent f1395fa2c2 Merge pull request #1 from cdent/multi-service
Multi service
2017-07-31 17:41:19 +01:00
Chris Dent 1e5c591cd9 update README.rst 2017-07-31 14:45:31 +00:00
Chris Dent 1e61c5ad4c Run a resize and confirm resize, checking allocations
We resize, wait for VERIFY_RESIZE, look for doubled-up allocations
and usage, then confirm the resize, and look for expected allocations.

We don't get the doubled up allocations.
2017-07-31 14:31:54 +00:00
Chris Dent e1cbf59fee Establish a basic create/delete server arc
Move around some ENVIRON so that we always have the expected
values in the tests (it's cheap so why not?).

multi/base.yaml tries to take advantage of YAML anchors to avoid
repeating some of the longer substitutions[1] but I'm not sure if it
is going to be the right thing.

Next: do a resize.

[1] https://gabbi.readthedocs.io/en/latest/format.html#substitution
2017-07-31 12:23:18 +00:00
Chris Dent d456bd7607 Prove out multi-endpoint testing
multi/base.yaml looks at both the compute and placement services,
confirming that the one hypervisor that exists has a resource
provider with inventory with a proper allocation ratio for VCPU.

It turns out that each of the <TYPE>_SERVICE ENVIRON variables also
needs a <TYPE>_BASE otherwise it can be hard to reconstruct URLs
using links in respones. Sometimes they are full hosts. Sometimes
they are absolute URLs. Neither of this can be appended to a fully
qualified endpoint.
2017-07-30 21:40:38 +00:00
Chris Dent e3e2912b80 Keep full service type url lookup dict
This makes it easier to access all services from all tests.
2017-07-30 20:42:07 +00:00
Chris Dent 887bd69417 Set the test url to the service endpoints when service_type
If the service_type, and thus gabbits directory, are in the
endpoints, then use the endpoint as the base url for the tests.
2017-07-30 20:26:11 +00:00
Chris Dent ead5d0d51a Initial pass at allowing multiple services
Previously, the host was the endpoint of the service being tested.
This is limiting if what's really desired is testing multiple
services. So now we move towards setting environmen variable that
are the endpoints for any of the services that are going to be used.

Then these can be made available from any test.

Right now it is not like that. Right now it builds environments
based on the requested types. Better to just set them all and then
allow the host either be a primary service type endpoint, or a stub
if it really is going to be lots.

Committing now because tests are mostly passing (except for the
phantom failures). Cleanup to come.
2017-07-30 19:25:50 +00:00
Chris Dent 0525a268fa Extract a generic gabbi class
Subclass of the generic class determine the service_type and
service_name to be tested. The service_type drives the location of
the gabbits. Note that nothing prevents loading gabbits from
somewhere else and having multiple service types at play, this
change is just a way to clarify options.

The compute tests are moved into their own directory and some
glance/image tests are added.
2016-04-08 17:24:50 +00:00
Chris Dent bf6f2c27c1 Initial stab and a generic gabbi plugin for tempest
This is entirely the result of @sileht, who got things working for
gnocchi.

The end game here is a generic way to have a suite of YAML files
sitting around somewhere and run them, via tempest, and for it
to just work. This is currently some distance away from that
(because I got distracted finding nova bugs).
2016-04-08 15:58:31 +00:00