=begin #ORY Oathkeeper #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. The version of the OpenAPI document: v0.39.4 Contact: hi@ory.am Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 =end require 'spec_helper' require 'json' # Unit tests for OryOathkeeperClient::ApiApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'ApiApi' do before do # run before each test @api_instance = OryOathkeeperClient::ApiApi.new end after do # run after each test end describe 'test an instance of ApiApi' do it 'should create an instance of ApiApi' do expect(@api_instance).to be_instance_of(OryOathkeeperClient::ApiApi) end end # unit tests for decisions # Access Control Decision API # > This endpoint works with all HTTP Methods (GET, POST, PUT, ...) and matches every path prefixed with /decision. This endpoint mirrors the proxy capability of ORY Oathkeeper's proxy functionality but instead of forwarding the request to the upstream server, returns 200 (request should be allowed), 401 (unauthorized), or 403 (forbidden) status codes. This endpoint can be used to integrate with other API Proxies like Ambassador, Kong, Envoy, and many more. # @param [Hash] opts the optional parameters # @return [nil] describe 'decisions test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_rule # Retrieve a rule # Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error. # @param id # @param [Hash] opts the optional parameters # @return [Rule] describe 'get_rule test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_version # Get service version # This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. # @param [Hash] opts the optional parameters # @return [Version] describe 'get_version test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_well_known_json_web_keys # Lists cryptographic keys # This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens. # @param [Hash] opts the optional parameters # @return [JsonWebKeySet] describe 'get_well_known_json_web_keys test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for is_instance_alive # Check alive status # This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. # @param [Hash] opts the optional parameters # @return [HealthStatus] describe 'is_instance_alive test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for is_instance_ready # Check readiness status # This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. # @param [Hash] opts the optional parameters # @return [HealthStatus] describe 'is_instance_ready test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list_rules # List all rules # This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place. # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The maximum amount of rules returned. # @option opts [Integer] :offset The offset from where to start looking. # @return [Array] describe 'list_rules test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end