=begin #Ory Kratos API #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests. The version of the OpenAPI document: v0.7.6-alpha.6 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.2.1 =end require 'spec_helper' require 'json' # Unit tests for OryKratosClient::MetadataApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'MetadataApi' do before do # run before each test @api_instance = OryKratosClient::MetadataApi.new end after do # run after each test end describe 'test an instance of MetadataApi' do it 'should create an instance of MetadataApi' do expect(@api_instance).to be_instance_of(OryKratosClient::MetadataApi) end end # unit tests for get_version # Return Running Software Version. # This endpoint returns the version of Ory Kratos. 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 version will never refer to the cluster state, only to a single instance. # @param [Hash] opts the optional parameters # @return [InlineResponse2001] 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 is_alive # Check HTTP Server Status # This endpoint returns a HTTP 200 status code when Ory Kratos is accepting incoming HTTP requests. 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 [InlineResponse200] describe 'is_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_ready # Check HTTP Server and Database Status # This endpoint returns a HTTP 200 status code when Ory Kratos 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 Ory Kratos, the health status will never refer to the cluster state, only to a single instance. # @param [Hash] opts the optional parameters # @return [InlineResponse200] describe 'is_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 prometheus # Get snapshot metrics from the service. If you're using k8s, you can then add annotations to your deployment like so: # ``` metadata: annotations: prometheus.io/port: \"4434\" prometheus.io/path: \"/metrics/prometheus\" ``` # @param [Hash] opts the optional parameters # @return [nil] describe 'prometheus test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end