Skip to content

Commit

Permalink
Merge pull request #365 from meilisearch/add-tests-to-global-keys
Browse files Browse the repository at this point in the history
Add tests to wildcarded action keys
  • Loading branch information
brunoocasali authored Sep 5, 2022
2 parents f3af64e + b8eea71 commit 3234ff6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/meilisearch/client/keys_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
expect(new_key['description']).to eq('A new key to add docs')
end

it 'creates a key with wildcarded action' do
new_key = client.create_key(add_docs_key_options.merge(actions: ['documents.*']))

expect(new_key['actions']).to eq(['documents.*'])
end

it 'creates a key with setting uid' do
new_key = client.create_key(add_docs_key_options.merge(uid: uuid_v4))

Expand Down

0 comments on commit 3234ff6

Please sign in to comment.