Commit Graph

37 Commits

Author SHA1 Message Date
James Page 891761d631 Merge pull request #1278 from fnordahl/tempest-optional-http-image
tempest: Conditionally populate http_image key.
2024-10-14 17:09:42 +01:00
Frode Nordahl 3e33bc73b1 tempest: Conditionally populate http_image key.
The `[image]` section and `http_image` configuration key is
optional, only populate it if the caller has populated the
`TEST_SWIFT_IP` environment variable.

Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-12 09:26:57 +02:00
Frode Nordahl 9511aae4a6 tempest: Deduce min_compute_nodes from Juju model.
At present this value is hard coded, which may cause test failures
on deployment with different number of compute nodes.

Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-11 12:34:27 +02:00
Felipe Reyes a0ec1cddab Fix formatting in [magnum].labels
magnum-tempest-plugin since commit[0] is using ast.literal_eval() to
parse the value set in [magnum].labels, so the formatting needs to be a
Python dict.

This is an example of how the string needs to look like to make the
parser happy:

>>> import ast
>>> ast.literal_eval('{"a": "1:1"}')
{'a': '1:1'}

[0] https://opendev.org/openstack/magnum-tempest-plugin/commit/2fe075ae789e06ec58d37dc6f41382e2b64a8343#diff-8e9d4d1beb73d502d61e14564c76d54acf855bf8
2024-07-30 12:14:38 -04:00
Felipe Reyes cb802733e6 Fix [magnum].label formatting
Fixes the formatting of the labels configuration key, error raised with
the current formatting:

    Traceback (most recent call last):
      File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/tests/api/base.py", line 39, in setUpClass
    config.Config.setUp()
      File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/common/config.py", line 187, in setUp
    cls.set_labels(config)
      File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/common/config.py", line 162, in set_labels
    cls.labels = ast.literal_eval(CONF.magnum.labels)
      File "/usr/lib/python3.8/ast.py", line 59, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
      File "/usr/lib/python3.8/ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
      File "<unknown>", line 1
        container_infra_prefix:10.245.164.190:5000
                              ^
    SyntaxError: invalid syntax
2024-07-29 15:04:04 -04:00
Corey Bryant 35c8bdcc67 Increase tempest ssh timeout
Some of the tests that ssh into instances have been timing out
at times. Increase the timeout config for ssh.
2023-11-10 13:17:57 +00:00
Corey Bryant 0fdf38f49f Add tempest confirmation for octavia tests
This sets new tempest config options for octavia, including the setting
of log_user_roles=False, which allows tests to avoid the optional
list_role_assignments call that was resulting in 403 Forbidden for all
octavia tests.
2023-11-06 13:19:57 +00:00
Corey Bryant c16c0f95c7 Clean up [heat_plugin] section 2023-11-03 14:08:52 +00:00
Corey Bryant f1081a860b Add new heat_plugin section to tempest.conf
The heat tepest tests have moved out of tempest proper into a plugin.
This updates the tempest.conf accordingly.
2023-10-31 20:51:34 +00:00
Felipe Reyes 98f89183e6 Bump up http timeout to 2 minutes.
Tempest clients have a default timeout of 60s which has shown to not be
enough for resource constrained environments.
2023-04-17 12:06:03 -04:00
Felipe Reyes 535275750e Add magnum section to tempest.conf template
The magnum section is used to declare configuration specific information
used by magnum-tempest-plugin

The keys used are:

- nic_id, to indicate the external network
- image_id, to indicate the fedora-coreos image to be used
- flavor_id, the flavor id to use when creating clusters
- dns_nameserver, the upstream dns server IP.
- network_driver, the network driver to test (flannel).
- labels, to pass a custom (local) image registry.
- insecure_registry, to mark the custom image registry as http (instead
  of https).
