Skip to content

Commit

Permalink
Merge pull request #166 from estroz/integration-using-omps
Browse files Browse the repository at this point in the history
add OMPS integration test files for prow CI
  • Loading branch information
kevinrizza authored Oct 3, 2019
2 parents 81cef80 + ca8a041 commit 2ccc123
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,14 @@ and run flake8 for code linting.

Before running integration tests, you must have write access credentials to a [quay.io](https://quay.io) namespace. See the [authentication](#authentication) section for more information.

First, build the integration docker image:
First, build the integration docker images:

```sh
$ docker build -f integration.Dockerfile -t operator-courier-integration .
$ docker build -f tests/integration/dockerfiles/integration-base.Dockerfile -t operator-courier-integration-base:latest .
$ docker build -f tests/integration/dockerfiles/integration.Dockerfile -t operator-courier-integration:latest .
```

Then run the tests inside a container:
Then run the tests inside a container using your access credentials:

```sh
$ docker run \
Expand Down
6 changes: 0 additions & 6 deletions integration.Dockerfile

This file was deleted.

8 changes: 8 additions & 0 deletions tests/integration/dockerfiles/integration-base.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM fedora:29

RUN dnf install -y --setopt=install_weak_deps=False --best \
git \
python3-tox \
python3-coveralls \
&& dnf -y clean all \
&& rm -rf /tmp/*
5 changes: 5 additions & 0 deletions tests/integration/dockerfiles/integration.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM operator-courier-integration-base:latest

WORKDIR /operator-courier
COPY . .
RUN pip3 install .

0 comments on commit 2ccc123

Please sign in to comment.