Skip to content

KNOX-3535: Fix DefaultTopologyServiceTest - #1474

Merged
lmccay merged 1 commit into
apache:masterfrom
handavid:KNOX-3535-test-fix
Oct 28, 2026
Merged

lmccay merged 1 commit into
apache:masterfrom
handavid:KNOX-3535-test-fix

Conversation

@handavid

Copy link
Copy Markdown
Contributor

KNOX-3535 - Fix unit test

What changes were proposed in this pull request?

The DefaultTopologyServiceTest failed to init the DefaultToplogyService because other unit tests were leaving the static GatewayServer.services field populated. This fix adds a setup and teardown method to unset GatewayServer.services. Other unit tests that don't unset this field were modified to unset this field.

How was this patch tested?

unit tests were run in the project.

mvn -T 4C -DskipTests=false -Drat.skip -DskipUI -Ppackage clean package install

Integration Tests

No integration tests were added because there were no code changes. Only test changes are included in this commit

UI changes

No UI changes

The DefaultTopologyServiceTest failed to init the DefaultToplogyService
because other unit tests were leaving the static GatewayServer.services
field populated. This fix adds a setup and teardown method to unset
GatewayServer.services. Other unit tests that don't unset this field
were modified to unset this field.
@handavid

Copy link
Copy Markdown
Contributor Author

@hanicz @pzampino

@lmccay lmccay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 pending precommit tests

@github-actions

Copy link
Copy Markdown

Test Results

  4 files    4 suites   1m 31s ⏱️
149 tests 149 ✅ 0 💤 0 ❌
173 runs  173 ✅ 0 💤 0 ❌

Results for commit c008780.

@lmccay
lmccay merged commit 067cda0 into apache:master Oct 28, 2026
3 checks passed
@handavid
handavid deleted the KNOX-3535-test-fix branch October 29, 2026 00:35
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.

2 participants