Skip to content

Commit 3b1eee3

Browse files
committed
Disable defunct tests for to-be-deleted components
1 parent a0069e0 commit 3b1eee3

File tree

4 files changed

+26
-93
lines changed

4 files changed

+26
-93
lines changed

cmd/contact-auditor/main_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"time"
1010

1111
"github.com/jmhodges/clock"
12+
1213
corepb "github.com/letsencrypt/boulder/core/proto"
1314
"github.com/letsencrypt/boulder/db"
1415
blog "github.com/letsencrypt/boulder/log"
@@ -33,6 +34,11 @@ const (
3334
)
3435

3536
func TestContactAuditor(t *testing.T) {
37+
// Leave this technically in place until contact-auditor is fully deleted, but
38+
// this test cannot function now that the SA never stores nor retrieves
39+
// contacts.
40+
t.Skip()
41+
3642
testCtx := setup(t)
3743
defer testCtx.cleanUp()
3844

cmd/expiration-mailer/main_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,11 @@ func TestProcessCertsConnectError(t *testing.T) {
417417
}
418418

419419
func TestFindExpiringCertificates(t *testing.T) {
420+
// Leave this technically in place until expiration-mailer is fully deleted,
421+
// but this test cannot function now that the SA never stores nor retrieves
422+
// contacts.
423+
t.Skip()
424+
420425
testCtx := setup(t, []time.Duration{time.Hour * 24, time.Hour * 24 * 4, time.Hour * 24 * 7})
421426

422427
addExpiringCerts(t, testCtx)
@@ -620,6 +625,11 @@ func countGroupsAtCapacity(group string, counter *prometheus.GaugeVec) int {
620625
}
621626

622627
func TestFindCertsAtCapacity(t *testing.T) {
628+
// Leave this technically in place until expiration-mailer is fully deleted,
629+
// but this test cannot function now that the SA never stores nor retrieves
630+
// contacts.
631+
t.Skip()
632+
623633
testCtx := setup(t, []time.Duration{time.Hour * 24})
624634

625635
addExpiringCerts(t, testCtx)
@@ -776,6 +786,11 @@ func TestCertIsRenewed(t *testing.T) {
776786
}
777787

778788
func TestLifetimeOfACert(t *testing.T) {
789+
// Leave this technically in place until expiration-mailer is fully deleted,
790+
// but this test cannot function now that the SA never stores nor retrieves
791+
// contacts.
792+
t.Skip()
793+
779794
testCtx := setup(t, []time.Duration{time.Hour * 24, time.Hour * 24 * 4, time.Hour * 24 * 7})
780795
defer testCtx.cleanUp()
781796

@@ -882,6 +897,11 @@ func TestDontFindRevokedCert(t *testing.T) {
882897
}
883898

884899
func TestDedupOnRegistration(t *testing.T) {
900+
// Leave this technically in place until expiration-mailer is fully deleted,
901+
// but this test cannot function now that the SA never stores nor retrieves
902+
// contacts.
903+
t.Skip()
904+
885905
expiresIn := 96 * time.Hour
886906
testCtx := setup(t, []time.Duration{expiresIn})
887907

test/integration/admin_test.go

Lines changed: 0 additions & 66 deletions
This file was deleted.

test/v2_integration.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,33 +1146,6 @@ def test_ocsp_exp_unauth():
11461146
else:
11471147
raise(Exception("timed out waiting for unauthorized OCSP response for expired certificate. Last error: {}".format(last_error)))
11481148

1149-
def test_expiration_mailer():
1150-
# This test relies on contact addresses being persisted, which we no longer
1151-
# do in config-next.
1152-
if 'config-next' in os.environ['BOULDER_CONFIG_DIR']:
1153-
return
1154-
1155-
email_addr = "integration.%[email protected]" % random.randrange(2**16)
1156-
order = chisel2.auth_and_issue([random_domain()], email=email_addr)
1157-
cert = parse_cert(order)
1158-
# Check that the expiration mailer sends a reminder
1159-
expiry = cert.not_valid_after_utc
1160-
no_reminder = expiry + datetime.timedelta(days=-31)
1161-
first_reminder = expiry + datetime.timedelta(days=-13)
1162-
last_reminder = expiry + datetime.timedelta(days=-2)
1163-
1164-
requests.post("http://localhost:9381/clear", data='')
1165-
for time in (no_reminder, first_reminder, last_reminder):
1166-
print(get_future_output(
1167-
["./bin/boulder", "expiration-mailer",
1168-
"--config", "%s/expiration-mailer.json" % config_dir,
1169-
"--debug-addr", ":8008"],
1170-
time))
1171-
resp = requests.get("http://localhost:9381/count?to=%s" % email_addr)
1172-
mailcount = int(resp.text)
1173-
if mailcount != 2:
1174-
raise(Exception("\nExpiry mailer failed: expected 2 emails, got %d" % mailcount))
1175-
11761149
def test_caa_good():
11771150
domain = random_domain()
11781151
challSrv.add_caa_issue(domain, "happy-hacker-ca.invalid")

0 commit comments

Comments
 (0)