Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: add system tests #281

Merged
merged 53 commits into from
Apr 19, 2024
Merged

Conversation

simondeziel
Copy link
Member

@simondeziel simondeziel commented Apr 10, 2024

No description provided.

@simondeziel simondeziel force-pushed the system-tests branch 25 times, most recently from f1d0e01 to a07d57f Compare April 17, 2024 00:55
@simondeziel simondeziel force-pushed the system-tests branch 4 times, most recently from 21b94f8 to b53818d Compare April 18, 2024 02:49
@simondeziel simondeziel force-pushed the system-tests branch 2 times, most recently from 55538fb to 1f2b2e7 Compare April 18, 2024 16:04
We don't want to match on any digit present anywhere like that:

```
$ echo "disk2" | grep -P '\d+'
2
```

Instead, require the searched string to be made of digits only.

Signed-off-by: Simon Deziel <[email protected]>
@@ -959,9 +959,9 @@ setup_system() {

if [ -n "${MICROCLOUD_SNAP_PATH}" ]; then
lxc file push "${MICROCLOUD_SNAP_PATH}" "${name}"/root/microcloud.snap
lxc exec "${name}" -- sh -c "PATH=\$PATH:/snap/bin snap install --devmode /root/microcloud.snap"
lxc exec "${name}" -- snap install --devmode /root/microcloud.snap
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be using --dangerous rather than --devmode as the latter isn't confined and isn't a representative test.

Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, there's plenty of cleanup in there.

I would like to understand why there are different lxd channels being used apparently in the tests.

But any tests are better than none!

@tomponline tomponline merged commit 0c6fff3 into canonical:main Apr 19, 2024
18 of 20 checks passed
@simondeziel simondeziel deleted the system-tests branch April 19, 2024 13:22
Copy link
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, great to have those tests running now!

microcloud/test/suites/basic.sh Show resolved Hide resolved
microcloud/test/includes/microcloud.sh Show resolved Hide resolved
@simondeziel
Copy link
Member Author

All the feedback is being addressed in #290 (still in draft).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants