Sha256: 10bfa5889b48404a579c57b23c8d3ed848e65f4875e5432c04488118d140f965
Contents?: true
Size: 1.24 KB
Versions: 13
Compression:
Stored size: 1.24 KB
Contents
# encoding: UTF-8 require 'gooddata/cli/cli' describe GoodData::CLI, :broken => true do describe 'role' do it 'Complains when no parameters specified' do args = %w(role) out = run_cli(args) out.should include "Command 'role' requires a subcommand list" end describe 'role list' do it 'Complains when no project ID specified' do args = [ '-U', ConnectionHelper::DEFAULT_USERNAME, '-P', ConnectionHelper::DEFAULT_PASSWORD, 'role', 'list' ] out = run_cli(args) out.should include 'Project ID has to be provided' end it 'List roles when passing project ID' do pending 'Investignate which project to use' args = [ '-U', ConnectionHelper::DEFAULT_USERNAME, '-P', ConnectionHelper::DEFAULT_PASSWORD, '-p', ProjectHelper::PROJECT_ID, 'role', 'list', ] out = run_cli(args) expected_roles = [ 'adminRole,/gdc/projects/tk6192gsnav58crp6o1ahsmtuniq8khb/roles/2' ] expected_roles.each do |expected_role| out.should include expected_role end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems