Commit a33cbe5c authored by Manuel Kieweg's avatar Manuel Kieweg 🤷
Browse files

increase integration test logging

parent 4e3ad77a
......@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment