spec/command/groups_spec.rb in conjur-cli-4.20.1 vs spec/command/groups_spec.rb in conjur-cli-4.21.0
- old
+ new
@@ -28,50 +28,50 @@
end
end
describe_command "group:members:add group user:alice" do
it "adds the role to the group" do
- expect(RestClient::Request).to receive(:execute).with(
+ expect(RestClient::Request).to receive(:execute).with({
method: :put,
url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice",
headers: {},
payload: nil
- )
+ }.merge(cert_store_options))
invoke
end
end
describe_command "group:members:add -a group user:alice" do
it "adds the role to the group with admin option" do
- expect(RestClient::Request).to receive(:execute).with(
+ expect(RestClient::Request).to receive(:execute).with({
method: :put,
url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice",
headers: {},
payload: { admin_option: true }
- )
+ }.merge(cert_store_options))
invoke
end
end
describe_command "group:members:add -a group alice" do
it "assumes that a nake member name is a user" do
- expect(RestClient::Request).to receive(:execute).with(
+ expect(RestClient::Request).to receive(:execute).with({
method: :put,
url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice",
headers: {},
payload: { admin_option: true }
- )
+ }.merge(cert_store_options))
invoke
end
end
describe_command "group:members:add -r group alice" do
it "revokes the admin rights" do
- expect(RestClient::Request).to receive(:execute).with(
+ expect(RestClient::Request).to receive(:execute).with({
method: :put,
url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice",
headers: {},
payload: { admin_option: false }
- )
+ }.merge(cert_store_options))
invoke
end
end
end