Commit Graph

27 Commits

Author SHA1 Message Date
Liam Young debd7ec645 Support vault api behind https 2018-07-11 12:47:24 +00:00
Liam Young 6b3f7e5cc5 Add dict of non-standard workload statuses 2018-07-10 08:59:01 +01:00
Frode Nordahl 2a566b5e05 Fix keystone tls detection and verification
At present the check for which transport to use references a
configuration option that has been removed.

Update check to test for current configuration option plus
add a check for presence of `tls-certificates` relation.

Also remove insecure option and add verify option to allow
control of verification including providing own CA certificate
bundle.

Reference for verify option:
https://docs.openstack.org/keystoneauth/latest/api/keystoneauth1.html#keystoneauth1.session.Session
2018-07-04 13:17:25 +02:00
Liam Young 9d06bb890f Move call to get_juju_model() down to run_in_model
Currently interacting with functions in zaza.model requires the
model to be passed in. This has resulted in multiple calls to
get_juju_model(). It is cleaner to push these calls down into
the model wrapper and make the model_name an optional
argument. In addition, the current model name is now cached
without having to check the os.env each time.

Unfortunately this has resulted in the signature changing on a
great many function so this diff is bigger than would normally
be desirable.
2018-06-14 06:19:26 +01:00
Liam Young c2b8992b2e More docstring tidyup 2018-06-13 13:35:32 +01:00
Liam Young 0b6f6d88dc Documentation fixes 2018-06-06 15:54:06 +01:00
David Ames 031e2eb9c4 Merge pull request #54 from gnuoy/glance_tests
Add tests for testing the glance charm
2018-05-31 10:52:22 -07:00
Liam Young 76c539bae8 Fix typo 2018-05-31 09:23:40 +01:00
Liam Young 12317054d2 Lint fixes 2018-05-31 09:06:03 +01:00
Liam Young 7517faf19a Add a bit of sphinx 2018-05-30 15:29:45 +01:00
Liam Young 56c8d60dcd Add tests for testing the glance charm
* Add OpenStackAPITest class which can be used by OpenStack API
  charms. It provides the framework for common tests like pause
  and resume. It also provides lower level entites like an
  authenticated keystone session.
* Add generic openstack resource managment functions to
  zaza.utilities.openstack. These are based on existing functions
  in charmhelpers. Main difference is that they use tenacity to
  manage retry logic and throw AssertionError if then required state
  is not reached rather than returning True/False
* Add image management functions to zaza.utilities.openstack.
* Add set of glance setup/configuration/tests. These are equivalent
  to the existing glance amulet tests with all the introspection
  tests removed (see below for more detail).

Tests replicated here:
    test_410_glance_image_create_delete
    test_411_set_disk_format
    test_900_glance_restart_on_config_change
    test_901_pause_resume

Tests removed
    test_100_services
    test_102_service_catalog
    test_104_glance_endpoint
    test_106_keystone_endpoint
    test_110_users
    test_115_memcache
    test_200_mysql_glance_db_relation
    test_201_glance_mysql_db_relation
    test_202_keystone_glance_id_relation
    test_203_glance_keystone_id_relation
    test_204_rabbitmq_glance_amqp_relation
    test_205_glance_rabbitmq_amqp_relation
    test_300_glance_api_default_config
    test_302_glance_registry_default_config
2018-05-30 13:40:50 +01:00
Frode Nordahl 7a9d11973e Correct parameter name in docstring 2018-05-16 07:10:54 +02:00
Frode Nordahl 64b2d3de8b Infer ASn from deployment for BGP speaker test configuration 2018-05-15 21:59:19 +02:00
David Ames a73f513b97 Shortname utilitites 2018-05-14 10:49:49 -07:00
David Ames f2982a4f1f Split _local_utils into functional modules
The _local_utils module was misnamed as the utilities it contained
may be used outside of zaza proper. For example in mojo.

This change separates the utilities into functional modules:

 cli_utils: For utilities pertaining to running scripts from command line.
 juju_utils: For utilities pertaining to juju commands.
 generic_utils: For helper utilities that are generic in nature.
2018-05-14 10:49:49 -07:00
Frode Nordahl 8906f7a8c1 Add support for generating certs with multiple SANs 2018-05-11 12:02:29 +02:00
David Ames 77c7f896f7 Bug fixes for mojo's use of zaza
Now with more unit tests!
A couple of minor bug fixes exposed while testing mojo's use of zaza.
2018-05-04 23:09:34 +00:00
Liam Young 34c6431658 Add method for signing csrs 2018-05-03 16:30:06 +00:00
Frode Nordahl 092c3c1f6b Add utility helper function for generating X.509 certs 2018-05-01 14:17:10 +02:00
David Ames 1461761fb8 Rename get_net_info to get_network_config
The configure.network script had already made this change. Using
run_from_cli ran into the fact that it was not changed in
utilities._local_utils.

Update for consistency.
2018-04-25 15:51:33 -07:00
David Ames 6ad3745206 Separate overcloud and undercloud settings
Changed the name of configure_dragent
Removed the network.yaml file requirement for tests
Made a bright line distinction between declared overcloud network
settings and environment specific undercloud settings
The tests will declare the overcloud settings and acquire the
undercloud settings from environment variables.
2018-04-19 14:42:29 -07:00
David Ames 4278e5822d Neutron dynamic routing testing
Add the testing required for neutron dynamic routing A.K.A dragent.
Create the zaza.charm_tests.dragent module for testing neutron dynamic
routing.
Create the zaza.configure module for reusable configuration tools.
Update utilities to simplify authenticating clients.
2018-04-18 16:14:23 -07:00
David Ames 621baa4ee0 Add create port and create floating ip
Add utilities
2018-04-13 16:46:31 -07:00
David Ames 9afd421bd1 Use openrc 2018-04-12 16:15:09 -07:00
David Ames 6eae8a0fbb Use libjuju unit.run for juju_run
Use libjuju for juju run commands
Add unit test for model.run_on_unit
2018-04-12 10:43:35 -07:00
David Ames 612eefe939 Docstrings and renames
Removed unused functions
Docstrings for all functions

Renamed test_utils to _local_utils to indicate use only by zaza
2018-04-10 17:04:57 -07:00
David Ames 22e7ffc1e1 Bring over network specific utilities
Bring over only those utilities required to run network_setup.py from
openstack-mojo-specs. These utilities have been generalized and python3
configured. Use libjuju whenever possible and pre-deprecate anything
else.

Add addition functions to the model.
2018-03-30 16:41:17 -07:00