From 933b34b34a2fe948a0c40b5452249fff546cc970 Mon Sep 17 00:00:00 2001 From: Jesse Shieh Date: Sun, 30 Sep 2018 23:08:34 +0800 Subject: [PATCH] Fix user registration for e2e test Re-enables the e2e test now that Let's Encrypt Staging is working. Changes user email domain now that Let's Encrypt no longer allows users with the domain example.com. Signed-off-by: Jesse --- pkg/acme/acme_e2e_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/acme/acme_e2e_test.go b/pkg/acme/acme_e2e_test.go index cf4b3afa..e2c21f2b 100644 --- a/pkg/acme/acme_e2e_test.go +++ b/pkg/acme/acme_e2e_test.go @@ -16,7 +16,6 @@ import ( ) func TestAcme_E2E(t *testing.T) { - t.Skip("Temporarily skipping due to Let's Encrypt staging outage") logrus.SetLevel(logrus.DebugLevel) log := logrus.WithField("context", "test-mock") @@ -29,7 +28,7 @@ func TestAcme_E2E(t *testing.T) { mockKL.EXPECT().LegoHTTPPort().AnyTimes().Return(intstr.FromInt(8181)) mockKL.EXPECT().AcmeUser().MinTimes(1).Return(nil, errors.New("I am only mocked")) mockKL.EXPECT().LegoURL().MinTimes(1).Return("https://acme-staging.api.letsencrypt.org/directory") - mockKL.EXPECT().LegoEmail().MinTimes(1).Return("kube-lego-e2e@example.com") + mockKL.EXPECT().LegoEmail().MinTimes(1).Return("kube-lego-e2e@jetstack.io") mockKL.EXPECT().SaveAcmeUser(gomock.Any()).MinTimes(1).Return(nil) mockKL.EXPECT().LegoRsaKeySize().AnyTimes().Return(2048) mockKL.EXPECT().ExponentialBackoffMaxElapsedTime().MinTimes(1).Return(time.Minute * 5)