Search in sources :

Example 1 with V1beta1IngressSpec

use of io.kubernetes.client.models.V1beta1IngressSpec 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;
}
Also used : V1beta1HTTPIngressRuleValue(io.kubernetes.client.models.V1beta1HTTPIngressRuleValue) V1beta1IngressRule(io.kubernetes.client.models.V1beta1IngressRule) V1beta1HTTPIngressPath(io.kubernetes.client.models.V1beta1HTTPIngressPath) V1beta1IngressSpec(io.kubernetes.client.models.V1beta1IngressSpec)

Aggregations

V1beta1HTTPIngressPath (io.kubernetes.client.models.V1beta1HTTPIngressPath)1 V1beta1HTTPIngressRuleValue (io.kubernetes.client.models.V1beta1HTTPIngressRuleValue)1 V1beta1IngressRule (io.kubernetes.client.models.V1beta1IngressRule)1 V1beta1IngressSpec (io.kubernetes.client.models.V1beta1IngressSpec)1