Commit Graph

111 Commits

Author SHA1 Message Date
Takashi Kajinami 70e516a9e4 Bump hacking
hacking 3.0.x is too old.

Also fix a failure detected by the new hacking version.

./heat_tempest_plugin/common/test.py:171:80: E501 line too long
(80 > 79 characters)

Change-Id: Ic05437780b451928b14f79b004586e0b627ce119
2024-01-20 18:56:44 +09:00
Zuul 6a491bded3 Merge "Execute volume tests only when cinder is available" 2024-01-09 02:24:53 +00:00
Zuul a6b818bce9 Merge "Remove six" 2023-12-20 14:21:30 +00:00
Zuul 87eb0e9d79 Merge "Remove tests requiring Neutron LBaaS" 2023-12-16 17:58:01 +00:00
Takashi Kajinami 5047e210dc Remove tests requiring Neutron LBaaS
Neutron LBaaS was retired during train cycle and was replaced by
octavia. Because we no longer support train, it does not make any
sense to maintain tests requiring that removed component.

Change-Id: I9cf7532d51843698b63bae2ee825f683f07e2df8
2023-09-22 15:07:17 +09:00
Takashi Kajinami 6b9023fa2c Ensure required flavor and image are configured
Change-Id: I2a2f3fbf0c523e294dd52024a2f55c0ad158b15b
2023-09-22 06:06:09 +00:00
Takashi Kajinami 449bc1029e Use minimal image and flavor for base scenario test
This test case can use cirros, and does not require additional
features.

Change-Id: I2eb569fc2b4a9ff01b979cd631ec58d2ac6e72ad
2023-09-22 14:33:12 +09:00
Zuul 4196ac5992 Merge "Skip tests when heat is unavailable" 2022-08-30 07:52:09 +00:00
Takashi Kajinami 1e6b38807e Execute volume tests only when cinder is available
This change makes sure that the scenario tests which require cinder are
skipped when the [service_available] cinder option is False.

Change-Id: I94c48ecd28acadda39abf4ef794434a72e9a7002
2022-08-22 11:46:37 +09:00
Zuul 5d3d66b5ee Merge "Use LOG.warning instead of deprecated LOG.warn" 2022-08-02 06:18:17 +00:00
Takashi Kajinami c4b871a79e Skip tests when heat is unavailable
Currently the [service_available] heat parameter is not actually used
and the plugin tests are always executed regardless of availability
of Heat service.

This change ensures that the parameter is honored so that users can
disable plugin tests even if the plugin package is enabled.

Change-Id: I148d7a9c92f210d4584798131a1b23f648f6e5e3
2022-08-01 14:23:18 +00:00
Takashi Kajinami cd0ba393cf Create a keypair with public_key
Nova requires the public_key element when creating a keypair since api
version 2.92. This change ensures the element is passed when creating
a OS::Nova::KeyPair resource.

The master jobs are temporally made non-voting because one integration
test is failing now. These jobs are made voting again once the test is
fixed in the heat repo.

Story: 2010201
Task: 45921
Change-Id: Icdc25a7a79f02ccc5eadcfa5dee99ce5f4d3b00e
2022-07-31 03:12:09 +00:00
Takashi Kajinami dfb9739a8d Remove six
Python 2 is no longer supported, thus usage of six can be removed.

Change-Id: I1a44b65768cb862e10d013801dd47cb0510b2d07
2022-05-10 00:53:21 +09:00
Takashi Kajinami e44722f005 Use LOG.warning instead of deprecated LOG.warn
The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I5211a236492910d759f3c4beb04d9ffa156007ae
2022-01-19 13:31:55 +09:00
Takashi Kajinami 335c11b3e7 Use Block Storage API v3 instead of API v2
Block Storage API v2 was deprecated during Pike cycle and is being
removed during Xena cycle, and current v3 API should be used instead.

Change-Id: Ic15f4aff72661ae5a50dbb14840ba0277a578173
2021-08-02 14:38:28 +09:00
Bence Romsics 407840581e Functional tests for OS::Neutron::ExtraRouteSet
Change-Id: Iff352cd2c62824ddcadfdbb9d345849dab101a31
Depends-On: https://review.opendev.org/675913
Story: #2005522
Task: #36484
2020-11-17 07:54:41 +00:00
Zuul cd48c29d49 Merge "Allow retry when wc_notify not successed" 2020-11-16 08:39:15 +00:00
Oleh Hryhorov 9f622d86d4 Fixing typo for cert_validate
Due to this typo cert_validate had been recognized as tuple but
not boolean.

