Skip to content

Commit

Permalink
Fix flakey test race condition; remove unused cleanup func
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Nov 26, 2024
1 parent 3e558f8 commit 9419793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions app/lib/clients/vault/policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ def assign_entity_policy(identity, policy_name)

def assign_groups_policy(groups, policy_name)
groups.each do |group|
put_group(group, [ policy_name ])
put_group_alias(group, group, "oidc")
Domain.with_advisory_lock(group) do
put_group(group, [ policy_name ])
put_group_alias(group, group, "oidc")
end
end
end

Expand Down
4 changes: 0 additions & 4 deletions test/integration/secrets_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,4 @@ def create_secret(jwt = jwt_authorized, path = "top/secret/#{SecureRandom.hex}")
params: { secret: { path: path, data: { password: "sicr3t" }, groups: "read_group" } }
path
end

def remove_pki_engine
vault_client.sys.unmount "pki_astral"
end
end

0 comments on commit 9419793

Please sign in to comment.