Sha256: edf5f1c813683e7ae11e1129474013ffeb2d1283e8e6287befb9a36a38492b81
Contents?: true
Size: 1.57 KB
Versions: 6
Compression:
Stored size: 1.57 KB
Contents
require 'spec_helper' describe Conjur::Command::Groups, logged_in: true do describe_command "group:members:add group user:alice" do it "adds the role to the group" do 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 ) 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( method: :put, url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice", headers: {}, payload: { admin_option: true } ) 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( method: :put, url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice", headers: {}, payload: { admin_option: true } ) 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( method: :put, url: "https://authz.example.com/the-account/roles/group/group/?members&member=user:alice", headers: {}, payload: { admin_option: false } ) invoke end end end
Version data entries
6 entries across 6 versions & 1 rubygems