Skip to content

integration: migrate TestAPIGetEnabledCORS to integration test#51550

Merged
thaJeztah merged 1 commit intomoby:masterfrom
2003Aditya:TestAPIGetEnabledCORS
Nov 18, 2025
Merged

integration: migrate TestAPIGetEnabledCORS to integration test#51550
thaJeztah merged 1 commit intomoby:masterfrom
2003Aditya:TestAPIGetEnabledCORS

Conversation

@2003Aditya
Copy link
Contributor

@2003Aditya 2003Aditya commented Nov 17, 2025

- What I did
Migrated the TestAPIGetEnabledCORS test from integration-cli/docker_api_test.go to the new integration test framework under integration/system/api_test.go.

assert.NilError(c, err)
assert.Equal(c, res.StatusCode, http.StatusOK)
body.Close()
// TODO: @runcom incomplete tests, why old integration tests had this headers
Copy link
Member

Choose a reason for hiding this comment

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

Looking at the original test, I think all the relevant parts for the test itself were disabled, so effectively it wasn't testing anything really.

I think we should just remove the test and not migrate it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@thaJeztah should i close this PR .

Copy link
Member

Choose a reason for hiding this comment

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

If you can update it to just remove the test, then we can merge it.

Signed-off-by: Aditya Mishra <mishraaditya675@gmail.com>
@2003Aditya 2003Aditya force-pushed the TestAPIGetEnabledCORS branch from 850908a to 9fbc9d6 Compare November 18, 2025 06:51
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@thaJeztah thaJeztah added status/4-merge kind/refactor PR's that refactor, or clean-up code labels Nov 18, 2025
@thaJeztah thaJeztah added this to the 29.1.0 milestone Nov 18, 2025
@thaJeztah thaJeztah merged commit c36b8dd into moby:master Nov 18, 2025
249 of 252 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing kind/refactor PR's that refactor, or clean-up code status/4-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants