Skip to content

Commit

Permalink
Added labels to main tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aamgayle committed Oct 18, 2023
1 parent 37b215d commit 04e4ff1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/keyvault/ingress_secret_provider_class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func TestIngressSecretProviderClassReconcilerInvalidURL(t *testing.T) {
ing.Annotations = map[string]string{
"kubernetes.azure.com/tls-cert-keyvault-uri": "inv@lid URL",
}
ing.Labels = manifests.GetTopLevelLabels()

c := fake.NewClientBuilder().WithObjects(ing).Build()
require.NoError(t, secv1.AddToScheme(c.Scheme()))
Expand Down Expand Up @@ -195,6 +196,7 @@ func TestIngressSecretProviderClassReconcilerBuildSPCInvalidURLs(t *testing.T) {

ing := &netv1.Ingress{}
ing.Spec.IngressClassName = &ingressClass
ing.Labels = manifests.GetTopLevelLabels()

t.Run("missing ingress class", func(t *testing.T) {
ing := ing.DeepCopy()
Expand Down Expand Up @@ -294,6 +296,7 @@ func TestIngressSecretProviderClassReconcilerBuildSPCCloud(t *testing.T) {
Annotations: map[string]string{
"kubernetes.azure.com/tls-cert-keyvault-uri": "https://test.vault.azure.net/secrets/test-secret",
},
Labels: manifests.GetTopLevelLabels(),
},
Spec: netv1.IngressSpec{
IngressClassName: &ingressClass,
Expand Down

0 comments on commit 04e4ff1

Please sign in to comment.