-
Notifications
You must be signed in to change notification settings - Fork 49
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
slicer/test: Define all release archives #81
slicer/test: Define all release archives #81
Conversation
Currently the slicer test defines one archive named "ubuntu" for all test cases no matter what they define in chisel.yaml. But since commit afad3d2 we allow more archives with different names to be defined in chisel.yaml. Define a test archive for each of them.
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.
Looks good to me, thanks! ✔️
result: map[string]string{ | ||
"/usr/": "dir 0755", | ||
"/usr/bin/": "dir 0755", | ||
"/usr/bin/hello": "file 0775 eaf29575", |
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.
Out of curiosity, how did you know the checksum of the /usr/bin/hello
here?
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.
It is the same file from the embedded base-files
package, so I've just copied it from the result
maps from earlier test cases.
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.
It's been a while so it's unclear to me how the default archive logic is mixing with the most recent package version logic. With that said, this PR is simply improving tests, so it can only be a good thing so I'm merging it. Let's please sync about this in a future conversation.
Currently the slicer test defines one archive named "ubuntu" for all
test cases no matter what they define in chisel.yaml. But since commit
afad3d2 we allow more archives with different names to be defined in
chisel.yaml. Define a test archive for each of them.