ory-oathkeeper-client 0.0.0.alpha38
Sign up to get free protection for your applications and to get access to all the features.
- 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,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::UpdateRuleInternalServerError
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateRuleInternalServerError' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::UpdateRuleInternalServerError.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UpdateRuleInternalServerError' do
|
31
|
+
it 'should create an instance of UpdateRuleInternalServerError' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::UpdateRuleInternalServerError)
|
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::UpdateRuleNotFoundBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateRuleNotFoundBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::UpdateRuleNotFoundBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UpdateRuleNotFoundBody' do
|
31
|
+
it 'should create an instance of UpdateRuleNotFoundBody' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::UpdateRuleNotFoundBody)
|
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::UpdateRuleNotFound
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateRuleNotFound' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::UpdateRuleNotFound.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UpdateRuleNotFound' do
|
31
|
+
it 'should create an instance of UpdateRuleNotFound' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::UpdateRuleNotFound)
|
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,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::UpdateRuleOK
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateRuleOK' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::UpdateRuleOK.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UpdateRuleOK' do
|
31
|
+
it 'should create an instance of UpdateRuleOK' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::UpdateRuleOK)
|
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::UpdateRuleUnauthorizedBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateRuleUnauthorizedBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::UpdateRuleUnauthorizedBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UpdateRuleUnauthorizedBody' do
|
31
|
+
it 'should create an instance of UpdateRuleUnauthorizedBody' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::UpdateRuleUnauthorizedBody)
|
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::UpdateRuleUnauthorized
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateRuleUnauthorized' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::UpdateRuleUnauthorized.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UpdateRuleUnauthorized' do
|
31
|
+
it 'should create an instance of UpdateRuleUnauthorized' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::UpdateRuleUnauthorized)
|
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,53 @@
|
|
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::Upstream
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Upstream' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::Upstream.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Upstream' do
|
31
|
+
it 'should create an instance of Upstream' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::Upstream)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "preserve_host"' 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 "strip_path"' 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 "url"' 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
|
+
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::Version
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Version' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::Version.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Version' do
|
31
|
+
it 'should create an instance of Version' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::Version)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "version"' 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
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,111 @@
|
|
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
|
+
# load the gem
|
14
|
+
require 'ory-oathkeeper-client'
|
15
|
+
|
16
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
18
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
19
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
20
|
+
# files.
|
21
|
+
#
|
22
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
23
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
24
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
25
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
26
|
+
# a separate helper file that requires the additional dependencies and performs
|
27
|
+
# the additional setup, and require it from the spec files that actually need
|
28
|
+
# it.
|
29
|
+
#
|
30
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
31
|
+
# users commonly want.
|
32
|
+
#
|
33
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
34
|
+
RSpec.configure do |config|
|
35
|
+
# rspec-expectations config goes here. You can use an alternate
|
36
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
37
|
+
# assertions if you prefer.
|
38
|
+
config.expect_with :rspec do |expectations|
|
39
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
40
|
+
# and `failure_message` of custom matchers include text for helper methods
|
41
|
+
# defined using `chain`, e.g.:
|
42
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
43
|
+
# # => "be bigger than 2 and smaller than 4"
|
44
|
+
# ...rather than:
|
45
|
+
# # => "be bigger than 2"
|
46
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
50
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
51
|
+
config.mock_with :rspec do |mocks|
|
52
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
53
|
+
# a real object. This is generally recommended, and will default to
|
54
|
+
# `true` in RSpec 4.
|
55
|
+
mocks.verify_partial_doubles = true
|
56
|
+
end
|
57
|
+
|
58
|
+
# The settings below are suggested to provide a good initial experience
|
59
|
+
# with RSpec, but feel free to customize to your heart's content.
|
60
|
+
=begin
|
61
|
+
# These two settings work together to allow you to limit a spec run
|
62
|
+
# to individual examples or groups you care about by tagging them with
|
63
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
64
|
+
# get run.
|
65
|
+
config.filter_run :focus
|
66
|
+
config.run_all_when_everything_filtered = true
|
67
|
+
|
68
|
+
# Allows RSpec to persist some state between runs in order to support
|
69
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
70
|
+
# you configure your source control system to ignore this file.
|
71
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
72
|
+
|
73
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
74
|
+
# recommended. For more details, see:
|
75
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
76
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
77
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
78
|
+
config.disable_monkey_patching!
|
79
|
+
|
80
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
81
|
+
# be too noisy due to issues in dependencies.
|
82
|
+
config.warnings = true
|
83
|
+
|
84
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
85
|
+
# file, and it's useful to allow more verbose output when running an
|
86
|
+
# individual spec file.
|
87
|
+
if config.files_to_run.one?
|
88
|
+
# Use the documentation formatter for detailed output,
|
89
|
+
# unless a formatter has already been configured
|
90
|
+
# (e.g. via a command-line flag).
|
91
|
+
config.default_formatter = 'doc'
|
92
|
+
end
|
93
|
+
|
94
|
+
# Print the 10 slowest examples and example groups at the
|
95
|
+
# end of the spec run, to help surface which specs are running
|
96
|
+
# particularly slow.
|
97
|
+
config.profile_examples = 10
|
98
|
+
|
99
|
+
# Run specs in random order to surface order dependencies. If you find an
|
100
|
+
# order dependency and want to debug it, you can fix the order by providing
|
101
|
+
# the seed, which is printed after each run.
|
102
|
+
# --seed 1234
|
103
|
+
config.order = :random
|
104
|
+
|
105
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
106
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
107
|
+
# test failures related to randomization by passing the same `--seed` value
|
108
|
+
# as the one that triggered the failure.
|
109
|
+
Kernel.srand config.seed
|
110
|
+
=end
|
111
|
+
end
|