зеркало из https://github.com/Azure/ARO-RP.git
Change env var to skip pki unit tests (#3605)
This commit is contained in:
Родитель
cc5d9b2265
Коммит
e34a95b852
|
@ -54,7 +54,7 @@ RUN go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=${A
|
|||
RUN go test ./test/e2e/... -tags e2e,codec.safe -c -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=${ARO_VERSION}" -o e2e.test
|
||||
|
||||
# Additional tests
|
||||
RUN ARO_RUN_PKI_TESTS=nope go run gotest.tools/gotestsum@v1.11.0 --format pkgname --junitfile report.xml -- -coverprofile=cover.out ./...
|
||||
RUN ARO_SKIP_PKI_TESTS=true go run gotest.tools/gotestsum@v1.11.0 --format pkgname --junitfile report.xml -- -coverprofile=cover.out ./...
|
||||
RUN hack/fips/validate-fips.sh ./aro
|
||||
|
||||
###############################################################################
|
||||
|
|
|
@ -3,4 +3,6 @@ export ARO_IMAGE=arointsvc.azurecr.io/aro:latest
|
|||
export NO_CACHE=false
|
||||
export AZURE_EXTENSION_DEV_SOURCES="$(pwd)/python"
|
||||
|
||||
export ARO_SKIP_PKI_TESTS=true
|
||||
|
||||
. secrets/env
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
func TestGetTlsConfig(t *testing.T) {
|
||||
if os.Getenv("ARO_RUN_PKI_TESTS") != "" {
|
||||
if os.Getenv("ARO_SKIP_PKI_TESTS") != "" {
|
||||
t.Skip("")
|
||||
}
|
||||
kpiUrl := "https://issuer.pki.azure.com/dsms/issuercertificates?getissuersv3&caName=%s"
|
||||
|
|
Загрузка…
Ссылка в новой задаче