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

fix: Fix tests to match nerdctl 1.2.1 outputs #50

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

vsiravar
Copy link
Contributor

Issue #, if available:

Description of changes:
After upgrading nerdctl dependency to 1.2.1, 7 e2e tests in finch fail due to failed assertions on output strings of finch commands.

nerdctl images --quiet

Output before 1.2.1

$ nerdctl images --quiet
69665d02cb32

Output in 1.2.1

$ nerdctl images --quiet
sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517

nerdctl run/exec -u/--user

Output before 1.2.1

$ nerdctl run -u nobody:100 alpine id                                   
uid=65534(nobody) gid=100(users)

Output in 1.2.1

$ nerdctl run -u nobody:100 alpine id
uid=65534(nobody) gid=100(users) groups=100(users)

nerdctl run --group-add

Output before 1.2.1

$ nerdctl run -u nobody --group-add 100 alpine id
uid=65534(nobody) gid=65534(nobody) groups=100(users)

Output in 1.2.1

$ nerdctl run -u nobody --group-add 100 alpine id
 uid=65534(nobody) gid=65534(nobody) groups=100(users),65534(nobody) 

Testing done:
Yes, locally.

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@davidhsingyuchen davidhsingyuchen left a comment

Choose a reason for hiding this comment

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

This is probably a fix. refactor shouldn't change the behavior.

tests/exec.go Outdated Show resolved Hide resolved
@vsiravar vsiravar changed the title refactor: Refactor tests to match nerdctl 1.2.1 outputs fix: Refactor tests to match nerdctl 1.2.1 outputs Mar 15, 2023
tests/run.go Outdated Show resolved Hide resolved
Signed-off-by: Vishwas Siravara <[email protected]>
@vsiravar vsiravar changed the title fix: Refactor tests to match nerdctl 1.2.1 outputs fix: Fix tests to match nerdctl 1.2.1 outputs Mar 15, 2023
@vsiravar vsiravar merged commit 3d9b4f4 into runfinch:main Mar 16, 2023
vsiravar pushed a commit that referenced this pull request Mar 16, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.6.2](v0.6.1...v0.6.2)
(2023-03-16)


### Bug Fixes

* Fix tests to match nerdctl 1.2.1 outputs
([#50](#50))
([3d9b4f4](3d9b4f4))


### Build System or External Dependencies

* **deps:** bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.8.4
([#41](#41))
([a9476c1](a9476c1))
* **deps:** bump github.com/onsi/gomega from 1.27.1 to 1.27.2
([#40](#40))
([e8fc71a](e8fc71a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants