-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPE-2994] No more relational databag usage (#166)
* Removing databag usage from the charm
- Loading branch information
1 parent
800974d
commit 8eab4c4
Showing
5 changed files
with
75 additions
and
4 deletions.
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,28 @@ | ||
name: integration-tests-juju3 | ||
|
||
on: | ||
pull_request: | ||
workflow_call: | ||
|
||
jobs: | ||
integration-test-juju3: | ||
name: Integration Test on Juju3 | ||
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main | ||
secrets: inherit | ||
with: | ||
extra-arguments: >- | ||
--openstack-rc=${GITHUB_WORKSPACE}/openrc | ||
--kube-config=${GITHUB_WORKSPACE}/kube-config | ||
--screenshot-dir=/tmp | ||
juju-channel: 3.1/stable | ||
channel: 1.27-strict/stable | ||
modules: '["test_addon", "test_core"]' | ||
pre-run-script: | | ||
-c "sudo microk8s enable hostpath-storage | ||
sudo microk8s kubectl -n kube-system rollout status -w deployment/hostpath-provisioner | ||
sudo microk8s config > ${GITHUB_WORKSPACE}/kube-config | ||
chmod +x tests/integration/pre_run_script_juju3.sh | ||
./tests/integration/pre_run_script_juju3.sh" | ||
test-tox-env: "integration-juju3" | ||
setup-devstack-swift: true | ||
trivy-image-config: ./trivy.yaml |
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
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,20 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
# Pre-run script for integration test operator-workflows action. | ||
# https://github.com/canonical/operator-workflows/blob/main/.github/workflows/integration_test.yaml | ||
|
||
# Jenkins machine agent charm is deployed on lxd and Jenkins-k8s server charm is deployed on | ||
# microk8s. | ||
|
||
TESTING_MODEL="$(juju switch)" | ||
|
||
# lxd should be install and init by a previous step in integration test action. | ||
echo "bootstrapping lxd juju controller" | ||
sg snap_microk8s -c "microk8s status --wait-ready" | ||
sg snap_microk8s -c "juju bootstrap localhost localhost" | ||
|
||
echo "Switching to testing model" | ||
sg snap_microk8s -c "juju switch $TESTING_MODEL" |
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,13 @@ | ||
cosl | ||
juju>=3.2.2 | ||
kubernetes>=25.3,<26 | ||
macaroonbakery==1.3.1 | ||
pillow | ||
pytest | ||
pytest-cov | ||
pytest-operator | ||
python-keystoneclient | ||
python-swiftclient | ||
requests | ||
types-PyYAML | ||
types-requests |
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