abort_introspection(_node_id)
click to toggle source
def abort_introspection(_node_id)
response = Excon::Response.new
response.status = 202
response.body = ""
response
end
create_introspection(_node_id, _options = {})
click to toggle source
def create_introspection(_node_id, _options = {})
response = Excon::Response.new
response.status = 202
response.body = ""
response
end
create_rules(_)
click to toggle source
def create_rules(_)
response = Excon::Response.new
response.status = 200
response.body = {"rules" => data[:rules].first}
response
end
data()
click to toggle source
def data
self.class.data[@openstack_username]
end
delete_rules(_rule_id)
click to toggle source
def delete_rules(_rule_id)
response = Excon::Response.new
response.status = 204
response
end
delete_rules_all()
click to toggle source
def delete_rules_all
response = Excon::Response.new
response.status = 204
response
end
get_introspection(_node_id)
click to toggle source
def get_introspection(_node_id)
response = Excon::Response.new
response.status = 200
response.body = {"error" => "null", "finished" => "true"}
response
end
get_introspection_details(_node_id)
click to toggle source
def get_introspection_details(_node_id)
response = Excon::Response.new
response.status = 200
response.body = {"data" => data[:introspection_data]}
response
end
get_rules(_rule_id)
click to toggle source
def get_rules(_rule_id)
response = Excon::Response.new
response.status = 200
response.body = {"rules" => data[:rules].first}
response
end
list_rules()
click to toggle source
def list_rules
response = Excon::Response.new
response.status = 200
response.body = {"rules" => data[:rules].first}
response
end
reset_data()
click to toggle source
def reset_data
self.class.data.delete(@openstack_username)
end