Skip to content

Commit

Permalink
Seanpreston testing follow up (#178)
Browse files Browse the repository at this point in the history
* add extra docline

* add extra logging
  • Loading branch information
seanpreston authored Jan 26, 2022
1 parent ed94b2a commit 05b9ed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/fidesops/docs/development/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ commands to give you different functionality.
- `ipython` - open a Python shell
- `make pytest` - runs all unit tests except those that talk to integration databases
- `make pytest-integration` - runs access integration tests.
- `make pytest-integration datastores="postgres snowflake mssql"` - runs access integration tests for the Postgres, Snowflake and MSSQL environments.
- `make pytest-integration-erasure` - runs erasure integration tests.
- `make reset-db` - tears down the Fideops postgres db, then recreates and re-runs migrations.
- `make quickstart` - runs a quick, five second quickstart that talks to the Fidesops API to execute privacy requests
Expand Down
6 changes: 5 additions & 1 deletion run_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ def seed_initial_data(
"""
Seed the datastores with initial data as defined in the file at `setup_path`
"""
os.system('echo "Seeding initial data for all datastores..."')
for datastore in datastores:
if datastore in DOCKERFILE_DATASTORES:
setup_path = f"tests/integration_tests/{datastore}_setup.py"
os.system(
f'docker-compose {path} run {base_image} python {setup_path} || echo "no custom setup logic found for {datastore}"'
f'echo "Attempting to create schema and seed initial data for {datastore} from {setup_path}..."'
)
os.system(
f'docker-compose {path} run {base_image} python {setup_path} || echo "no custom setup logic found for {datastore}, skipping"'
)


Expand Down

0 comments on commit 05b9ed0

Please sign in to comment.