Skip to content

Commit

Permalink
Scaffolding for integration tests (#1113)
Browse files Browse the repository at this point in the history
* Scaffolding for integration tests

Signed-off-by: Khor Shu Heng <khor.heng@gojek.com>

* Rename test stage

Signed-off-by: Khor Shu Heng <khor.heng@gojek.com>

* Remove setup for incremental test marker

Signed-off-by: Khor Shu Heng <khor.heng@gojek.com>

Co-authored-by: Khor Shu Heng <khor.heng@gojek.com>
  • Loading branch information
khorshuheng and khorshuheng authored Oct 29, 2020
1 parent 4699d58 commit 24de261
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,30 @@ presubmits:
- image: golang:1.13
command: ["infra/scripts/test-golang-sdk.sh"]

- name: python-sdk-integration-test
decorate: true
always_run: true
spec:
containers:
- image: gcr.io/kf-feast/feast-ci:latest
command: ["infra/scripts/test-integration.sh"]
resources:
requests:
cpu: "1"
memory: "3072Mi"
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/gcloud/service-account.json
volumeMounts:
- mountPath: /etc/gcloud/service-account.json
name: service-account
readOnly: true
subPath: service-account.json
volumes:
- name: service-account
secret:
secretName: feast-service-account

- name: test-end-to-end
decorate: true
always_run: true
Expand Down
7 changes: 7 additions & 0 deletions infra/scripts/test-integration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

python -m pip install --upgrade pip setuptools wheel
make install-python
python -m pip install -qr tests/requirements.txt

pytest tests/integration/
Empty file added tests/integration/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def pytest_addoption(parser):
pass

0 comments on commit 24de261

Please sign in to comment.