-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[synthesized-io/tdk#5375] Remove workaraounds for Oracle database (#109)
- Loading branch information
1 parent
fd2296c
commit 509d292
Showing
12 changed files
with
215 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: test_oracle | ||
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
defaults: | ||
run: | ||
working-directory: ./oracle | ||
|
||
jobs: | ||
|
||
masking: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build docker compose | ||
run: | | ||
docker compose pull | ||
docker compose build | ||
- name: Run databases | ||
continue-on-error: true | ||
run: | | ||
docker compose run databases | ||
- name: Run TDK | ||
env: | ||
SYNTHESIZED_KEY: ${{ secrets.SYNTHESIZED_LICENSE_KEY }} | ||
run: | | ||
docker compose run tdk | ||
- name: Verify input data | ||
run: > | ||
docker compose run check scan -d input_db | ||
-c /sodacl/configuration.yaml | ||
/sodacl/checks_for_input_db.yaml | ||
- name: Verify output data | ||
run: > | ||
docker compose run check scan -d output_db | ||
-c /sodacl/configuration.yaml | ||
/sodacl/checks_for_masking.yaml |
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,3 @@ | ||
#!/bin/bash | ||
|
||
touch /opt/oracle/flag |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
CREATE USER test IDENTIFIED BY test; | ||
GRANT ALL PRIVILEGES TO test; | ||
GRANT SELECT ON V_$DATABASE TO test; |
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,47 @@ | ||
checks for actor: | ||
- row_count = 200 | ||
|
||
checks for address: | ||
- row_count = 603 | ||
|
||
checks for category: | ||
- row_count = 16 | ||
|
||
checks for city: | ||
- row_count = 600 | ||
|
||
checks for country: | ||
- row_count = 109 | ||
|
||
checks for customer: | ||
- row_count = 599 | ||
|
||
checks for film: | ||
- row_count = 1000 | ||
# - distribution_difference(rating) < 0.01: | ||
# method: chi_square | ||
# distribution reference file: /sodacl/film_rating_distribution.yml | ||
|
||
checks for film_actor: | ||
- row_count = 5462 | ||
|
||
checks for film_category: | ||
- row_count = 1000 | ||
|
||
checks for inventory: | ||
- row_count = 4581 | ||
|
||
checks for language: | ||
- row_count = 6 | ||
|
||
checks for payment: | ||
- row_count = 16049 | ||
|
||
checks for rental: | ||
- row_count = 16044 | ||
|
||
checks for staff: | ||
- row_count = 2 | ||
|
||
checks for store: | ||
- row_count = 2 |
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,47 @@ | ||
checks for staff: | ||
- row_count same as staff in input_db | ||
|
||
checks for film: | ||
- row_count same as film in input_db | ||
- distribution_difference(rating) = 0.0: | ||
method: swd | ||
distribution reference file: /sodacl/masked_film_rating_distribution.yml | ||
|
||
checks for actor: | ||
- row_count same as actor in input_db | ||
|
||
checks for address: | ||
- row_count same as address in input_db | ||
|
||
checks for category: | ||
- row_count same as category in input_db | ||
|
||
checks for city: | ||
- row_count same as city in input_db | ||
|
||
checks for country: | ||
- row_count same as country in input_db | ||
|
||
checks for customer: | ||
- row_count same as customer in input_db | ||
|
||
checks for film_actor: | ||
- row_count same as film_actor in input_db | ||
|
||
checks for film_category: | ||
- row_count same as film_category in input_db | ||
|
||
checks for inventory: | ||
- row_count same as inventory in input_db | ||
|
||
checks for language: | ||
- row_count same as language in input_db | ||
|
||
checks for payment: | ||
- row_count same as payment in input_db | ||
|
||
checks for rental: | ||
- row_count same as rental in input_db | ||
|
||
checks for store: | ||
- row_count same as store in input_db |
Oops, something went wrong.