require "rubygems" require "bundler/setup" require 'tempfile' require 'ostruct' require "simplecov" SimpleCov.start def post_response(id, attributes = {}) attributes[:id] = id OpenStruct.new({ headers: { location: [ collection_url, id ].join('/') }, body: attributes.to_json }) end # stub parameters to be used in resource/asset tests KIND="asset_kind" ID="unique_id" ROLE='' MEMBER='' PRIVILEGE='' OWNER='' ACCOUNT='' require 'conjur/command/rspec/helpers' ENV['CONJURRC'] = '/dev/null' require 'conjur/cli'