ory-oathkeeper-client 0.0.0.alpha38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +184 -0
- data/Rakefile +10 -0
- data/docs/ApiApi.md +450 -0
- data/docs/CreateRuleCreated.md +18 -0
- data/docs/CreateRuleForbidden.md +18 -0
- data/docs/CreateRuleForbiddenBody.md +28 -0
- data/docs/CreateRuleInternalServerError.md +18 -0
- data/docs/CreateRuleInternalServerErrorBody.md +28 -0
- data/docs/CreateRuleUnauthorized.md +18 -0
- data/docs/CreateRuleUnauthorizedBody.md +28 -0
- data/docs/DecisionsForbidden.md +18 -0
- data/docs/DecisionsForbiddenBody.md +28 -0
- data/docs/DecisionsInternalServerError.md +18 -0
- data/docs/DecisionsInternalServerErrorBody.md +28 -0
- data/docs/DecisionsNotFound.md +18 -0
- data/docs/DecisionsNotFoundBody.md +28 -0
- data/docs/DecisionsUnauthorized.md +18 -0
- data/docs/DecisionsUnauthorizedBody.md +28 -0
- data/docs/DeleteRuleForbidden.md +18 -0
- data/docs/DeleteRuleForbiddenBody.md +28 -0
- data/docs/DeleteRuleInternalServerError.md +18 -0
- data/docs/DeleteRuleInternalServerErrorBody.md +28 -0
- data/docs/DeleteRuleNotFound.md +18 -0
- data/docs/DeleteRuleNotFoundBody.md +28 -0
- data/docs/DeleteRuleUnauthorized.md +18 -0
- data/docs/DeleteRuleUnauthorizedBody.md +28 -0
- data/docs/GetRuleForbidden.md +18 -0
- data/docs/GetRuleForbiddenBody.md +28 -0
- data/docs/GetRuleInternalServerError.md +18 -0
- data/docs/GetRuleInternalServerErrorBody.md +28 -0
- data/docs/GetRuleNotFound.md +18 -0
- data/docs/GetRuleNotFoundBody.md +28 -0
- data/docs/GetRuleOK.md +18 -0
- data/docs/GetRuleUnauthorized.md +18 -0
- data/docs/GetRuleUnauthorizedBody.md +28 -0
- data/docs/GetWellKnownForbidden.md +18 -0
- data/docs/GetWellKnownForbiddenBody.md +28 -0
- data/docs/GetWellKnownJSONWebKeysInternalServerError.md +18 -0
- data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +28 -0
- data/docs/GetWellKnownJSONWebKeysOK.md +18 -0
- data/docs/GetWellKnownOK.md +18 -0
- data/docs/GetWellKnownUnauthorized.md +18 -0
- data/docs/GetWellKnownUnauthorizedBody.md +28 -0
- data/docs/HealthApi.md +96 -0
- data/docs/HealthNotReadyStatus.md +18 -0
- data/docs/HealthStatus.md +18 -0
- data/docs/InlineResponse500.md +28 -0
- data/docs/IsInstanceAliveInternalServerError.md +18 -0
- data/docs/IsInstanceAliveInternalServerErrorBody.md +28 -0
- data/docs/IsInstanceAliveOK.md +18 -0
- data/docs/JsonWebKey.md +50 -0
- data/docs/JsonWebKeySet.md +18 -0
- data/docs/JudgeForbidden.md +18 -0
- data/docs/JudgeForbiddenBody.md +28 -0
- data/docs/JudgeInternalServerError.md +18 -0
- data/docs/JudgeInternalServerErrorBody.md +28 -0
- data/docs/JudgeNotFound.md +18 -0
- data/docs/JudgeNotFoundBody.md +28 -0
- data/docs/JudgeUnauthorized.md +18 -0
- data/docs/JudgeUnauthorizedBody.md +28 -0
- data/docs/ListRulesForbidden.md +18 -0
- data/docs/ListRulesForbiddenBody.md +28 -0
- data/docs/ListRulesInternalServerError.md +18 -0
- data/docs/ListRulesInternalServerErrorBody.md +28 -0
- data/docs/ListRulesOK.md +18 -0
- data/docs/ListRulesUnauthorized.md +18 -0
- data/docs/ListRulesUnauthorizedBody.md +28 -0
- data/docs/Rule.md +30 -0
- data/docs/RuleHandler.md +20 -0
- data/docs/RuleMatch.md +20 -0
- data/docs/SwaggerCreateRuleParameters.md +18 -0
- data/docs/SwaggerGetRuleParameters.md +18 -0
- data/docs/SwaggerHealthStatus.md +18 -0
- data/docs/SwaggerJSONWebKey.md +50 -0
- data/docs/SwaggerJSONWebKeySet.md +18 -0
- data/docs/SwaggerListRulesParameters.md +20 -0
- data/docs/SwaggerNotReadyStatus.md +18 -0
- data/docs/SwaggerRule.md +30 -0
- data/docs/SwaggerRuleHandler.md +20 -0
- data/docs/SwaggerRuleMatch.md +20 -0
- data/docs/SwaggerRuleResponse.md +18 -0
- data/docs/SwaggerRulesResponse.md +18 -0
- data/docs/SwaggerUpdateRuleParameters.md +20 -0
- data/docs/SwaggerVersion.md +18 -0
- data/docs/UpdateRuleForbidden.md +18 -0
- data/docs/UpdateRuleForbiddenBody.md +28 -0
- data/docs/UpdateRuleInternalServerError.md +18 -0
- data/docs/UpdateRuleInternalServerErrorBody.md +28 -0
- data/docs/UpdateRuleNotFound.md +18 -0
- data/docs/UpdateRuleNotFoundBody.md +28 -0
- data/docs/UpdateRuleOK.md +18 -0
- data/docs/UpdateRuleUnauthorized.md +18 -0
- data/docs/UpdateRuleUnauthorizedBody.md +28 -0
- data/docs/Upstream.md +22 -0
- data/docs/Version.md +18 -0
- data/docs/VersionApi.md +52 -0
- data/lib/ory-oathkeeper-client.rb +131 -0
- data/lib/ory-oathkeeper-client/api/api_api.rb +433 -0
- data/lib/ory-oathkeeper-client/api/health_api.rb +134 -0
- data/lib/ory-oathkeeper-client/api/version_api.rb +78 -0
- data/lib/ory-oathkeeper-client/api_client.rb +389 -0
- data/lib/ory-oathkeeper-client/api_error.rb +57 -0
- data/lib/ory-oathkeeper-client/configuration.rb +270 -0
- data/lib/ory-oathkeeper-client/models/create_rule_created.rb +219 -0
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +219 -0
- data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +219 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +221 -0
- data/lib/ory-oathkeeper-client/models/health_status.rb +219 -0
- data/lib/ory-oathkeeper-client/models/inline_response500.rb +265 -0
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +219 -0
- data/lib/ory-oathkeeper-client/models/json_web_key.rb +369 -0
- data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +221 -0
- data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/judge_not_found.rb +219 -0
- data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +222 -0
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/rule.rb +280 -0
- data/lib/ory-oathkeeper-client/models/rule_handler.rb +229 -0
- data/lib/ory-oathkeeper-client/models/rule_match.rb +231 -0
- data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +219 -0
- data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +225 -0
- data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +220 -0
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +382 -0
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +222 -0
- data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +230 -0
- data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +222 -0
- data/lib/ory-oathkeeper-client/models/swagger_rule.rb +280 -0
- data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +230 -0
- data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +232 -0
- data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +219 -0
- data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +222 -0
- data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +234 -0
- data/lib/ory-oathkeeper-client/models/swagger_version.rb +220 -0
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +219 -0
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +219 -0
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +219 -0
- data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +219 -0
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +219 -0
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +272 -0
- data/lib/ory-oathkeeper-client/models/upstream.rb +240 -0
- data/lib/ory-oathkeeper-client/models/version.rb +219 -0
- data/lib/ory-oathkeeper-client/version.rb +15 -0
- data/ory-oathkeeper-client.gemspec +38 -0
- data/spec/api/api_api_spec.rb +115 -0
- data/spec/api/health_api_spec.rb +57 -0
- data/spec/api/version_api_spec.rb +46 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/create_rule_created_spec.rb +41 -0
- data/spec/models/create_rule_forbidden_body_spec.rb +71 -0
- data/spec/models/create_rule_forbidden_spec.rb +41 -0
- data/spec/models/create_rule_internal_server_error_body_spec.rb +71 -0
- data/spec/models/create_rule_internal_server_error_spec.rb +41 -0
- data/spec/models/create_rule_unauthorized_body_spec.rb +71 -0
- data/spec/models/create_rule_unauthorized_spec.rb +41 -0
- data/spec/models/decisions_forbidden_body_spec.rb +71 -0
- data/spec/models/decisions_forbidden_spec.rb +41 -0
- data/spec/models/decisions_internal_server_error_body_spec.rb +71 -0
- data/spec/models/decisions_internal_server_error_spec.rb +41 -0
- data/spec/models/decisions_not_found_body_spec.rb +71 -0
- data/spec/models/decisions_not_found_spec.rb +41 -0
- data/spec/models/decisions_unauthorized_body_spec.rb +71 -0
- data/spec/models/decisions_unauthorized_spec.rb +41 -0
- data/spec/models/delete_rule_forbidden_body_spec.rb +71 -0
- data/spec/models/delete_rule_forbidden_spec.rb +41 -0
- data/spec/models/delete_rule_internal_server_error_body_spec.rb +71 -0
- data/spec/models/delete_rule_internal_server_error_spec.rb +41 -0
- data/spec/models/delete_rule_not_found_body_spec.rb +71 -0
- data/spec/models/delete_rule_not_found_spec.rb +41 -0
- data/spec/models/delete_rule_unauthorized_body_spec.rb +71 -0
- data/spec/models/delete_rule_unauthorized_spec.rb +41 -0
- data/spec/models/get_rule_forbidden_body_spec.rb +71 -0
- data/spec/models/get_rule_forbidden_spec.rb +41 -0
- data/spec/models/get_rule_internal_server_error_body_spec.rb +71 -0
- data/spec/models/get_rule_internal_server_error_spec.rb +41 -0
- data/spec/models/get_rule_not_found_body_spec.rb +71 -0
- data/spec/models/get_rule_not_found_spec.rb +41 -0
- data/spec/models/get_rule_ok_spec.rb +41 -0
- data/spec/models/get_rule_unauthorized_body_spec.rb +71 -0
- data/spec/models/get_rule_unauthorized_spec.rb +41 -0
- data/spec/models/get_well_known_forbidden_body_spec.rb +71 -0
- data/spec/models/get_well_known_forbidden_spec.rb +41 -0
- data/spec/models/get_well_known_json_web_keys_internal_server_error_body_spec.rb +71 -0
- data/spec/models/get_well_known_json_web_keys_internal_server_error_spec.rb +41 -0
- data/spec/models/get_well_known_json_web_keys_ok_spec.rb +41 -0
- data/spec/models/get_well_known_ok_spec.rb +41 -0
- data/spec/models/get_well_known_unauthorized_body_spec.rb +71 -0
- data/spec/models/get_well_known_unauthorized_spec.rb +41 -0
- data/spec/models/health_not_ready_status_spec.rb +41 -0
- data/spec/models/health_status_spec.rb +41 -0
- data/spec/models/inline_response500_spec.rb +71 -0
- data/spec/models/is_instance_alive_internal_server_error_body_spec.rb +71 -0
- data/spec/models/is_instance_alive_internal_server_error_spec.rb +41 -0
- data/spec/models/is_instance_alive_ok_spec.rb +41 -0
- data/spec/models/json_web_key_set_spec.rb +41 -0
- data/spec/models/json_web_key_spec.rb +137 -0
- data/spec/models/judge_forbidden_body_spec.rb +71 -0
- data/spec/models/judge_forbidden_spec.rb +41 -0
- data/spec/models/judge_internal_server_error_body_spec.rb +71 -0
- data/spec/models/judge_internal_server_error_spec.rb +41 -0
- data/spec/models/judge_not_found_body_spec.rb +71 -0
- data/spec/models/judge_not_found_spec.rb +41 -0
- data/spec/models/judge_unauthorized_body_spec.rb +71 -0
- data/spec/models/judge_unauthorized_spec.rb +41 -0
- data/spec/models/list_rules_forbidden_body_spec.rb +71 -0
- data/spec/models/list_rules_forbidden_spec.rb +41 -0
- data/spec/models/list_rules_internal_server_error_body_spec.rb +71 -0
- data/spec/models/list_rules_internal_server_error_spec.rb +41 -0
- data/spec/models/list_rules_ok_spec.rb +41 -0
- data/spec/models/list_rules_unauthorized_body_spec.rb +71 -0
- data/spec/models/list_rules_unauthorized_spec.rb +41 -0
- data/spec/models/rule_handler_spec.rb +47 -0
- data/spec/models/rule_match_spec.rb +47 -0
- data/spec/models/rule_spec.rb +77 -0
- data/spec/models/swagger_create_rule_parameters_spec.rb +41 -0
- data/spec/models/swagger_get_rule_parameters_spec.rb +41 -0
- data/spec/models/swagger_health_status_spec.rb +41 -0
- data/spec/models/swagger_json_web_key_set_spec.rb +41 -0
- data/spec/models/swagger_json_web_key_spec.rb +137 -0
- data/spec/models/swagger_list_rules_parameters_spec.rb +47 -0
- data/spec/models/swagger_not_ready_status_spec.rb +41 -0
- data/spec/models/swagger_rule_handler_spec.rb +47 -0
- data/spec/models/swagger_rule_match_spec.rb +47 -0
- data/spec/models/swagger_rule_response_spec.rb +41 -0
- data/spec/models/swagger_rule_spec.rb +77 -0
- data/spec/models/swagger_rules_response_spec.rb +41 -0
- data/spec/models/swagger_update_rule_parameters_spec.rb +47 -0
- data/spec/models/swagger_version_spec.rb +41 -0
- data/spec/models/update_rule_forbidden_body_spec.rb +71 -0
- data/spec/models/update_rule_forbidden_spec.rb +41 -0
- data/spec/models/update_rule_internal_server_error_body_spec.rb +71 -0
- data/spec/models/update_rule_internal_server_error_spec.rb +41 -0
- data/spec/models/update_rule_not_found_body_spec.rb +71 -0
- data/spec/models/update_rule_not_found_spec.rb +41 -0
- data/spec/models/update_rule_ok_spec.rb +41 -0
- data/spec/models/update_rule_unauthorized_body_spec.rb +71 -0
- data/spec/models/update_rule_unauthorized_spec.rb +41 -0
- data/spec/models/upstream_spec.rb +53 -0
- data/spec/models/version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +477 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.38
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe OryOathkeeperClient::Configuration do
|
16
|
+
let(:config) { OryOathkeeperClient::Configuration.default }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
# uncomment below to setup host and base_path
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("http://localhost")
|
22
|
+
# OryOathkeeperClient.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#base_url' do
|
29
|
+
it 'should have the default value' do
|
30
|
+
# uncomment below to test default value of the base path
|
31
|
+
# expect(config.base_url).to eq("http://localhost")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should remove trailing slashes' do
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
36
|
+
config.base_path = base_path
|
37
|
+
# uncomment below to test trailing slashes
|
38
|
+
# expect(config.base_url).to eq("http://localhost")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleCreated
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleCreated' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleCreated.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleCreated' do
|
31
|
+
it 'should create an instance of CreateRuleCreated' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleCreated)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "payload"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleForbiddenBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleForbiddenBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleForbiddenBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleForbiddenBody' do
|
31
|
+
it 'should create an instance of CreateRuleForbiddenBody' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleForbiddenBody)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "code"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "details"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "message"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "reason"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "request"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "status"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleForbidden
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleForbidden' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleForbidden.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleForbidden' do
|
31
|
+
it 'should create an instance of CreateRuleForbidden' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleForbidden)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "payload"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleInternalServerErrorBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleInternalServerErrorBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleInternalServerErrorBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleInternalServerErrorBody' do
|
31
|
+
it 'should create an instance of CreateRuleInternalServerErrorBody' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleInternalServerErrorBody)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "code"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "details"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "message"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "reason"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "request"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "status"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleInternalServerError
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleInternalServerError' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleInternalServerError.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleInternalServerError' do
|
31
|
+
it 'should create an instance of CreateRuleInternalServerError' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleInternalServerError)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "payload"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleUnauthorizedBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleUnauthorizedBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleUnauthorizedBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleUnauthorizedBody' do
|
31
|
+
it 'should create an instance of CreateRuleUnauthorizedBody' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleUnauthorizedBody)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "code"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "details"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "message"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "reason"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "request"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "status"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::CreateRuleUnauthorized
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateRuleUnauthorized' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::CreateRuleUnauthorized.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateRuleUnauthorized' do
|
31
|
+
it 'should create an instance of CreateRuleUnauthorized' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::CreateRuleUnauthorized)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "payload"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#ORY Oathkeeper
|
3
|
+
|
4
|
+
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.1
|
7
|
+
Contact: hi@ory.am
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::DecisionsForbiddenBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'DecisionsForbiddenBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::DecisionsForbiddenBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of DecisionsForbiddenBody' do
|
31
|
+
it 'should create an instance of DecisionsForbiddenBody' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::DecisionsForbiddenBody)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "code"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "details"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "message"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "reason"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "request"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "status"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|