Last active
March 21, 2017 18:32
-
-
Save tommysitu/f0d1a2f44cac67a99192e2dec1282587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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