2023-02-14 14:45:20 -03:00
Chris MacNaughton d0193e3817 Add new required dns.nameservers config 2022-11-21 14:31:24 +00:00
Felipe Reyes 8a9b519c81 Set tempest octavia provider to amphora.
By default the provider that will be used by tempest is "octavia" which
in Octavia's default configuration is an alias of amphora, although in a
Charmed OpenStack is not.

This change sets the provider to be used by octavia-tempest-plugin to
amphora.
2022-06-30 18:07:52 -04:00
Corey Bryant 41bc9e0069 Add manila support to tempest 2022-05-19 17:09:07 +00:00
Chris MacNaughton e631b93541 Add proper support for Octavia's tempest tests (#498)
* Update tempest config for Octavia
* ensure the test_server is executable
* remove reference to accounts.yaml
2021-05-04 11:46:27 +02:00
Chris MacNaughton 7bf624b007 Update tempest config files to use newly renamed test_name_server variable 2020-09-25 12:53:13 +02:00
Chris MacNaughton 522d3e53b8 Only configure private Neutron CIDR if it is configured 2020-09-25 10:39:13 +02:00
Chris MacNaughton 5455bee2e9 Fix protocol rendering for keystone URL
Closes #387
2020-08-20 08:52:00 +02:00
Liam Young 68648aede5 Tidyup following review feedback 2020-06-12 13:14:28 +00:00
Liam Young b95c79c9e3 Include templates 2020-06-11 15:53:51 +00:00
Liam Young d837c0ed97 Automatically enable/disable config for tempest.
Automatically enable/disable config for tempest based on the
contents of the keystone service catalogue.
2020-06-11 14:12:16 +00:00
Corey Bryant bdc2e96e93 Drop OS_ prefix from SETUP_ENV_VARS 2020-06-09 14:22:26 +00:00
Corey Bryant 35a9e55ea5 Fix pep8 issues 2020-05-28 14:19:04 +00:00
Corey Bryant 924da664cf Revert "Revert "Set api_extensions and floating_network_name""
This reverts commit 21ee604329552faacfe7984180eb34e003d0cc1b.
2020-05-28 10:45:10 +00:00
Corey Bryant e7da28abc9 Revert "Set api_extensions and floating_network_name"
This reverts commit 1cc280292963ee70aeff9f9dbb96f457f398999f.
2020-05-28 10:45:10 +00:00
Corey Bryant 30b7b91904 Set api_extensions and floating_network_name
api_extensions and floating_network_name are set in tempest.conf to fix
tempest failures for:
* test_list_show_extensions (missing 'l3_agent_scheduler' extension)
* test_server_basic_ops (404 'Floating IP pool not found')
2020-05-28 10:45:10 +00:00
Corey Bryant a21ddd33e6 Code cleanup 2020-05-28 10:45:10 +00:00
Corey Bryant 8a39e07cbf Set disable_ssl_certificate_validation to true to deal with self-signed certs 2020-05-28 10:45:10 +00:00
Corey Bryant 9e3b2f7416 Add catalog_type tempest config support 2020-05-28 10:45:10 +00:00
Corey Bryant f4c150f3e7 restore templates 2020-05-28 10:45:10 +00:00
Corey Bryant eaca793e52 tmp debug testing 2020-05-28 10:45:10 +00:00
Corey Bryant af2cff3c6c Set tempest debug to false 2020-05-28 10:45:10 +00:00
Corey Bryant 4a745e3ab0 Align tempest_v2.py with o-c-t v2 tempest.conf.template 2020-05-28 10:45:10 +00:00
Corey Bryant eff595c6ee Add render_tempest_config_keystone_v2 for older deployments 2020-05-28 10:45:10 +00:00
Liam Young 6347bb707f More updates 2020-05-28 10:45:10 +00:00
Liam Young 1724e482a1 Tempest setup 2020-05-28 10:45:10 +00:00
Liam Young 7b9b816967 Redumentary tempest support 2020-05-28 10:45:10 +00:00