Skip to content
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

Update missing actor block error message to include suggested remediation #1257

Merged
merged 9 commits into from Oct 6, 2021

Conversation

patrickod
Copy link
Contributor

@patrickod patrickod commented Oct 6, 2021

2021-10-06-141156_1279x439_scrot

PR checklist:

  • Added changelog entry

Add integration test to check that we provide a recommended fix in the
scenario where a policy contains resource blocks without corresponding
actor block

Updating multi-line error message indentation to match others
@github-actions
Copy link

github-actions bot commented Oct 6, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@patrickod
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

polar-core/src/kb.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@gkaemmer gkaemmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one super duper minor thing, but other than that looks good!

@@ -1576,6 +1576,32 @@ fn test_unknown_specializer_warning() -> TestResult {
Ok(())
}

#[test]
fn test_missing_actor_warning() -> TestResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps test_missing_actor_hint?

@patrickod patrickod enabled auto-merge (squash) October 6, 2021 22:15
@patrickod patrickod merged commit cb2ea77 into main Oct 6, 2021
@patrickod patrickod deleted the patrickod/missing-actor-block-error-msg branch October 6, 2021 22:24
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants