-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conversation
|
||
untilTrue("blobset phase is FINAL and stateStatus is null", () -> { | ||
private void untilSuccessfulRedirect(BlobPhase blobPhase) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this too
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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() { | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untilClearedRedirect() here?
No description provided.