Skip to content

Commit 24de261

Browse files
authored
Scaffolding for integration tests (#1113)
* Scaffolding for integration tests Signed-off-by: Khor Shu Heng <[email protected]> * Rename test stage Signed-off-by: Khor Shu Heng <[email protected]> * Remove setup for incremental test marker Signed-off-by: Khor Shu Heng <[email protected]> Co-authored-by: Khor Shu Heng <[email protected]>
1 parent 4699d58 commit 24de261

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.prow/config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,30 @@ presubmits:
141141
- image: golang:1.13
142142
command: ["infra/scripts/test-golang-sdk.sh"]
143143

144+
- name: python-sdk-integration-test
145+
decorate: true
146+
always_run: true
147+
spec:
148+
containers:
149+
- image: gcr.io/kf-feast/feast-ci:latest
150+
command: ["infra/scripts/test-integration.sh"]
151+
resources:
152+
requests:
153+
cpu: "1"
154+
memory: "3072Mi"
155+
env:
156+
- name: GOOGLE_APPLICATION_CREDENTIALS
157+
value: /etc/gcloud/service-account.json
158+
volumeMounts:
159+
- mountPath: /etc/gcloud/service-account.json
160+
name: service-account
161+
readOnly: true
162+
subPath: service-account.json
163+
volumes:
164+
- name: service-account
165+
secret:
166+
secretName: feast-service-account
167+
144168
- name: test-end-to-end
145169
decorate: true
146170
always_run: true

infra/scripts/test-integration.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
python -m pip install --upgrade pip setuptools wheel
4+
make install-python
5+
python -m pip install -qr tests/requirements.txt
6+
7+
pytest tests/integration/

tests/integration/__init__.py

Whitespace-only changes.

tests/integration/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def pytest_addoption(parser):
2+
pass

0 commit comments

Comments
 (0)