Skip to content

Commit

Permalink
Merge pull request #123 from aerospike/CLIENT-2526
Browse files Browse the repository at this point in the history
[CLIENT-2526] bumped version as its a minor release
  • Loading branch information
vmsachin authored Aug 25, 2023
2 parents fbc79de + 5d8b31b commit b3f25d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/aerospike/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
module Aerospike
VERSION = "2.28.1"
VERSION = "2.29.0"
end
15 changes: 14 additions & 1 deletion spec/aerospike/security_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

client.create_role("role-read-test-test", [Aerospike::Privilege.new(code: Aerospike::Role::READ, namespace: "test", set_name: "test")], ["192.0.0.1"], 0, 0)
client.create_role("role-write-test", [Aerospike::Privilege.new(code: Aerospike::Role::READ_WRITE, namespace: "test", set_name: "test")], ["192.1.0.1"], 0, 0)
client.create_role("role-update-quota-test", [Aerospike::Privilege.new(code: Aerospike::Role::READ)], ["198.1.1.1"], 100, 10)

client.grant_privileges("role-read-test-test", [Aerospike::Privilege.new(code: Aerospike::Role::READ_WRITE, namespace: "test", set_name: "bar"), Aerospike::Privilege.new(code: Aerospike::Role::READ_WRITE_UDF, namespace: "test", set_name: "test")])
client.revoke_privileges("role-read-test-test", [Aerospike::Privilege.new(code: Aerospike::Role::READ_WRITE_UDF, namespace: "test", set_name: "test")])
Expand Down Expand Up @@ -96,8 +97,20 @@
expect(role.read_quota).to eq 100
expect(role.write_quota).to eq 1000


role = client.query_role("role-update-quota-test")
expect(role.name).to eq "role-update-quota-test"
expect(role.read_quota).to eq 100
expect(role.write_quota).to eq 10
client.set_quotas("role-update-quota-test", 100, 1000)
role = client.query_role("role-update-quota-test")
expect(role.name).to eq "role-update-quota-test"
expect(role.read_quota).to eq 100
expect(role.write_quota).to eq 1000

client.drop_role("role-read-test-test")
client.drop_role("role-write-test")
client.drop_role("role-update-quota-test")
client.drop_role("dummy-role")
client.drop_role("dummy-role")
end

Expand Down

0 comments on commit b3f25d9

Please sign in to comment.