Sha256: 0846cd8e7891a4ec3f30d84f18be30d6d9f563bba0dd6ccf1a1883d87b3af0ef
Contents?: true
Size: 1.15 KB
Versions: 19
Compression:
Stored size: 1.15 KB
Contents
require 'spec_helper' describe Conjur::Command::Groups, logged_in: true do describe_command "group:members:add group role" do it "adds the role to the group" do RestClient::Request.should_receive(:execute).with( method: :put, url: "https://authz.example.com/the-account/roles/group/group/?members&member=role", headers: {}, payload: nil ) invoke end end describe_command "group:members:add -a group role" do it "adds the role to the group with admin option" do RestClient::Request.should_receive(:execute).with( method: :put, url: "https://authz.example.com/the-account/roles/group/group/?members&member=role", headers: {}, payload: { admin_option: true } ) invoke end end describe_command "group:members:add -r group role" do it "revokes the admin rights" do RestClient::Request.should_receive(:execute).with( method: :put, url: "https://authz.example.com/the-account/roles/group/group/?members&member=role", headers: {}, payload: { admin_option: false } ) invoke end end end
Version data entries
19 entries across 19 versions & 1 rubygems