Set namespace on Challenge resources created during tests

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-12-17 17:37:26 +00:00
parent b50f0a983a
commit 4aed3a7bbc

View File

@ -222,6 +222,10 @@ func TestCleanupIngresses(t *testing.T) {
},
},
Challenge: &cmacme.Challenge{
ObjectMeta: metav1.ObjectMeta{
Name: "testchal",
Namespace: defaultTestNamespace,
},
Spec: cmacme.ChallengeSpec{
DNSName: "example.com",
Token: "abcd",
@ -305,6 +309,10 @@ func TestCleanupIngresses(t *testing.T) {
},
},
Challenge: &cmacme.Challenge{
ObjectMeta: metav1.ObjectMeta{
Name: "testchal",
Namespace: defaultTestNamespace,
},
Spec: cmacme.ChallengeSpec{
DNSName: "example.com",
Token: "abcd",