Skip to content

Commit 4ded1de

Browse files
Merge pull request #351 from lunarwhite/mig-vault
CM-797: Migrate e2e tests for Vault issuer from private suite
2 parents a9bdcfb + 6ae5732 commit 4ded1de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+18129
-4
lines changed

go.mod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ require (
2121
github.com/spf13/cobra v1.8.1
2222
github.com/spf13/pflag v1.0.5
2323
github.com/stretchr/testify v1.10.0
24+
github.com/tidwall/gjson v1.18.0
2425
golang.org/x/tools v0.36.0
2526
k8s.io/api v0.33.2
2627
k8s.io/apiextensions-apiserver v0.33.2
@@ -125,6 +126,7 @@ require (
125126
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
126127
github.com/google/uuid v1.6.0 // indirect
127128
github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 // indirect
129+
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
128130
github.com/gostaticanalysis/analysisutil v0.7.1 // indirect
129131
github.com/gostaticanalysis/comment v1.4.2 // indirect
130132
github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect
@@ -166,11 +168,13 @@ require (
166168
github.com/mgechev/revive v1.2.4 // indirect
167169
github.com/mitchellh/go-homedir v1.1.0 // indirect
168170
github.com/mitchellh/mapstructure v1.5.0 // indirect
171+
github.com/moby/spdystream v0.5.0 // indirect
169172
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
170173
github.com/modern-go/reflect2 v1.0.2 // indirect
171174
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
172175
github.com/moricho/tparallel v0.2.1 // indirect
173176
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
177+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
174178
github.com/nakabonne/nestif v0.3.1 // indirect
175179
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect
176180
github.com/nishanths/exhaustive v0.8.3 // indirect
@@ -220,6 +224,8 @@ require (
220224
github.com/subosito/gotenv v1.4.1 // indirect
221225
github.com/tdakkota/asciicheck v0.1.1 // indirect
222226
github.com/tetafro/godot v1.4.11 // indirect
227+
github.com/tidwall/match v1.1.1 // indirect
228+
github.com/tidwall/pretty v1.2.0 // indirect
223229
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 // indirect
224230
github.com/timonwong/loggercheck v0.9.3 // indirect
225231
github.com/tomarrell/wrapcheck/v2 v2.7.0 // indirect

go.sum

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQ
7171
github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I=
7272
github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ=
7373
github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw=
74+
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
75+
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
7476
github.com/ashanbrown/forbidigo v1.3.0 h1:VkYIwb/xxdireGAdJNZoo24O4lmnEWkactplBlWTShc=
7577
github.com/ashanbrown/forbidigo v1.3.0/go.mod h1:vVW7PEdqEFqapJe95xHkTfB1+XvZXBFg8t0sG2FIxmI=
7678
github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s=
@@ -494,6 +496,8 @@ github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG
494496
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
495497
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
496498
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
499+
github.com/moby/spdystream v0.5.0 h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU=
500+
github.com/moby/spdystream v0.5.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI=
497501
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
498502
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
499503
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -511,6 +515,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
511515
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
512516
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
513517
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
518+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=
519+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
514520
github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U=
515521
github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE=
516522
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA=
@@ -705,6 +711,12 @@ github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpR
705711
github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY=
706712
github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw=
707713
github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8=
714+
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
715+
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
716+
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
717+
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
718+
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
719+
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
708720
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro=
709721
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk=
710722
github.com/timonwong/loggercheck v0.9.3 h1:ecACo9fNiHxX4/Bc02rW2+kaJIAMAes7qJ7JKxt0EZI=

test/e2e/certificates_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ var _ = Describe("ACME Certificate", Ordered, func() {
7474
})
7575
Expect(err).NotTo(HaveOccurred())
7676

77-
By("setting defaultNetworkPolicy to true")
78-
err = resetCertManagerNetworkPolicyState(ctx, certmanageroperatorclient, loader)
79-
Expect(err).NotTo(HaveOccurred())
80-
8177
DeferCleanup(func() {
8278
By("resetting cert-manager state")
8379
err = resetCertManagerState(ctx, certmanageroperatorclient, loader)

0 commit comments

Comments
 (0)