Skip to content

Commit

Permalink
Merge pull request #4187 from gastaldi/kube_mock
Browse files Browse the repository at this point in the history
Inject a single KubernetesMockServer in the test class hierarchy
  • Loading branch information
geoand authored Sep 25, 2019
2 parents a1fbb61 + 8ab5112 commit d51ec2b
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void inject(Object testInstance) {
f.setAccessible(true);
try {
f.set(testInstance, mockServer);
return;
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand All @@ -56,10 +57,6 @@ public void inject(Object testInstance) {
}

private boolean useHttps() {
final String property = System.getProperty("quarkus.kubernetes-client.test.https");
if (property == null || property.isEmpty()) {
return false;
}
return property.toLowerCase().trim().equals("true");
return Boolean.getBoolean("quarkus.kubernetes-client.test.https");
}
}
}

0 comments on commit d51ec2b

Please sign in to comment.