Commit Graph

40 Commits

Author SHA1 Message Date
ghanshyam f5983d7cdc Remove intree ec2-api tempest tests
ec2-api jobs have been switched to use
ec2api-tempest-plugin for ec2-api tests, so
we can remove the in-tree tempest tests now.

Change-Id: I82ace9ebd1ca5216c2e3fc3d75f07146417ebf94
2018-03-18 03:27:03 +00:00
Anh Tran 3454a21219 Typo-fix: occured => occurred
Change-Id: I07a2fb2f8b70710d9e744c9ba6cd088a2243f144
2017-02-06 11:19:16 +07:00
Andrey Pavlov 17a9b61ec1 skip vpn tests if vpnaas is not in network features list
Change-Id: Ie6e779e58917c375b150949a0151cbb907466cba
2016-10-12 15:37:11 +03:00
Andrey Pavlov bca0b51a33 fix experimental jobs
Change-Id: I2e71ca9fbc8869fb680a15567f575880c5491223
2016-09-17 12:57:40 +03:00
Thomas Bechtold eff4f621f6 Fix tempest.conf generation
[service_available] isn't being generated. This patch fixes it.
It also introduces a switch to disable the ec2api tempest tests via
the [service_available]ec2api parameter.

Closes-Bug: #1613542
Change-Id: I79e2bc26f86b3be6a45a2ee8ea33c50977d44838
2016-09-14 06:23:08 +00:00
Andrey Pavlov 99521b5052 functional tests: add skip checker for absence of EC2-classic
Change-Id: I42e8b446c23a06197f7daffbb826033a87e33cb7
2016-08-02 09:37:38 +03:00
Andrey Pavlov 7ffe27b2e0 switch from deprecated tempest_lib to tempest.lib
Change-Id: I6fa4a27519d8514fda01e71951fdaddc2cda4106
2016-02-26 15:46:06 +03:00
Andrey Pavlov d17e562afa Improve functional tests
add logging in address association waiter.
add timeout for snapshot creation
fail test if resource can't be cleanuped

Change-Id: I7d805e5b49c359599e26c6f44d68289beee928f7
2016-02-09 16:11:22 +03:00
Andrey Pavlov 2cc7ec92dc fix races
1) fix bug with filtering
filters were applied before unpaired items is added to result

2) fix races in default security group creation

3) add waiter for associate/disassociate address

4) fix security group classic test
it should choose default group group only from classic groups

5) fix describe_vpc_with_filters test
it can run in parallel with other test with same CIDR

6) fix networks list for instance run at subnet creation/deletion

7) fix selective decsribe by names
it should not delete valid items from db

Change-Id: Iadadefb8b4abebbb3b8efc0e536e5de30ed23dab
2015-12-15 09:22:50 +03:00
Andrey Pavlov 64580a36d3 functional tests: fix tests work over SSL OpenStack Cloud
Change-Id: I3a6e02e96ed807ce4305876fe3c5798449fedc24
2015-11-09 21:58:58 +03:00
Andrey Pavlov f5098de215 functional tests: fix snapshots paging
Amazon can return HTTP 500 for create_snapshot
So tests have to wait some time and try again the operation

Change-Id: I38bda4d316dba9d820024f4d49111b20ee30a486
2015-10-23 20:12:55 +03:00
Andrey Pavlov f34d64747c py34: fix string conversion
fix working with strings for metadata server,
for some instance properties and for errors.
do some magic with types/encoding.

Change-Id: I2446fc48b51dd903a719aa4dbb1a5556af19e5df
2015-09-13 23:56:53 +03:00
Jenkins 59cbbb20e4 Merge "create functional test for register_image" 2015-08-08 08:38:36 +00:00
Andrey Pavlov b385f567e4 create functional test for register_image
Change-Id: Ie5407ced8bdce6c0e0fd7565cc26a6976c067efe
2015-08-08 09:44:51 +03:00
Andrey Pavlov c45d9eb71c add vpn scenario test
it creates vpn between vpc and single ubuntu
installs openswan in ubuntu then it ups tunnel
and checks connectivity through tunnel from ubuntu to inner vpc addresses.

