Skip to content
Snippets Groups Projects
Commit 01b37951 authored by Andre Sterba's avatar Andre Sterba
Browse files

Fix controller integration tests

See merge request !291
parent aa3d2c1c
No related branches found
No related tags found
2 merge requests!291Fix controller integration tests,!264WIP: Develop
Pipeline #99602 failed
...@@ -41,10 +41,10 @@ controller-test: install-tools ...@@ -41,10 +41,10 @@ controller-test: install-tools
ENVIRONMENT=testing ./$(TOOLS_DIR)/gotestsum --junitfile report.xml --format testname -- -race -v -run TestRun ENVIRONMENT=testing ./$(TOOLS_DIR)/gotestsum --junitfile report.xml --format testname -- -race -v -run TestRun
lint: install-tools lint: install-tools
./$(TOOLS_DIR)/golangci-lint run --config .gitlab/ci/.golangci-config/.golangci.yml ./$(TOOLS_DIR)/golangci-lint run --config ../.golangci.yml | jq
lint-fix: install-tools lint-fix: install-tools
./$(TOOLS_DIR)/golangci-lint run --config .gitlab/ci/.golangci-config/.golangci.yml --fix ./$(TOOLS_DIR)/golangci-lint run --config ../.golangci.yml --fix
ci-lint: ci-lint:
golangci-lint run --config ../.gitlab/ci/.golangci-config/.golangci.yml --out-format code-climate | jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"' golangci-lint run --config ../.gitlab/ci/.golangci-config/.golangci.yml --out-format code-climate | jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"'
...@@ -56,7 +56,7 @@ ci-controller-test: ci-install-tools ...@@ -56,7 +56,7 @@ ci-controller-test: ci-install-tools
ENVIRONMENT=testing gotestsum --junitfile report.xml --format testname -- -race -v -run TestRun ENVIRONMENT=testing gotestsum --junitfile report.xml --format testname -- -race -v -run TestRun
integration-test-nucleus: integration-test-nucleus:
ENVIRONMENT=testing &&\ ENVIRONMENT=testing &&\
cd ./test/integration &&\ cd ./test/integration &&\
go test -race -v -run TestGnmi_SetIntegration &&\ go test -race -v -run TestGnmi_SetIntegration &&\
go test -race -v -run TestGnmi_GetIntegration &&\ go test -race -v -run TestGnmi_GetIntegration &&\
...@@ -64,6 +64,6 @@ integration-test-nucleus: ...@@ -64,6 +64,6 @@ integration-test-nucleus:
go test -race -v -run TestGnmi_CapabilitiesIntegration go test -race -v -run TestGnmi_CapabilitiesIntegration
integration-test-api: integration-test-api:
ENVIRONMENT=testing &&\ ENVIRONMENT=testing &&\
cd ./api &&\ cd ./api &&\
go test -race -v -run TestApiIntegration go test -race -v -run TestApiIntegration
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment