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

e2e: test cni args #23597

Merged
merged 1 commit into from
Jul 15, 2024
Merged

e2e: test cni args #23597

merged 1 commit into from
Jul 15, 2024

Conversation

martisah
Copy link
Contributor

This PR adds an e2e test for cni args implemented in #23538.

The test uses a job specification with a custom cni plugin "cni_args.sh" to write a file containing an interpolated variable passed in as a cni arg to the task local folder. Then the test makes sure that this file exists in the correct location and checks that the value was written and interpolated correctly.

@martisah martisah requested review from gulducat, tgross and shoenig July 15, 2024 20:19
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

"type": "cni_args.sh"
}
]
}
Copy link
Member

Choose a reason for hiding this comment

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

This file is missing a EOL at the end of the file, which will mess up various unix tools (ex. try running wc -l on this file and you'll see it'll only have 8 lines!). You should be able to fix-on-save in your editor.


set -euo pipefail

# things are prefixed with "Fancy*" because this is a fancy plugin.
Copy link
Member

Choose a reason for hiding this comment

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

😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Daniel did this if you can tell 🤣

Co-authored-by: Daniel Bennett <[email protected]>
@martisah martisah merged commit bc81c85 into main Jul 15, 2024
19 checks passed
@martisah martisah deleted the cni-Args-e2e branch July 15, 2024 21:08
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants