-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: make unit and func tests pass again
This changes are mostly working on the test codes to make sure they are passing for the upcoming jammy support. In addition to that, it removes some old workarounds that are not needed anymore. There's still one open issue about the functional tests. See below. Since this is a big change, here is a summary of changes. Makefile: - remove workaround for the closed issue[0] where symlinks breaking charm push - introduce standard rename.sh tests/unit: - mock a bunch of stuff that were trying to modify system files/dirs tests/functional: - remove workaround for the closed issue[1] where zaza was not respecting local_overlay_enabled key - fix the issue where zaza waits for ubuntu charms indefinitely due to empty message[2] - add missing required config key in iscsi test - charmstore -> charmhub src: - get rid of commented code in production - add missing quotes to a config.yaml default key --- Currently open issues: tests/functional: - focal-fc bundle is not running, probably needs special hardware judging by the constraint given in the bundle file. However it is not listed in gate or smoke bundles, so it is not blocking the release. [0] canonical/charmcraft#109 [1] openstack-charmers/zaza#379 [2] openstack-charmers/zaza#436 Signed-off-by: Mert Kırpıcı <[email protected]>
- Loading branch information
Mert Kırpıcı
committed
Aug 17, 2022
1 parent
083848b
commit 17b428f
Showing
19 changed files
with
169 additions
and
99 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
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,19 @@ | ||
type: charm | ||
parts: | ||
charm: | ||
charm-python-packages: [setuptools] | ||
bases: | ||
- build-on: | ||
- name: ubuntu | ||
channel: "20.04" | ||
architectures: ["amd64"] | ||
run-on: | ||
- name: ubuntu | ||
channel: "20.04" | ||
architectures: | ||
- amd64 | ||
- name: ubuntu | ||
channel: "18.04" | ||
architectures: | ||
- amd64 | ||
|
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
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 @@ | ||
#!/bin/bash | ||
charm=$(grep -E "^name:" metadata.yaml | awk '{print $2}') | ||
echo "renaming ${charm}_*.charm to ${charm}.charm" | ||
echo -n "pwd: " | ||
pwd | ||
ls -al | ||
echo "Removing previous charm if it exists" | ||
if [[ -e "${charm}.charm" ]]; | ||
then | ||
rm "${charm}.charm" | ||
fi | ||
echo "Renaming charm here." | ||
mv ${charm}_*.charm ${charm}.charm |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
git+https://github.com/openstack-charmers/zaza.git#egg=zaza | ||
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
tests/functional/tests/bundles/overlays/local-charm-overlay.yaml.j2
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,3 @@ | ||
applications: | ||
{{ charm_name }}: | ||
charm: "{{ CHARM_BUILD_DIR }}/{{ charm_name }}.charm" |
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
Oops, something went wrong.