test rootless_storage_path from storage.conf#5202
Conversation
8152352 to
377af92
Compare
|
Testing for containers/storage#529 |
There was a problem hiding this comment.
I think the check shouldbe.
Expect(session.OutputToString).To(ContainString(expect))
There was a problem hiding this comment.
looks like this is not related. the result <func() string>: 0x1376d40 doesn't contains or equaal to : /tmp/home/some11410dude/some11410dude
any other way to fix?
377af92 to
fd2d5aa
Compare
|
☔ The latest upstream changes (presumably #5258) made this pull request unmergeable. Please resolve the merge conflicts. |
fd2d5aa to
85fc562
Compare
85fc562 to
7317015
Compare
dd4e445 to
a3f3e51
Compare
|
@QiWang19 Whats the scoop on this. Once this passes tests we can merge storage PR. |
the |
|
Remove the tmpdir stuff. That must be the issue. cp /etc/containers/storage.conf /etc/containers/storage.conf.test |
c6775e8 to
c9a7905
Compare
e3d20b9 to
b61b953
Compare
|
tests error should the be added to the dummy storage.conf? |
|
Why not just |
Doesn't work locally. I can try in the test. |
|
I'm vendoring a new branch containers/storage#542. |
b65a0a2 to
b51fe82
Compare
|
☔ The latest upstream changes (presumably #5397) made this pull request unmergeable. Please resolve the merge conflicts. |
b51fe82 to
8627f3e
Compare
|
@rhatdan @edsantiago PTAL. Will get this in for test storage.config |
edsantiago
left a comment
There was a problem hiding this comment.
Destroying a user's setup in $HOME, even if only in CI, is an unexpected side effect that could cause much confusion and harm. Please see if there are ways to avoid that.
There was a problem hiding this comment.
Perhaps it might be clearer to say "this test is only meaningful as rootless"
There was a problem hiding this comment.
This makes me uncomfortable. I think these tests run only in CI, and can't be run by developers, but if that ever changes this could be catastrophic for regular users: it would destroy their existing storage.conf.
Did you consider something such as this instead?
preserved_home := getenv("HOME")
(add magic fail-safe such that HOME is restored on exit or failure)
setenv("HOME", random-tmpdir)
...then create the storage.conf, etc
|
☔ The latest upstream changes (presumably #5507) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I will rework the tests. |
8627f3e to
10dfc4f
Compare
test rootless_storage_path from strorage.conf. If user configured rootless_storage_path in storage.conf, podman info should suggest the change. Signed-off-by: Qi Wang <qiwan@redhat.com>
10dfc4f to
d422799
Compare
|
@edsantiago @rhatdan PTAL. |
edsantiago
left a comment
There was a problem hiding this comment.
LGTM. Thank you for your perseverance.
| out, err := cmd.CombinedOutput() | ||
| fmt.Println(string(out)) | ||
| Expect(err).To(BeNil()) | ||
| Expect(string(out)).To(ContainSubstring(expect)) |
There was a problem hiding this comment.
It'd be better to compare the string exactly, not substring, but I'm OK with this as it is. Just make a note for future work: exact comparisons are better than substring.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, QiWang19, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add test for PR containers/storage#529
test rootless_storage_path from strorage.conf. If user configured rootless_storage_path in storage.conf, podman info should suggest the change.
can be merged after #5929
Signed-off-by: Qi Wang qiwan@redhat.com