21 Commits

Author SHA1 Message Date
rabi
d17144d48c Use minimal image wherever possible
This changes most of the tests to use minimal image. There are
now two tests left that use fedora image.

[1] SoftwareConfigIntegrationTest.test_server_software_config
[2] CfnInitIntegrationTest.test_server_cfn_init

Out of which [1] is already disabled at the gate.

Change-Id: I309989de1e5584f3e345213c4b62893159365973
Related-Bug: #1628302
2016-09-29 12:18:17 +05:30
Bin Zhou
ab71c799a7 Correct reraising of exception
when an exception was caught and rethrown, it should call 'raise'
without any arguments.

Change-Id: Id31c042bab14097b13e9ef8c088ff637dc85903f
2016-07-11 08:15:03 +00:00
Peter Razumovsky
ab40f01982 Fix [H405] pep rule in heat_integrationtests
Implements bp docstring-improvements

Change-Id: I7aebbdafef121c3414e6a0260452c1353af62e88
2015-10-08 15:13:52 +03:00
Thomas Herve
b36f4da192 Revert failing tests and use v3 for ec2 tokens
Domain users are not supported anymore on v2, so we need to use v3 by
default when authenticating ec2 access.

Change-Id: Ia7ca08bca612b4555f6b4d9098cd7db6c540b1c4
Closes-Bug: #1484086
2015-08-18 13:37:48 +02:00
Thomas Herve
92ded5b6b5 Skip failing integration tests
Some tests are failing because ec2tokens seems broken. Let's skip them
for now.

Ref bug #1484086

Change-Id: I7de260e4dbd1c17fddc9385bdbb127fd593441be
2015-08-12 14:06:40 +02:00
Jenkins
ee34772d5b Merge "Revert "Temporarily skip failing scenario tests"" 2015-08-10 01:38:16 +00:00
Sirushti Murugesan
ed3cf834d9 Revert "Temporarily skip failing scenario tests"
This reverts commit f1dccf91ce6d420031c9e7b35fad3a0885715b48.

Change-Id: I25c5e853f0499b88f2803b077d19e132140908f1
Depends-On: I770d394f65e5be6a5f8f36c673806f91509e0abe
2015-08-04 11:51:20 +00:00
Jenkins
3617e75da1 Merge "Adds coverage for AWS EIP resource in scenario tests" 2015-08-02 04:02:36 +00:00
Angus Salkeld
f1dccf91ce Temporarily skip failing scenario tests
Relates to bug: #1479869
Change-Id: Idc902cd32395c1bcd4ac32e9850912183efffdad
2015-07-31 16:22:42 +10:00
Rakesh H S
c4d6d66e69 Adds coverage for AWS EIP resource in scenario tests
Change-Id: Ie37fd388ba3d6c7bc5ec03609d7d27c84ab474cc
Closes-Bug: #1269551
2015-07-21 12:45:03 +05:30
Rabi Mishra
3db5d3a8b7 Use network 'heat-net' for integration_tests
Neutron support for ipv6 is not complete yet (ex. LBaaS
only supports ipv4). We'had some gate issues after dual
stack was enabled in devstack. We had put some tactical
fixes to resolve those[1][2].

This fix adds usage of heat-net/heat-subnet(only ipv4)
for integration tests. This also rolls back the earlier
tactical changes.

https://review.openstack.org/#/c/178576
https://review.openstack.org/#/c/178933/

Change-Id: Ia863edb8932b8dea5c4fa110c97dcfdadca85bb9
2015-05-27 21:01:30 +05:30
Sergey Kraynev
368962044b Use ipv4 subnet in Heat scenario tests
Previously we used first subnet from network and it was correct, because
there was only one subnet in network by default. According to the last changes
in devstack new ipv6 subnet was added to the all default networks.
This patch adds function to the base class, which allows to choose
subnet based on ip version. All scenario tests were updated to use only ipv4
subnet.

Also was added property for FIP, which specify ip of vip.

Change-Id: I199075909b97fe98e1a3c1d175b0b4cf7100403d
Closes-Bug: #1449896
2015-04-29 07:58:24 -04:00
Sergey Kraynev
1fb557bf05 Remove redundant checks of stack status
The main methods create/update/delete in HeatIntegrationTest class
already contains _wait_for_stack_status, so we can remove duplicate
checks in tests.
Also was added paramter enable_cleanup for stack_create method, which
allows to disable CleanUp method in tests, where we delete stack
manually.

Change-Id: I41b546d648656676ec9bc3b38940eac68f9a848d
2015-04-20 10:23:25 -04:00
Steve Baker
c21bca268a Use oslo.log for heat_integrationtests
Later the integration jobs can be tuned to have their own
logging settings.

This change also raises _log_console_output to info, so it is displayed
by default.

Change-Id: Ifcaa6faf76c655e0c8cfd7d76775b80de70062c4
2015-03-17 17:36:56 +13:00
Steve Baker
1fa9413400 Use AWS::EC2::EIP for test_server_cfn_init
Many (most) clouds won't have the assumed network to directly ping/ssh
to the default IP address. This changes test_server_cfn_init to assign
a floating IP, and use that to ping and ssh to the server.

It also moves the ping to the end of the test. This was initially
meant to catch regressions in a co-gated neutron, but it is no longer
required for a heat-only test.

Change-Id: Ia9404289b2f9632883a479ccb435cbf6c51fcf2f
2015-03-12 14:56:36 +13:00
Anastasia Kuznetsova
b2c2bc3fa4 Integration scenario test refactoring
- Added new base class for scenario tests with common parameters
initialization in the setUpClass
- Added short description for every test
- Scenario tests structure has become more similar

Change-Id: Icdecb1f16290038f20471991a5f998de2c0a27ea
2015-03-06 13:22:03 +04:00
Steve Baker
39218d06d5 Use the AWS instance type in the cfn_init scenario
All the other resources in the template are of the AWS kind and this
will help with merging I9d01c5e7de630df5058429353fa17b3536ee8807.

This was derived from tempest change
I61346b569ed16d8a3c7610a85351ef723287fd83

Change-Id: Icd15a9863c00e63409af635b24938bec3f125e16
Co-Authored-By: Tomas Sedovic <tomas@sedovic.cz>
2015-02-24 16:35:04 +13:00
Sergey Kraynev
17993724ed Move assign_keypair method in base class
Change-Id: I69b8db037991f88b38b293560532bf51c0a04378
2015-02-13 06:27:14 -05:00
Sergey Kraynev
784b28a2e8 Re-use stack_create method from base class
Change-Id: Icc46f6c61b2fa7974b39b76f2142f33bc50ae06b
2015-02-13 04:59:57 -05:00
Sergey Kraynev
b6afc2b831 Split templates and tests in scenario tests
- Added subdirectory "templates" for storing all templates used in
  scenario tests.
- Added parameter sub_dir for method _load_template.
- Inline template was moved in templates directory from
  test_neutron_autoscaling.

Change-Id: I1acaf1ccc1466cf7ffc2e004eff486f49f4b5928
2015-02-13 03:03:55 -05:00
Steve Baker
6a03d60c36 Move test_server_cfn_init from tempest to heat
The only changes required to move this test have been:
* Change the imports
* Use the DEFAULT CONF group for conf options

Change-Id: Ic9474e329b9cef1e96b693f10c320b612f580283
Partial-Blueprint: functional-tests
2014-10-07 12:50:32 +13:00