Compare commits

...

1 Commits

Author SHA1 Message Date
Salim b1c03f6fd7 feature: Proxy tests on Eve
ZENKO-565 Runs ft_awssdk_external_backends tests behind squid proxy
2018-06-20 15:41:01 -07:00
3 changed files with 51 additions and 2 deletions

View File

@ -33,6 +33,10 @@ models:
- env: &multiple-backend-vars - env: &multiple-backend-vars
S3BACKEND: "mem" S3BACKEND: "mem"
S3DATA: "multiple" S3DATA: "multiple"
- env: &mem-mpu-mutiple
S3BACKEND: "mem"
MPU_TESTING: "yes"
S3DATA: "multiple"
- Git: &clone - Git: &clone
name: Pull repo name: Pull repo
repourl: '%(prop:git_reference)s' repourl: '%(prop:git_reference)s'
@ -61,6 +65,7 @@ stages:
name: Launch all workers name: Launch all workers
stage_names: stage_names:
- linting-coverage - linting-coverage
- external-backend-proxy
- multiple-backend-test - multiple-backend-test
- mongo-ft-tests - mongo-ft-tests
waitForFinish: True waitForFinish: True
@ -94,6 +99,36 @@ stages:
CIRCLE_ARTIFACTS: /tmp CIRCLE_ARTIFACTS: /tmp
CI_REPORTS: /tmp CI_REPORTS: /tmp
external-backend-proxy:
worker:
type: kube_pod
path: eve/workers/pod.yaml
images:
aggressor: eve/workers/build
s3: "."
vars:
aggressorMemLimit: "1Gi"
s3MemLimit: "2Gi"
env:
<<: *mem-mpu-mutiple
<<: *global-env
CI_PROXY: "true"
steps:
- Git: *clone
- ShellCommandWithSecrets: *credentials
- ShellCommand: *npm-install
- ShellCommandWithSecrets:
command: |
bash -c "
source /root/.aws/exports &> /dev/null
set -ex
bash wait_for_local_port.bash 8000 40
npm run ft_awssdk_external_backends"
env:
<<: *global-env
<<: *mem-mpu-mutiple
multiple-backend-test: multiple-backend-test:
worker: worker:
type: kube_pod type: kube_pod

View File

@ -6,6 +6,20 @@ mkdir -p ~/.aws
cat >>/root/.aws/exports <<EOF cat >>/root/.aws/exports <<EOF
export AWS_ACCESS_KEY_ID= export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY= export AWS_SECRET_ACCESS_KEY=
export b2backend_B2_ACCOUNT_ID="$b2backend_B2_ACCOUNT_ID"
export b2backend_B2_STORAGE_ACCESS_KEY="$b2backend_B2_STORAGE_ACCESS_KEY"
export b2backend_B2_STORAGE_ENDPOINT="$b2backend_B2_STORAGE_ENDPOINT"
export gcpbackend2_GCP_SERVICE_EMAIL="$gcpbackend2_GCP_SERVICE_EMAIL"
export gcpbackend2_GCP_SERVICE_KEY="$gcpbackend2_GCP_SERVICE_KEY"
export gcpbackend2_GCP_SERVICE_KEYFILE="$gcpbackend2_GCP_SERVICE_KEYFILE"
export gcpbackend_GCP_SERVICE_EMAIL="$gcpbackend_GCP_SERVICE_EMAIL"
export gcpbackend_GCP_SERVICE_KEY="$gcpbackend_GCP_SERVICE_KEY"
export gcpbackendmismatch_GCP_SERVICE_EMAIL="$gcpbackendmismatch_GCP_SERVICE_EMAIL"
export gcpbackendmismatch_GCP_SERVICE_KEY="$gcpbackendmismatch_GCP_SERVICE_KEY"
export gcpbackend_GCP_SERVICE_KEYFILE="$gcpbackend_GCP_SERVICE_KEYFILE"
export gcpbackendmismatch_GCP_SERVICE_KEYFILE="$gcpbackendmismatch_GCP_SERVICE_KEYFILE"
export gcpbackendnoproxy_GCP_SERVICE_KEYFILE="$gcpbackendnoproxy_GCP_SERVICE_KEYFILE"
export gcpbackendproxy_GCP_SERVICE_KEYFILE="$gcpbackendproxy_GCP_SERVICE_KEYFILE"
export GOOGLE_SERVICE_EMAIL="$GCP_BACKEND_SERVICE_EMAIL" export GOOGLE_SERVICE_EMAIL="$GCP_BACKEND_SERVICE_EMAIL"
export GOOGLE_SERVICE_KEY="$GCP_BACKEND_SERVICE_KEY" export GOOGLE_SERVICE_KEY="$GCP_BACKEND_SERVICE_KEY"
export azurebackend2_AZURE_STORAGE_ACCESS_KEY="$AZURE_BACKEND_ACCESS_KEY_2" export azurebackend2_AZURE_STORAGE_ACCESS_KEY="$AZURE_BACKEND_ACCESS_KEY_2"

View File

@ -53,7 +53,7 @@ spec:
cpu: 200m cpu: 200m
memory: 1Gi memory: 1Gi
limits: limits:
cpu: 500m cpu: "1"
memory: {{ vars.s3MemLimit }} memory: {{ vars.s3MemLimit }}
volumeMounts: volumeMounts:
- name: creds - name: creds
@ -129,7 +129,7 @@ spec:
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 250m cpu: 250m
memory: 128Mi memory: 256Mi
volumeMounts: volumeMounts:
- name: certs - name: certs
readOnly: false readOnly: false