Change-Id: I379ddaf644d199e3c1b609d31e28942fb1a1f12f
2020-06-09 20:53:41 +03:00
Zuul 62e3458894 Merge "Allow empty list of tags instead of None" 2020-05-11 18:34:43 +00:00
Zuul abae767a48 Merge "Add tls support for tests" 2020-05-06 14:03:29 +00:00
ricolin 86d8abff2e [stable gate fix] Check if cert_validate is supported
Also check if `cert_validate` is supported in building API tests.

Needed-By: https://review.opendev.org/707663
Needed-By: https://review.opendev.org/707760
Change-Id: Ic96f7becff2753ff72d5dd75bea75fadf21a036e
2020-02-14 15:08:32 +08:00
Zuul 05dc2d6929 Merge "Rectify volumes tests" 2020-02-10 19:26:57 +00:00
Zuul 8f925027fe Merge "Pass disable_ssl_certificate_validation to gabbit tests" 2020-02-10 19:22:42 +00:00
Michael Polenchuk 0643b17c11 Rectify volumes tests
* pass updated stack parameters directly to keep the original value
* volume property of display_description ain't available
  in cinder api version 2+

Change-Id: I346b4da7d002e86f39280ef6caf141a18b0404e3
Story: 2007217
Task: 38468
2020-01-27 09:24:04 +00:00
Vasyl Saienko 569493bb0e Pass disable_ssl_certificate_validation to gabbit tests
The patch passes disable_ssl_certificate_validation to gabbi
tests driver.

Change-Id: Ib70341bb0c083d296e074d1cf062bc355ac24432
2020-01-20 09:46:05 +02:00
ricolin 87030dbfb6 Add tls support for tests
Change-Id: I811c3d21c360fe03270ec251744916f3f85a22f4
2020-01-07 00:05:08 +08:00
ricolin 3a8aa828bc Allow retry when wc_notify not successed
Task: 36946

Depends-On: https://review.opendev.org/#/c/700512/

Change-Id: I0689ac7e434b6e621e8d3a3be9d3420eea570e68
2019-12-26 15:32:46 +00:00
ricolin dc2952029b Add poll interval for gabbi api tests
Increase the delay interval from 1 sec to 2 secs.
This will make the total waiting period twice longer without generate more
queries.

Depends-On: https://review.opendev.org/#/c/700512/

Change-Id: I7dd23f85c9f58ca42d7607a2a472af7afbe69e55
Story: #2006674
Task: #37833
2019-12-26 15:32:13 +00:00
Zane Bitter 4e56c72ff0 Allow empty list of tags instead of None
If a stack has no tags we want to be able to return an empty list []
instead of None.

Change-Id: I2f31e6b1f59149370e57e5cb43984476e4a1902c
Task: 37005
2019-10-09 23:29:52 -04:00
Zuul 13b0bf9cc5 Merge "Allow to pass --insecure options into VMs" 2019-10-09 20:43:33 +00:00
Zuul 27a82133a5 Merge "Remove handling for client status races" 2019-10-08 19:59:40 +00:00
Pavlo Shchelokovskyy ab1725eb6b Allow to pass --insecure options into VMs
currently Heat tests have troubles running when self-signed SSL CA is
used on public Heat API and standard upstream images (Cirros, Ubuntu)
are used as those lack trust to those CA - example is DevStack
with tls-proxy service enabled.

A workaround is to set [clients_heat]insecure=True, but that is
not really a production-ready setting, and does not work for CFN-style
signaling, only for WaitConditions.

Instead, this patch adds an extra config option
`vm_to_heat_api_insecure` (defaults to False), and when enabled tests will
pass the correct option to the curl or cfn-signal commands running from
instance's user data via new parameters that test templates are now
accepting.

Change-Id: I94a82caf1fcb6999151ff1e6fbbe1e2ba211bbb9
2019-10-05 16:23:38 +08:00
Rocky 5d966f94a7 Fix for boot_config_env default path
Change-Id: I1bd2b5c194c3cb4d7cbd893139efba89bc0b4fc0
Story: #2006483
Task: 36426
2019-09-02 11:05:54 +00:00
Zuul e4d6583aa6 Merge "Don't require in-place MAC address update" 2019-07-29 18:32:58 +00:00
Zuul fff11ee404 Merge "Increase timeout for WaitCondition test" 2019-07-16 19:58:36 +00:00
Zuul b2573a5c56 Merge "Provide software config name in api test" 2019-07-05 06:34:26 +00:00
Keigo Noha 374fdb793b Use floating_network_name instead of 'public'
In RemoteDeeplyNestedStackTest, network name is assigned as 'public'.
However, there is no guarantee to have 'public' network.
Instead of using the hardcoded network name, we should use
floating_network_name assigned in conf file.

