-
Notifications
You must be signed in to change notification settings - Fork 44
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
Conversation
f1d0e01
to
a07d57f
Compare
21b94f8
to
b53818d
Compare
55538fb
to
1f2b2e7
Compare
…#426) Signed-off-by: Simon Deziel <[email protected]>
Signed-off-by: Simon Deziel <[email protected]>
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]>
Signed-off-by: Simon Deziel <[email protected]>
Signed-off-by: Simon Deziel <[email protected]>
1f2b2e7
to
c5970e0
Compare
Signed-off-by: Simon Deziel <[email protected]>
Signed-off-by: Simon Deziel <[email protected]>
Signed-off-by: Simon Deziel <[email protected]>
c5970e0
to
a827156
Compare
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
There was a problem hiding this 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!
All the feedback is being addressed in #290 (still in draft). |
No description provided.