use of io.kubernetes.client.models.V1beta1HTTPIngressRuleValue in project weblogic-kubernetes-operator by oracle.
the class IngressHelperTest method getPathArray.
private List<V1beta1HTTPIngressPath> getPathArray(V1beta1Ingress v1beta1Ingress) {
Assert.assertNotNull("Ingress Object should not be null", v1beta1Ingress);
V1beta1IngressSpec v1beta1IngressSpec = v1beta1Ingress.getSpec();
Assert.assertNotNull("Spec Object should not be null", v1beta1IngressSpec);
List<V1beta1IngressRule> v1beta1IngressRules = v1beta1IngressSpec.getRules();
Assert.assertNotNull("Rules List should not be null", v1beta1IngressRules);
Assert.assertTrue("Rules List should have one instance of IngressRule", v1beta1IngressRules.size() == 1);
V1beta1IngressRule v1beta1IngressRule = v1beta1IngressRules.get(0);
Assert.assertNotNull("IngressRule Object should not be null", v1beta1IngressRule);
V1beta1HTTPIngressRuleValue v1beta1HTTPIngressRuleValue = v1beta1IngressRule.getHttp();
Assert.assertNotNull("IngressRuleValue Object should not be null", v1beta1HTTPIngressRuleValue);
List<V1beta1HTTPIngressPath> v1beta1HTTPIngressPaths = v1beta1HTTPIngressRuleValue.getPaths();
Assert.assertNotNull("IngressPath list should not be null", v1beta1HTTPIngressPaths);
return v1beta1HTTPIngressPaths;
}
Aggregations