6 Commits

Author SHA1 Message Date
Samuel Allan
5e40ba7d81
Add func tests for tempest-k8s charm
This is to verify that the tempest-k8s charm deploys successfully
(reaches active/idle, the tempest environment was set up successfully),
and doesn't adversely impact the rest of the sunbeam deployment.

Func tests with this charm have been observed to be unstable
(unexpected errors running certain tests),
so for now only minimal tests are added,
and it has been implemented in its own new test bundle.
This new test bundle is only triggered on changes in tempest-k8s code,
so it shouldn't affect the CI for other charms if it becomes unstable.

We still need to add more tests and debug the issues we were seeing,
but in the interests of time, we aim to implement these tests
and debug the issues in follow up patches.

Change-Id: I548eb07ed1eb9e67c46f62a16d36bfaec83d7040
2024-03-06 09:55:34 +10:30
Samuel Allan
f120a79203 Ignore more temporary files used in testing
During unittests, some temporary files are copied to the charms,
then cleaned up after the tests finish.
However, these files may not be cleaned up if the tests are interrupted,
resulting temporary files sitting around until the tests are run again.

Most were ignored in 58100f3d, but these part templates dirs were missed.

Change-Id: Iaf3f374c5f13ec645daa07eac2604ed7fccc7271
2024-02-01 10:24:50 +10:30
Samuel Allan
58100f3dbc Ignore temporary files used for unittests
During unittests, some temporary files are copied to the charms,
then cleaned up after the tests finish.
However, these files may not be cleaned up if the tests are interrupted,
resulting temporary files sitting around until the tests are run again.

We should ignore these to avoid accidentally checking them in to git.

Change-Id: I91b9f7c2333f109e91a4ec7952d7c9a0e0631208
2024-01-29 15:33:25 +10:30
Guillaume Boutry
619976fe43
Implement sunbeam-clusterd
Sunbeam-clusterd can scale up and down.
Currently, the external address in bound to the peers relationship.
Exposes the action `get-credentials` which returns the URL. In the long
term, it will return the credentials to access securely clusterd.

Change-Id: I8b91efe6d96198f5ad3634b9747161225381ded6
2024-01-25 12:30:54 +01:00
Guillaume Boutry
81be68e168
Regenerate secrets to publish charms
Add utility for generating a new secret.

Change-Id: If1c379ba88a8ab012bee1fc70265966f59c17dea
2024-01-12 14:05:29 +01:00
Hemanth Nakkina
df70e376ff
Add zuuljobs
* Add sunbeam project template to run pep8, py3 tests
* Add zuul.d/zuul.yaml to run pep8, py3, cover tests
* Update charmcraft and requirements for each charm
* Add global tox.ini to invoke fmt, pep8, py3, cover,
  build
* Add gitreview file
* Fix py3 test failures in ciner-ceph-k8s, glance-k8s,
  openstack-exporter
* Add jobs for charm builds using files option so that
  job is invoked if files within the component are
  modified. Add charm builds to both check and gate
  pipeline.
* Make function tests as part of global. Split the function
  tests into core, ceph, caas, misc mainly to accomodate
  function tests to run on 8GB. Add function tests as
  part of check pipeline.
* Add zuul job to publish charms in promote pipeline
  Add charmhub token as secret that can be used to
  publish charms.
  Note: Charmhub token is generated with ttl of 90 days.
* Run tox formatting
* Make .gitignore, .jujuignore, .stestr.conf global and
  remove the files from all charms.
* Make libs and templates global. Split libs to internal
  and external so that internal libs can adhere to
  sunbeam formatting styles.
* Add script to copy common files necessary libs, config
  templates, stestr conf, jujuignore during py3 tests
  and charm builds.
* Tests for keystone-ldap-k8s are commented due to
  intermittent bug LP#2045206

Change-Id: I804ca64182c109d16bd820ac00f129aa6dcf4496
2023-11-30 15:32:39 +05:30