Change-Id: Ief8e65fb7fc4f9f01fa1440c99380bb974e816f4
2015-08-07 21:55:10 +03:00
Feodor Tersin 9889be09a7 Move get_device_name_prefix to base functional test module
This usefull function will be used further.

Change-Id: Ieba6cd831cfe9ba2aaf6b022a2ea581cde488578
2015-07-09 16:59:48 +03:00
Jenkins 2169045bba Merge "Add basic functional tests for vpn connection" 2015-06-25 05:12:50 +00:00
Jenkins 7e35a30434 Merge "Add basic functional tests for customer and vpn gateways" 2015-06-25 05:11:07 +00:00
Feodor Tersin 2ef5386c32 Add basic functional tests for vpn connection
Change-Id: I315e6a572e744eb989d600be0d307caa2ff74dca
2015-06-23 16:42:13 +03:00
Feodor Tersin e578087ed6 Add basic functional tests for customer and vpn gateways
Depends-On: I75e1bbcd81678a56a0940b696cfa5dbc2c159cc6
Change-Id: I6a281a75dd47e09edeed8a19cfcc41e36a032a0b
2015-06-23 16:41:58 +03:00
Jenkins 60783f4f8c Merge "Distinguish a preliminary address association test" 2015-06-22 15:30:59 +00:00
Feodor Tersin ee100891af Distinguish a preliminary address association test
AWS can associate an address to a subnet IP while the subnet is not
accessible from Internet due to its route table restriction.

We need to have this test case separated to have a clear mark of
supporting the feature by ec2api.

Change-Id: I86471b6656ceac2ef01002f5db0c27e6cdb69e42
2015-06-22 16:38:04 +03:00
Andrey Pavlov 124d004d70 remove hack for nova bug
nova had a bug - it didn't delete root volume of EBS instance.
Now nova can do it so we don't need to cleanup volumes.

Change-Id: I0ed961716b2bc1924d65a20846a7fe3f6fc6c367
2015-06-17 14:16:46 +03:00
Andrey Pavlov 11b7ce59d9 fix calls order in scenario test
Change-Id: I29c2dd5f85dc8b0a59d9b3f0ea86ff3edf0a7953
2015-06-05 17:17:53 +03:00
Andrey Pavlov 49822ce31b implement groupSet attribute for instance attributes
Change-Id: Ie92547208570221e735ba4c90dec97071da2b204
2015-05-14 13:05:10 +03:00
Andrey Pavlov 21e63c3309 add EBS volume deletion to tests.
tests should delete EBS volume by themselves due to OpenStack bug.

Change-Id: Ic32992c54b75e2bdea196cc8073e422e868189f8
2015-05-09 10:28:42 +03:00
Andrey Pavlov 8b13458b19 add ubuntu image for testing and port instance_restart test
Change-Id: If19ed3342bdaf6b256a9f5f3a2da6a4bd003e2e3
2015-05-06 16:44:13 +03:00
Andrey Pavlov c0796154fd implement paging
Change-Id: Id044e0943ed163cf33631b035c3e09f7ace4f668
2015-04-28 11:33:19 +03:00
Andrey Pavlov 3947354c37 move to botocore clients technology
from https://botocore.readthedocs.org/en/latest/client_upgrades.html#client-upgrades

Version 0.104.0 emitted an ImminentRemovalWarning when using the old interface. This warning is now printed to stderr by default. A user can still turn off these warnings via the warnings module.
The develop branch on github will be updated to completely remove the old interface. At this point the client interface will be the only interface available when using the develop branch on github.
A 1.0 alpha version will be released. By default, pip will not pick up any alpha/beta releases.
A 1.0 beta version will be released.
A GA (1.0) version of botocore will be released.

Change-Id: Id6661e3e1e73de018e9b4de7612972654bb27422
2015-04-24 14:18:46 +03:00
Andrey Pavlov b7d53fe5e6 add fixes to images
1. extend modify_image_attributes
2. fix create_image
3. add reset_image_attribute
4. add images' tests

