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

Add test for automatic cross mounting behaviour #297

Merged
merged 1 commit into from
Sep 19, 2021

Conversation

sargun
Copy link
Contributor

@sargun sargun commented Sep 16, 2021

This adds conformance tests for automatic cross mounting. Usually, the test
should not run as it can give a false positive. The OCI_AUTOMATIC_CROSSMOUNT
must be set based on how the registry is expected to be configured.

Signed-off-by: Sargun Dhillon sargun@sargun.me

This adds conformance tests for automatic cross mounting. Usually, the test
should not run as it can give a false positive. The OCI_AUTOMATIC_CROSSMOUNT
must be set based on how the registry is expected to be configured.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
@sargun
Copy link
Contributor Author

sargun commented Sep 16, 2021

"Fixes": #282

Comment on lines +327 to +328
automaticCrossmountVal, runAutomaticCrossmountTest = os.LookupEnv(envVarAutomaticCrossmount)
automaticCrossmountEnabled, _ = strconv.ParseBool(automaticCrossmountVal)
Copy link
Member

Choose a reason for hiding this comment

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

So if I understand correctly, the 201 test will only run if both runAutomaticCrossmountTest and automaticCrossmountEnabled are true?

and the 202 test if runAutomaticCrossmountTest is true and automaticCrossmountEnabled is false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct.

@vbatts vbatts merged commit dc8c8b4 into opencontainers:main Sep 19, 2021
@sargun sargun deleted the add-conformance-for-crossmount branch September 24, 2021 17:11
@jdolitsky jdolitsky mentioned this pull request Sep 15, 2022
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 1, 2024
8 tasks
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.

4 participants