-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a profile that configures test fixtures
This commit enables users to spin up the fixtures container locally. Besides that, a default environment variable for the fixtures is set in order to allow running tests without the pulp-smash settings file. [noissue]
- Loading branch information
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# local\_fixtures | ||
|
||
A profile for running test fixtures locally. It pulls down the pulp/pulp-fixtures image which | ||
can be used for running functional tests without relying on the internet connection. The fixtures | ||
are exposed on the very same port on the host machine. | ||
|
||
## Usage | ||
|
||
Append `local_fixtures` to the `COMPOSE_PROFILE` variable in your `compose.env`. | ||
|
||
## Extra Variables | ||
|
||
- `PULP_FIXTURES_URL` | ||
- Description: The URL/origin for the test fixtures endpoint. | ||
- Default: "http://local\_fixtures:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: "3.7" | ||
|
||
services: | ||
local_fixtures: | ||
image: pulp/pulp-fixtures | ||
environment: | ||
- BASE_URL={PULP_FIXTURES_URL} | ||
ports: | ||
- {PULP_FIXTURES_PORT}:{PULP_FIXTURES_PORT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PULP_FIXTURES_PORT=8080 | ||
PULP_FIXTURES_URL=http://local_fixtures:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REMOTE_FIXTURES_ORIGIN={PULP_FIXTURES_URL} |