Skip to content

Commit

Permalink
fix(jans-cedarling): python test error msg assert
Browse files Browse the repository at this point in the history
Signed-off-by: rmarinn <[email protected]>
  • Loading branch information
rmarinn committed Jan 12, 2025
1 parent 7b2e3c9 commit f8a378c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_resource_entity_error():
try:
raise_authorize_error(load_bootstrap_config())
except authorize_errors.BuildEntitiesError as e:
assert str(e) == "failed to build resource entity: type mismatch for key 'org_id'. expected: 'string', but found: 'number'"
assert str(e) == "failed to build resource entity: failed to build `org_id` attribute: failed to build restricted expression: type mismatch for key 'org_id'. expected: 'string', but found: 'number'"


def test_authorize_error():
Expand All @@ -199,4 +199,4 @@ def test_authorize_error():
try:
raise_authorize_error(load_bootstrap_config())
except authorize_errors.AuthorizeError as e:
assert str(e) == "failed to build resource entity: type mismatch for key 'org_id'. expected: 'string', but found: 'number'"
assert str(e) == "failed to build resource entity: failed to build `org_id` attribute: failed to build restricted expression: type mismatch for key 'org_id'. expected: 'string', but found: 'number'"
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn apply_claim_aliases(claims: &mut HashMap<String, Value>, aliases: Vec<ClaimAl
}

#[derive(Debug, thiserror::Error)]
#[error("failed to build `{attr_name}` attribute: `{source}`")]
#[error("failed to build `{attr_name}` attribute: {source}")]
pub struct BuildAttrError {
attr_name: String,
#[source]
Expand Down

0 comments on commit f8a378c

Please sign in to comment.