-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from gnuoy/add-functional-tests
Add functional tests
- Loading branch information
Showing
7 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: deploy | ||
|
||
on: | ||
workflow_call: | ||
|
||
|
||
jobs: | ||
deploy: | ||
name: deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Tox | ||
run: pip install tox | ||
- name: Setup microk8s | ||
uses: charmed-kubernetes/actions-operator@main | ||
with: | ||
provider: microk8s | ||
channel: 1.26-strict/stable | ||
juju-channel: 3.1/stable | ||
microk8s-addons: hostpath-storage dns rbac metallb:10.64.140.40-10.64.140.49 | ||
- name: Install snaps | ||
run: | | ||
sudo snap install --classic terraform | ||
sudo snap install --classic juju-wait | ||
- name: Configure LXD | ||
run: | | ||
sudo groupadd --force --system lxd | ||
sudo usermod --append --groups lxd $USER | ||
sudo snap start lxd | ||
sudo lxd waitready --timeout=30 | ||
sudo lxd init --auto | ||
- name: Build Charm | ||
run: | | ||
sg lxd -c "charmcraft -v pack" | ||
mv rabbitmq-k8s*charm rabbitmq-k8s.charm | ||
- name: Run functional tests | ||
run: | | ||
tox -e func-smoke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,5 @@ jobs: | |
|
||
- name: Run tests | ||
run: tox -e py3 | ||
deploy: | ||
uses: ./.github/workflows/deploy.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ parts: | |
- libssl-dev | ||
- rustc | ||
- cargo | ||
charm-binary-python-packages: | ||
- cryptography | ||
- jsonschema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
coverage | ||
flake8 | ||
stestr | ||
rabbitmq_admin | ||
git+https://github.com/openstack-charmers/[email protected]#egg=zaza | ||
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack | ||
ops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
bundle: kubernetes | ||
applications: | ||
|
||
rabbitmq: | ||
charm: ../../rabbitmq-k8s.charm | ||
scale: 1 | ||
trust: true | ||
resources: | ||
rabbitmq-image: ghcr.io/openstack-snaps/rabbitmq:3.9.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
gate_bundles: | ||
- smoke | ||
smoke_bundles: | ||
- smoke | ||
tests: | ||
- zaza.openstack.charm_tests.rabbitmq_server.tests_k8s.RabbitMQK8STest | ||
tests_options: | ||
trust: | ||
- smoke | ||
ignore_hard_deploy_errors: | ||
- smoke | ||
|
||
target_deploy_status: | ||
rabbitmq: | ||
workload-status: active | ||
workload-status-message-regex: '^$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters