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

Adding alternate registry endpoint redirection test #542

Merged
merged 27 commits into from
Dec 16, 2022

Conversation

grafnu
Copy link
Collaborator

@grafnu grafnu commented Dec 15, 2022

No description provided.

@grafnu grafnu marked this pull request as ready for review December 15, 2022 16:33

untilTrue("blobset phase is FINAL and stateStatus is null", () -> {
private void untilSuccessfulRedirect(BlobPhase blobPhase) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move helper functions to the top above tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

&& blobStateStatus == null;
});
}

private void setDeviceConfigEndpointBlob(String googleEndpointHostname, String registryId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

this::stateMatchesConfigTimestamp);
untilClearedRedirect();

// Phase three: initiate connection back to initial registry.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This ends up testing connection to the alternate registry, plus connecting back ("restoration"), so two tests.

I assume this is just so the device isn't altered by the test, so can we comment a rationale at either step 3 or 4.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -79,31 +74,76 @@ public void endpoint_config_connection_error() {
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

untilClearedRedirect() here?

@grafnu grafnu merged commit 823cad5 into faucetsdn:master Dec 16, 2022
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.

None yet

2 participants