Change-Id: I0e52dbe46e0a0f3e6257365014f9b35bb4a21ad9
2015-04-21 14:52:18 +03:00
Andrey Pavlov e1e116e420 Don't add exception instance in LOG.exception
LOG.exception will print out the full stacktrace, that's enough.
We should only record meaningful message.

merged from I8b5c581717e6b78c11c46e226463927450c9f287

Change-Id: I49865d558ff5feda2d6a803741fbee18064b2aec
2015-04-02 14:36:49 +03:00
Jenkins 9f6b9fa54d Merge "Get rid of Nova DB access" 2015-03-24 06:49:36 +00:00
Feodor Tersin 8282371da4 Get rid of Nova DB access
Important features:
- Nova client with microversion support is required.
- Nova API server may not support microversion 2.3 (not tested).
- Attaching volumes are not displayed in an instance bdm. Because Cinder
volume doesn't yet contain attachment info (which contains a device
name), and Nova instance volumes_attached doesn't contain a device name
(mountpoint). But a bdm must contain it.

Other features:
- v2.3 is requested always
- RunInstance result is formatted w/o extra v2.3 info, so it doesn't
contain rootDeviceName and other such info
- if rootDeviceName property is empty it's omitted instead of
to report fake /dev/sda1 as Nova EC2 does it. This leads to omit
rootDeviceType property in this case as well.
Also the same is done for corresponding image's properties.
- deleteOnTermination volume property is omitted for volume at all, and
for instance bdm if Nova doesn't report it. Previously this volume
property contained 'False' only.
- DescribeVolumes isn't used in DescribeInstances (as opposed to
DescribeNetworkInterfaces), because both methods require actual state
of corresponding OS objects, so we prevent duplication of OS requests.
- Not merged Nova client is used
https://review.openstack.org/#/c/152569/

Also:
- fix multi-run instances for EC2 Classic mode
- safe getting of OS instance security groups
- ec2context module alias is renamed to ec2_context, as it is in other
code
- fakes.CinderVolume is renamed to local standard OSVolume
- fakes.OSInstance it transformed to be initialized from a dictionary,
as it is for other fakes.OSXxx objects
- fix code style

Depends-On: Icf2b9739aaf87b4c9af13ad64a310081a68f776e
Change-Id: Id65ea0f56ffd889286d5ca082e1daf2643205c52
2015-03-20 15:33:05 +03:00
Andrey Pavlov 2801f9e687 fix delete on termination behaviour for network interfaces
and add test cases for delete_on_termination preperty for NetworkInterface

Depends-On: I3d557dd95f442106c495249a5ef1d2ac36e6a2ea
Change-Id: Icf2b9739aaf87b4c9af13ad64a310081a68f776e
2015-03-20 11:33:24 +03:00
Andrey Pavlov 07c398b425 adding rally scenario
adding first rally scenario to check perfomance in
comparision with original nova EC2 layer.

Change-Id: I1e802992db614d25ceda925d54a6192053816a9b
2015-02-26 12:28:17 +03:00
Andrey Pavlov 594fbaf843 rework TODO due to new tempest_lib
Change-Id: I73a4b60029031fe425cd39c3424236222962d369
2015-02-25 20:07:02 +03:00
Andrey Pavlov 8a9b4d53f5 add scenario tests
Change-Id: Ib07f9d4400998e3f7fb0f2809912ec66aefece49
2015-02-20 11:16:39 +03:00
Andrey Pavlov 0ece6267b0 Reworked mechanism of disabling VPC tests
Change-Id: I2438610e595325919d4b3d7eb17aea67c11f0ba2
2015-02-11 22:16:15 +03:00
Andrey Pavlov b51104258e Add more tests
Change-Id: I4427eb78b9c6b73a0a492cb246e9ecd532dc58d6
2015-02-10 16:24:43 +03:00
Andrey Pavlov d031bf78d1 add first functional test with infrastructure
Change-Id: If8400f4802a29352c752e8443c7b1b2f063d4dfa
2015-02-08 10:16:48 +03:00