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

increase integration test logging

parent 4e3ad77a
Branches
Tags
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 { ...@@ -311,7 +311,7 @@ func createDeployment(environment, hash string) *appv1.Deployment {
Port: intstr.IntOrString{IntVal: 8080}, Port: intstr.IntOrString{IntVal: 8080},
}, },
}, },
InitialDelaySeconds: 20, InitialDelaySeconds: 5,
PeriodSeconds: 2, PeriodSeconds: 2,
}, },
ReadinessProbe: &corev1.Probe{ ReadinessProbe: &corev1.Probe{
...@@ -321,7 +321,7 @@ func createDeployment(environment, hash string) *appv1.Deployment { ...@@ -321,7 +321,7 @@ func createDeployment(environment, hash string) *appv1.Deployment {
Port: intstr.IntOrString{IntVal: 8080}, Port: intstr.IntOrString{IntVal: 8080},
}, },
}, },
InitialDelaySeconds: 120, InitialDelaySeconds: 10,
PeriodSeconds: 2, PeriodSeconds: 2,
}, },
ImagePullPolicy: "Always", ImagePullPolicy: "Always",
......
...@@ -68,4 +68,7 @@ tf:destroy: ...@@ -68,4 +68,7 @@ tf:destroy:
stage: .post stage: .post
script: script:
- gitlab-terraform destroy - gitlab-terraform destroy
needs:
- job: apply
optional: true
<<: *tf <<: *tf
\ No newline at end of file
...@@ -12,7 +12,7 @@ integration-test: ...@@ -12,7 +12,7 @@ integration-test:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
allow_failure: true allow_failure: true
script: script:
- sleep 1m - sleep 2m
- go test -race ./test/integration -v -coverprofile=coverage.out - go test -race ./test/integration -v -coverprofile=coverage.out
.test: &test .test: &test
......
...@@ -37,18 +37,22 @@ func testSetupIntegration() { ...@@ -37,18 +37,22 @@ func testSetupIntegration() {
a := os.Getenv("GOSDN_TEST_ENDPOINT") a := os.Getenv("GOSDN_TEST_ENDPOINT")
if a != "" { if a != "" {
testAddress = a testAddress = a
log.Infof("GOSDN_TEST_ENDPOINT set to %v", testAddress)
} }
api := os.Getenv("GOSDN_TEST_API_ENDPOINT") api := os.Getenv("GOSDN_TEST_API_ENDPOINT")
if api != "" { if api != "" {
testAPIEndpoint = api testAPIEndpoint = api
log.Infof("GOSDN_TEST_API_ENDPOINT set to %v", testAddress)
} }
u := os.Getenv("GOSDN_TEST_USER") u := os.Getenv("GOSDN_TEST_USER")
if u != "" { if u != "" {
testUsername = u testUsername = u
log.Infof("GOSDN_TEST_USER set to %v", testAddress)
} }
p := os.Getenv("GOSDN_TEST_PASSWORD") p := os.Getenv("GOSDN_TEST_PASSWORD")
if p != "" { if p != "" {
testPassword = p testPassword = p
log.Infof("GOSDN_TEST_PASSWORD set to %v", testAddress)
} }
gnmiMessages = map[string]pb.Message{ gnmiMessages = map[string]pb.Message{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment