Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
George Jahad committed Oct 2, 2024
1 parent 8a6a394 commit b1215d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/lib/clients/vault_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,27 @@ class VaultTest < ActiveSupport::TestCase
end

test "#entity_alias" do
#confirm no entity yet

Check failure on line 63 in test/lib/clients/vault_test.rb

View workflow job for this annotation

GitHub Actions / build_test

Layout/LeadingCommentSpace: Missing space after `#`.
err = assert_raises RuntimeError do
@client.read_entity_alias(@entity_name, @alias_name)
end
assert_match /no such entity/, err.message

#confirm no alias yet

Check failure on line 69 in test/lib/clients/vault_test.rb

View workflow job for this annotation

GitHub Actions / build_test

Layout/LeadingCommentSpace: Missing space after `#`.
@client.put_entity(@entity_name, @policies)
err = assert_raises RuntimeError do
@client.read_entity_alias(@entity_name, @alias_name)
end
assert_match /no such alias/, err.message

#create alias

Check failure on line 76 in test/lib/clients/vault_test.rb

View workflow job for this annotation

GitHub Actions / build_test

Layout/LeadingCommentSpace: Missing space after `#`.
auth_method = "token"
@client.put_entity_alias(@entity_name, @alias_name, auth_method)
entity_alias = @client.read_entity_alias(@entity_name, @alias_name)
assert_equal entity_alias.data[:mount_type], auth_method

#confirm deleted alias

Check failure on line 82 in test/lib/clients/vault_test.rb

View workflow job for this annotation

GitHub Actions / build_test

Layout/LeadingCommentSpace: Missing space after `#`.
assert_equal @client.delete_entity_alias(@entity_name, @alias_name), true

err = assert_raises RuntimeError do
@client.delete_entity_alias(@entity_name, @alias_name)
end
Expand Down

0 comments on commit b1215d4

Please sign in to comment.