Skip to content

Commit

Permalink
Merge pull request #219 from NVIDIA/tls_plus_integration_tests
Browse files Browse the repository at this point in the history
Integration tests for the TLS and basic authentication
  • Loading branch information
nvvfedorov authored Dec 18, 2023
2 parents 512b16e + c3919a5 commit 00e1d73
Show file tree
Hide file tree
Showing 17 changed files with 794 additions and 1,687 deletions.
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run Debug",
"type": "go",
"request": "launch",
"mode": "debug",
"cwd": "${workspaceRoot}",
"program": "cmd/dcgm-exporter/main.go",
"args": [
"-f",
"./etc/default-counters.csv",
"--web-config-file=./tests/integration/testdata/web-config.yml"
]
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"go.testTimeout": "60s",
"go.testFlags": ["-v","-count=1"]
}
18 changes: 0 additions & 18 deletions Dockerfile

This file was deleted.

16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,19 @@ ubi8:
--build-arg "VERSION=$(FULL_VERSION)" \
--tag "$(REGISTRY)/dcgm-exporter:$(FULL_VERSION)-ubi8" \
--file docker/Dockerfile.ubi8 .

.PHONY: integration
test-integration:
go test -race -count=1 -timeout 5m -v $(TEST_ARGS) ./tests/integration/

.PHONY: lint
lint:
golangci-lint run ./...

.PHONY: validate-modules
validate-modules:
@echo "- Verifying that the dependencies have expected content..."
go mod verify
@echo "- Checking for any unused/missing packages in go.mod..."
go mod tidy
@git diff --exit-code -- go.sum go.mod
Loading

0 comments on commit 00e1d73

Please sign in to comment.