class Soar::Policy::AccessManager::Test::OrchestrationProvider::Stub
Public Class Methods
new()
click to toggle source
# File lib/soar/policy/access_manager/test/orchestration_provider/stub.rb, line 12 def initialize @meta = { 'service_identifier1' => { 'policy' => 'policy1' } } @policies = { 'policy1' => { 'resource_identifier1' => ['authentication_identifier1'], 'resource_identifier2' => [] } } @request = { params: {}, authentication_identifier: 'authentication_identifier1' } end
Public Instance Methods
deny_access()
click to toggle source
# File lib/soar/policy/access_manager/test/orchestration_provider/stub.rb, line 35 def deny_access @service_identifier = 'service_identifier1' @resource_identifier = 'resource_identifier2' end
grant_access()
click to toggle source
# File lib/soar/policy/access_manager/test/orchestration_provider/stub.rb, line 30 def grant_access @service_identifier = 'service_identifier1' @resource_identifier = 'resource_identifier1' end
no_policy()
click to toggle source
# File lib/soar/policy/access_manager/test/orchestration_provider/stub.rb, line 40 def no_policy @service_identifier = 'service_identifier2' @resource_identifier = nil end
notification()
click to toggle source
# File lib/soar/policy/access_manager/test/orchestration_provider/stub.rb, line 45 def notification @response['data']['notifications'] end