Skip to content
Snippets Groups Projects
Commit a33cbe5c authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

increase integration test logging

parent 4e3ad77a
No related branches found
No related tags found
1 merge request!128Prepare k8s deployment
Pipeline #67644 passed with warnings
This commit is part of merge request !128. Comments created here will be created in the context of that merge request.
......@@ -311,7 +311,7 @@ func createDeployment(environment, hash string) *appv1.Deployment {
Port: intstr.IntOrString{IntVal: 8080},
},
},
InitialDelaySeconds: 20,
InitialDelaySeconds: 5,
PeriodSeconds: 2,
},
ReadinessProbe: &corev1.Probe{
......@@ -321,7 +321,7 @@ func createDeployment(environment, hash string) *appv1.Deployment {
Port: intstr.IntOrString{IntVal: 8080},
},
},
InitialDelaySeconds: 120,
InitialDelaySeconds: 10,
PeriodSeconds: 2,
},
ImagePullPolicy: "Always",
......
......@@ -68,4 +68,7 @@ tf:destroy:
stage: .post
script:
- gitlab-terraform destroy
needs:
- job: apply
optional: true
<<: *tf
\ No newline at end of file
......@@ -12,7 +12,7 @@ integration-test:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
allow_failure: true
script:
- sleep 1m
- sleep 2m
- go test -race ./test/integration -v -coverprofile=coverage.out
.test: &test
......
......@@ -37,18 +37,22 @@ func testSetupIntegration() {
a := os.Getenv("GOSDN_TEST_ENDPOINT")
if a != "" {
testAddress = a
log.Infof("GOSDN_TEST_ENDPOINT set to %v", testAddress)
}
api := os.Getenv("GOSDN_TEST_API_ENDPOINT")
if api != "" {
testAPIEndpoint = api
log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAddress)
}
u := os.Getenv("GOSDN_TEST_USER")
if u != "" {
testUsername = u
log.Infof("GOSDN_TEST_USER set to %v", testAddress)
}
p := os.Getenv("GOSDN_TEST_PASSWORD")
if p != "" {
testPassword = p
log.Infof("GOSDN_TEST_PASSWORD set to %v", testAddress)
}
gnmiMessages = map[string]pb.Message{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment