def test_apply_tls(self, tls, app_spec, spec_tls, tls_annotations): ingress = Ingress() ingress.metadata = ObjectMeta() ingress.spec = IngressSpec() tls.apply(ingress, app_spec, self.HOSTS) assert ingress.metadata.annotations == tls_annotations assert ingress.spec.tls == spec_tls
def test_apply_tls(self, tls, app_spec, spec_tls, issuer_type, tls_annotations): ingress = Ingress() ingress.metadata = ObjectMeta(name=app_spec.name) tls.apply(ingress, app_spec, self.HOSTS, issuer_type) assert ingress.metadata.annotations == tls_annotations assert ingress.spec.tls == spec_tls