Change-Id: I01313d557e415bb0b0d8df310c445e63190f4505
Story: #2006144
Task: 35640
2019-07-01 22:17:43 +09:00
Zane Bitter 29f9e0a922 Don't require in-place MAC address update
Previously, we checked that when updating the MAC address that the port
was updated in-place. However, this only works because the port isn't
attached to anything. In a more realistic scenario, updating in-place
actually fails. Remove this check to allow changing the Heat code to
replace the port when the MAC changes.

Change-Id: Ie8dd18d77a98a345d9129e4e8cb1a027f4cfdf60
Task: 33766
2019-06-17 10:34:50 -04:00
Rabi Mishra 123ca2df28 Provide software config name in api test
This is mandatory in api but not for SoftwareConfig
resource in the template.

Change-Id: Ic03976ecd8994dd3a52e776c66e6397ba5d022f1
Task: 33531
2019-05-30 12:40:32 +05:30
Zane Bitter 0e563cadf9 Increase timeout for WaitCondition test
This test has been failing intermittently in the gate. There's no
obvious pattern to the failures, and looking at a random set of logs
there's no obvious cause other than that signals don't start to come in
until very close to the timeout time. So it appear that slow nodes are
at least part of the issue. Increase the timeout to give them more time
to boot.

Change-Id: I7013d3629d0df893cefc47478f650135a616103f
2019-05-29 19:39:55 -04:00
Zuul f1c7c24ae8 Merge "Use cfn tools under /usr/bin instead of /opt/aws/bin" 2019-04-01 05:58:48 +00:00
Zuul f543d390e1 Merge "Fix test_server_software_config scenario test" 2019-03-15 11:19:03 +00:00
Zuul 4d9644a3ee Merge "Add functional test for multi-cloud" 2019-03-14 02:30:53 +00:00
Zuul 068c170827 Merge "Skip tests based on service features disabled in tempest" 2019-03-11 15:06:27 +00:00
Zuul 167c147cfe Merge "Add external_ref test for update stack" 2019-03-06 06:34:20 +00:00
Takashi Kajinami e70c886319 Use cfn tools under /usr/bin instead of /opt/aws/bin
It is not so common to have cnf-tools under /opt/aws/bin
in cloude images. For example, CentOS, RHEL or Fedora has
cfn tools under /usr/bin, and has nothing under /opt.

Even in Amazon Linux, cfn tools is located under /usr/bin
and access to /opt/aws/bin is redirected to /usr/bin
with symbolic link, so it could be make us easy to choose
an image to run scenario test by using more generic path,
under /usr/bin.

Change-Id: If2dd6ad3e2a03f62ea932e41a210f0ec0e4c4fcc
2019-02-27 10:30:38 +09:00
Rabi Mishra 9fe7820864 Fix test_server_software_config scenario test
In commit 4ca172ae78 we changed to
use heatclient utilities to load files and it broke this test.

File mode must be string from Puppet 4 onwards, so the inline
manifest also needs to be fixed.

Note: This test is not run in the gate.

Change-Id: Ia0be1aab36448b291ea43371a5d906fa79eb3753
2019-02-01 22:18:44 +05:30
Rabi Mishra 144bdc6f73 Skip tests based on service features disabled in tempest
It's not possible to know if services have certain features
enabled from the sevice API in certain cases. Let's leverage
the service specific feature groups in tempest. If a specific
service feature is disabled in tempest config, the decorated
tests would be skipped.

ex. If tempest.conf contains

[volume-feature-enabled]
backup = False

test_cinder_volume_create_backup_restore scenario test would be
skipped.

Change-Id: I7a2495182791595c87f8245ff5e13dfd841b013f
2019-01-24 18:53:28 +05:30
Zuul e2373b3ba2 Merge "Fix heat service availability config option name" 2019-01-23 12:14:06 +00:00
Zuul ad04045b63 Merge "Add test for remote nested stacks" 2019-01-03 05:30:30 +00:00