-
Notifications
You must be signed in to change notification settings - Fork 13
Fix Key Finding Function #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Reviewing now! |
|
The job got stuck waiting for a runner, but everything passed so I don't see a problem |
pattisdr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried pointing fideslang in fides to this latest commit and it's revealing other issues, although it looks like we're past that original organization issue:
https://github.com/ethyca/fides/actions/runs/5325046130/jobs/9645546378?pr=3572
Loading resource manifests from: demo_resources/
Taxonomy successfully created.
Evaluating the following policies:
- demo_privacy_policy
- data_sharing_policy
- primary_privacy_policy
----------
Checking for missing resources...
Missing resource keys: {'Processor - marketing co.', 'CAN', 'USA', 'GBR'}
> assert (
database_settings.sync_database_uri
== "***fides-db:5432/database?sslmode=verify-full&sslrootcert=/etc/ssl/private/myca.crt"
)
E AssertionError: assert '***fides-db:5432/database?sslmode=verify-full&sslrootcert=%2Fetc%2Fssl%2Fprivate%2Fmyca.crt' == '***fides-db:5432/database?sslmode=verify-full&sslrootcert=/etc/ssl/private/myca.crt'
E - ***fides-db:5432/database?sslmode=verify-full&sslrootcert=/etc/ssl/private/myca.crt
E ? ^ ^ ^ ^
E + ***fides-db:5432/database?sslmode=verify-full&sslrootcert=%2Fetc%2Fssl%2Fprivate%2Fmyca.crt
E ?
FAILED tests/ctl/cli/test_cli.py::TestEvaluate::test_evaluate_demo_resources_pass
FAILED tests/ctl/cli/test_cli.py::TestEvaluate::test_local_evaluate_demo_resources
FAILED tests/ctl/core/config/test_config.py::TestBuildingDatabaseValues::test_builds_with_params
Hmmm ok, then I'll need to add more tests and complicated logic for figuring out what is truly a FidesKey and what isn't 🤔 Thank you! I'll keep working on this! |
pattisdr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good as far as I can tell, nice additional test coverage here
Closes #130
Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdDescription Of Changes
Found a bug where HTTPUrl parts were getting mistaken as FidesKeys. This is a quick patch for that bug, which also would've shown up in other places eventually.