2 Commits

Author SHA1 Message Date
Greg Cymbalski
28f0dbdab5 WIP: Include a container running VersityGW integration tests to generate synthetic load 2024-08-06 19:55:06 -07:00
Greg Cymbalski
83808da2ea Include versitygw as a submodule for test image building 2024-08-06 18:33:27 -07:00
8 changed files with 48 additions and 1565 deletions

4
.gitmodules vendored Normal file
View File

@@ -0,0 +1,4 @@
[submodule "versitygw"]
path = versitygw
url = git@github.com:versity/versitygw
branch = main

View File

@@ -2,3 +2,4 @@ export AWS_SECRET_ACCESS_KEY=password
export AWS_ACCESS_KEY_ID=user
export AWS_ENDPOINT_URL=http://127.0.0.1:7070
export AWS_REGION=us-east-1
export AWS_PROFILE=versitygw

View File

@@ -60,5 +60,24 @@ services:
command: >
posix /tmp/vgw
versitygw-bats:
image: versity/versitygwtests:latest
container_name: versitygw-bats
build:
context: versitygw
dockerfile: Dockerfile_test_bats
args:
- CONFIG_FILE=tests/.env.default
environment:
- VGW_METRICS_STATSD_SERVERS=telegraf:8125
depends_on:
- telegraf
volumes:
- ./versitygw/tests:/home/tester/tests
- gateway_temp:/tmp/gw
profiles:
- autotest
volumes:
influxdb_data: {}
gateway_temp: {}

View File

@@ -1,25 +0,0 @@
apiVersion: 1
providers:
# <string> an unique provider name. Required
- name: 'influxql'
# <int> Org id. Default to 1
orgId: 1
# <string> name of the dashboard folder.
folder: 'influxql'
# <string> folder UID. will be automatically generated if not specified
folderUid: ''
# <string> provider type. Default to 'file'
type: file
# <bool> disable dashboard deletion
disableDeletion: false
# <int> how often Grafana will scan for changed dashboards
updateIntervalSeconds: 10
# <bool> allow updating provisioned dashboards from the UI
allowUiUpdates: true
options:
# <string, required> path to dashboard files on disk. Required when using the 'file' type
path: /etc/grafana/provisioning/dashboards/influxql
# <bool> use folder names from filesystem to create folders in Grafana
foldersFromFilesStructure: true

File diff suppressed because it is too large Load Diff

View File

@@ -27,6 +27,10 @@
[[inputs.statsd]]
protocol = "udp4"
service_address = ":8125"
delete_gauges = false
delete_counters = false
delete_sets = false
delete_timings = false
percentiles = [90]
metric_separator = "_"
datadog_extensions = false

21
test.sh
View File

@@ -2,5 +2,22 @@
. ./aws_env_setup.sh
aws s3 mb s3://test
aws s3 cp docker-compose.yml s3://test/test.yaml
git submodule init && git submodule update
cat > "versitygw/tests/.secrets" <<-EOF
export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}"
export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}"
export AWS_ENDPOINT_URL="${AWS_ENDPOINT_URL}"
export AWS_PROFILE="${AWS_PROFILE}"
export AWS_REGION="${AWS_REGION}"
EOF
sed -i .orig -e 's|^CERT.*|CERT=/home/tester/cert-docker.pem|' \
-e 's|^KEY.*|KEY=/home/tester/versitygw-docker.pem|' versitygw/tests/.env.default
docker-compose build
docker-compose up -d
docker-compose --profile autotest -d
#aws s3 mb s3://test
#aws s3 cp docker-compose.yml s3://test/test.yaml

1
versitygw Submodule

Submodule versitygw added at adbc8140ed