-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change adds some basic level of functional testing for pull requests. The tests generate some common deployment scenarios and start deploying those. This tests for example whether the charms are available from the charmhub and whether the chosen versions are compatible with each other. Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
- Loading branch information
1 parent
d52c5ed
commit dc54db5
Showing
3 changed files
with
41 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,38 @@ | ||
name: Functional Testing | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
functional: | ||
name: Run functional tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get sources | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: canonical/setup-lxd@v0.1.1 | ||
|
||
- name: Install Juju | ||
run: | | ||
set -e -u -x | ||
sudo snap install juju --channel 2.9 --classic | ||
- name: Bootstrap controller | ||
run: | | ||
set -e -u -x | ||
juju bootstrap localhost controller | ||
- name: Focal / Ussuri | ||
run: | | ||
set -e -u -x | ||
cd openstack | ||
./generate --name functional --series focal --release ussuri --run | ||
juju status | ||
juju switch default | ||
juju destroy-model --yes --destroy-storage --force --no-wait functional |
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