Skip to content

Commit

Permalink
Bump mongodb exporter version / Add v7 tests (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchezgavier authored Dec 29, 2023
1 parent 7264208 commit 4acf172
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 22,500 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ package-%: clean build-%
@echo "[ package-$* ]: Packaging exporter..."
bash ./scripts/package.sh $(PWD) $* $(GOOS)

ACCOUNT_REGION := Staging
test-e2e-%:
@echo "[ test-e2e-%$* ]: Running e2e test..."
@GOOS=linux make build-$*
$(NEWRELIC_E2E) --commit_sha=test-string --retry_attempts=15 --retry_seconds=60 \
--account_id=$(ACCOUNT_ID) --api_key=$(API_KEY) --license_key=$(LICENSE_KEY) \
--spec_path=$(PWD)/exporters/$*/e2e/e2e_spec.yml --verbose_mode=true
--spec_path=$(PWD)/exporters/$*/e2e/e2e_spec.yml --verbose_mode=true --region=$(ACCOUNT_REGION)

OS := $(shell uname -s)
ifeq ($(OS), Darwin)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ There are Make targets that help you build and run e2e tests locally:

* Compile an integration:
```bash
make fetch-resources-<exporter_name>
make build-<exporter_name>
```

Expand All @@ -64,7 +63,8 @@ make build-<exporter_name>
make test-e2e-<exporter_name> \
ACCOUNT_ID=<NEWRELIC_ACCOUNT_ID> \
API_KEY=<NEWRELIC_API_KEY> \
LICENSE_KEY=<NEWRELIC_LICENSE_KEY>
LICENSE_KEY=<NEWRELIC_LICENSE_KEY> \
ACCOUNT_REGION=<US,EU,Staging>
```

### nri-config-generator
Expand Down
24 changes: 24 additions & 0 deletions exporters/mongodb3/e2e/docker-compose-standalone-v7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3.8'
services:
e2e_standalone:
container_name: "e2e_standalone"
image: mongo:7.0
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass12345
ports:
- "17017:27017"
command: mongod --port 27017 --oplogSize 16

e2e_mongo-sa1-setup:
container_name: "e2e_mongo-sa1-setup"
image: mongo:7.0
depends_on:
- "e2e_standalone"
links:
- e2e_standalone:e2e_standalone
volumes:
- ./scripts:/scripts
environment:
- MONGO1=e2e_standalone
entrypoint: [ "/scripts/setup-standalone.sh" ]
641 changes: 44 additions & 597 deletions exporters/mongodb3/e2e/e2e_spec.yml

Large diffs are not rendered by default.

Loading

0 comments on commit 4acf172

Please sign in to comment.