Skip to content

Commit

Permalink
Don't run integration tests within make test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreev-io committed Jan 23, 2025
1 parent 8df86f9 commit b2edc2a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ build: tidy lint vendor ## Build binaries (Linux only).
GOOS=linux go build -o bin/ ./...

test: tidy lint vendor ## Run unit tests (Linux only).
CGO_ENABLED=1 GOOS=linux go test -v -race -coverprofile cover.out ./...
CGO_ENABLED=1 GOOS=linux go test -v -race -coverprofile cover.out $(go list ./... | grep -v integration) ./...

docker-build: ## Build Docker image.
docker build \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
- [x] Move clickhouse username/password into a secret (same in internal flowd)
- [x] Refactor Makefile & Dockerfile
- [ ] Actions and build plaques
- [ ] README with a ClickHouse Cloud tutorial
- [ ] README with a ClickHouse Cloud tutorial, LICENSE
- [ ] Clean up commit history
- [ ] Configure repository settings

# kubenetmon

Expand Down
2 changes: 1 addition & 1 deletion pkg/labeler/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func TestGetCloudRegions(t *testing.T) {
assert.NotNil(t, regions)
assert.Contains(t, regions, "westus3")
assert.Contains(t, regions, "eastus2")
assert.Contains(t, regions, "germanywestcentral")
assert.Contains(t, regions, "germanywc")
assert.Contains(t, regions, "eastus")
}

Expand Down
2 changes: 1 addition & 1 deletion test/test-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ helm template kubenetmon-agent ./deploy/helm/kubenetmon-agent \
--set image.tag=1.0.0 \
--namespace=kubenetmon-agent | kubectl apply -n kubenetmon-agent -f -
echo "Waiting for kubenetmon-agent pods to be ready..."
kubectl wait --namespace kubenetmon-agent --for=condition=ready pod -l app.kubernetes.io/name=kubenetmon-agent --timeout=120s
kubectl wait --namespace kubenetmon-agent --for=condition=ready pod -l app.kubernetes.io/name=kubenetmon-agent --timeout=180s

echo "Kind cluster setup complete. Run 'kubectl get pods --all-namespaces' to verify."

Expand Down

0 comments on commit b2edc2a

Please sign in to comment.