Skip to content

Commit

Permalink
Merge pull request #46 from sjyothi54/revert-45-integration_testing
Browse files Browse the repository at this point in the history
Revert "Integration testing"
  • Loading branch information
rahulreddy15 authored Jan 16, 2025
2 parents 4714ac5 + 11cc6b8 commit 46847de
Show file tree
Hide file tree
Showing 20 changed files with 71 additions and 1,548 deletions.
14 changes: 3 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,9 @@ test:

integration-test:
@echo "=== $(INTEGRATION) === [ test ]: running integration tests..."
@docker compose -f tests/docker-compose.yml up -d
@sleep 10
@go test -v -tags=integration -count 1 ./tests/postgresql_test.go -timeout 300s || (ret=$$?; docker compose -f tests/docker-compose.yml down -v && exit $$ret)
@docker compose -f tests/docker-compose.yml down -v
@echo "=== $(INTEGRATION) === [ test ]: running integration tests for query performance monitoring..."
@echo "Starting containers for performance tests..."
@docker compose -f tests/docker-compose-performance.yml up -d
@sleep 30
@go test -v -tags=query_performance ./tests/postgresqlperf_test.go -timeout 600s || (ret=$$?; docker compose -f tests/docker-compose-performance.yml down -v && exit $$ret)
@echo "Stopping performance test containers..."
@docker compose -f tests/docker-compose-performance.yml down -v
@docker compose -f tests/docker-compose.yml pull
@go test -v -tags=integration -count 1 ./tests/. || (ret=$$?; docker compose -f tests/docker-compose.yml down && exit $$ret)
@docker compose -f tests/docker-compose.yml down

install: compile
@echo "=== $(INTEGRATION) === [ install ]: installing bin/$(BINARY_NAME)..."
Expand Down
70 changes: 0 additions & 70 deletions tests/docker-compose-performance.yml

This file was deleted.

15 changes: 9 additions & 6 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ services:
postgres-9-6:
image: postgres:9.6
restart: always
container_name: postgres-9-6
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
Expand All @@ -11,14 +10,18 @@ services:
postgres-latest-supported:
image: postgres:17.0
restart: always
container_name: postgres-latest-supported
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: demo

nri-postgresql:
container_name: nri-postgresql
build:
context: ../
dockerfile: tests/perf-testing/integration/Dockerfile
image: golang:1.23.4-bookworm
container_name: nri_postgresql
working_dir: /code
depends_on:
- postgres-9-6
- postgres-latest-supported
volumes:
- ../:/code
entrypoint: go run /code/src/main.go
9 changes: 0 additions & 9 deletions tests/perf-testing/integration/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions tests/perf-testing/latest_supported/01-init-extensions.sql

This file was deleted.

1 change: 0 additions & 1 deletion tests/perf-testing/latest_supported/02-create-database.sql

This file was deleted.

11 changes: 0 additions & 11 deletions tests/perf-testing/latest_supported/03-import-data.sql

This file was deleted.

40 changes: 0 additions & 40 deletions tests/perf-testing/latest_supported/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions tests/perf-testing/oldest_supported/01-init-extensions.sql

This file was deleted.

1 change: 0 additions & 1 deletion tests/perf-testing/oldest_supported/02-create-database.sql

This file was deleted.

11 changes: 0 additions & 11 deletions tests/perf-testing/oldest_supported/03-import-data.sql

This file was deleted.

42 changes: 0 additions & 42 deletions tests/perf-testing/oldest_supported/Dockerfile

This file was deleted.

Loading

0 comments on commit 46847de

Please sign in to comment.