Skip to content

Instantly share code, notes, and snippets.

@tommysitu
Last active March 21, 2017 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommysitu/f0d1a2f44cac67a99192e2dec1282587 to your computer and use it in GitHub Desktop.
Save tommysitu/f0d1a2f44cac67a99192e2dec1282587 to your computer and use it in GitHub Desktop.
@Test
public void shouldBeAbleToCallHttpsServerUsingSelfSignedCertificate() throws Exception {
// Given
K8sService expected = new K8sService(new Metadata("hoverfly", "some-uuid", "default"), new Spec());
hoverflyRule.simulate(dsl(
service("https://kubernetes")
.get("/api/v1/namespaces/default/services/hoverfly")
.willReturn(success(HttpBodyConverter.json(expected)))
));
// When
K8sService actual = k8sGateway.getService("hoverfly");
// Then
assertThat(actual).isEqualTo(expected);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment