authentik-api 2026.8.0.rc6 → 2026.8.0
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 +4 -4
- data/README_API.md +22 -5
- data/lib/authentik/api/api/agents_api.rb +410 -0
- data/lib/authentik/api/api/endpoints_api.rb +3 -0
- data/lib/authentik/api/api/requests_api.rb +72 -0
- data/lib/authentik/api/models/agent.rb +450 -0
- data/lib/authentik/api/models/agent_create_request.rb +203 -0
- data/lib/authentik/api/models/agent_created.rb +185 -0
- data/lib/authentik/api/models/agent_grant_request_create_request.rb +161 -0
- data/lib/authentik/api/models/agent_grant_request_created.rb +185 -0
- data/lib/authentik/api/models/agent_request.rb +303 -0
- data/lib/authentik/api/models/app_enum.rb +2 -2
- data/lib/authentik/api/models/capabilities_enum.rb +3 -1
- data/lib/authentik/api/models/endpoint_device.rb +1 -15
- data/lib/authentik/api/models/endpoint_device_details.rb +1 -15
- data/lib/authentik/api/models/grant_request.rb +14 -16
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/paginated_agent_list.rb +214 -0
- data/lib/authentik/api/models/patched_agent_request.rb +289 -0
- data/lib/authentik/api/models/patched_source_stage_request.rb +16 -4
- data/lib/authentik/api/models/policy_behavior_enum.rb +35 -0
- data/lib/authentik/api/models/resume_on_match_failures_enum.rb +33 -0
- data/lib/authentik/api/models/source_stage.rb +16 -4
- data/lib/authentik/api/models/source_stage_request.rb +16 -4
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/agents_api_spec.rb +101 -0
- data/spec/api/endpoints_api_spec.rb +1 -0
- data/spec/api/requests_api_spec.rb +13 -0
- data/spec/models/agent_create_request_spec.rb +54 -0
- data/spec/models/agent_created_spec.rb +36 -0
- data/spec/models/agent_grant_request_create_request_spec.rb +30 -0
- data/spec/models/agent_grant_request_created_spec.rb +36 -0
- data/spec/models/agent_request_spec.rb +72 -0
- data/spec/models/agent_spec.rb +108 -0
- data/spec/models/grant_request_spec.rb +6 -0
- data/spec/models/paginated_agent_list_spec.rb +42 -0
- data/spec/models/patched_agent_request_spec.rb +72 -0
- data/spec/models/patched_source_stage_request_spec.rb +6 -0
- data/spec/models/policy_behavior_enum_spec.rb +24 -0
- data/spec/models/resume_on_match_failures_enum_spec.rb +24 -0
- data/spec/models/source_stage_request_spec.rb +6 -0
- data/spec/models/source_stage_spec.rb +6 -0
- metadata +34 -1
|
@@ -17,12 +17,16 @@ module Authentik::Api
|
|
|
17
17
|
# Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
|
|
18
18
|
attr_accessor :resume_timeout
|
|
19
19
|
|
|
20
|
+
# Source matching failure reasons for which the flow should resume.
|
|
21
|
+
attr_accessor :resume_on_match_failures
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
23
26
|
:'name' => :'name',
|
|
24
27
|
:'source' => :'source',
|
|
25
|
-
:'resume_timeout' => :'resume_timeout'
|
|
28
|
+
:'resume_timeout' => :'resume_timeout',
|
|
29
|
+
:'resume_on_match_failures' => :'resume_on_match_failures'
|
|
26
30
|
}
|
|
27
31
|
end
|
|
28
32
|
|
|
@@ -41,7 +45,8 @@ module Authentik::Api
|
|
|
41
45
|
{
|
|
42
46
|
:'name' => :'String',
|
|
43
47
|
:'source' => :'String',
|
|
44
|
-
:'resume_timeout' => :'String'
|
|
48
|
+
:'resume_timeout' => :'String',
|
|
49
|
+
:'resume_on_match_failures' => :'Array<ResumeOnMatchFailuresEnum>'
|
|
45
50
|
}
|
|
46
51
|
end
|
|
47
52
|
|
|
@@ -82,6 +87,12 @@ module Authentik::Api
|
|
|
82
87
|
if attributes.key?(:'resume_timeout')
|
|
83
88
|
self.resume_timeout = attributes[:'resume_timeout']
|
|
84
89
|
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'resume_on_match_failures')
|
|
92
|
+
if (value = attributes[:'resume_on_match_failures']).is_a?(Array)
|
|
93
|
+
self.resume_on_match_failures = value
|
|
94
|
+
end
|
|
95
|
+
end
|
|
85
96
|
end
|
|
86
97
|
|
|
87
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -164,7 +175,8 @@ module Authentik::Api
|
|
|
164
175
|
self.class == o.class &&
|
|
165
176
|
name == o.name &&
|
|
166
177
|
source == o.source &&
|
|
167
|
-
resume_timeout == o.resume_timeout
|
|
178
|
+
resume_timeout == o.resume_timeout &&
|
|
179
|
+
resume_on_match_failures == o.resume_on_match_failures
|
|
168
180
|
end
|
|
169
181
|
|
|
170
182
|
# @see the `==` method
|
|
@@ -176,7 +188,7 @@ module Authentik::Api
|
|
|
176
188
|
# Calculates hash code according to all attributes.
|
|
177
189
|
# @return [Integer] Hash code
|
|
178
190
|
def hash
|
|
179
|
-
[name, source, resume_timeout].hash
|
|
191
|
+
[name, source, resume_timeout, resume_on_match_failures].hash
|
|
180
192
|
end
|
|
181
193
|
|
|
182
194
|
# Builds the object from hash
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
# Unit tests for Authentik::Api::AgentsApi
|
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
12
|
+
# Please update as you see appropriate
|
|
13
|
+
describe 'AgentsApi' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@api_instance = Authentik::Api::AgentsApi.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AgentsApi' do
|
|
24
|
+
it 'should create an instance of AgentsApi' do
|
|
25
|
+
expect(@api_instance).to be_instance_of(Authentik::Api::AgentsApi)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# unit tests for agents_agents_create
|
|
30
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @option opts [AgentCreateRequest] :agent_create_request
|
|
33
|
+
# @return [AgentCreated]
|
|
34
|
+
describe 'agents_agents_create test' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# unit tests for agents_agents_destroy
|
|
41
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
42
|
+
# @param id A unique integer value identifying this Agent.
|
|
43
|
+
# @param [Hash] opts the optional parameters
|
|
44
|
+
# @return [nil]
|
|
45
|
+
describe 'agents_agents_destroy test' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# unit tests for agents_agents_list
|
|
52
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
55
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
56
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
57
|
+
# @option opts [Integer] :parent
|
|
58
|
+
# @option opts [String] :search A search term.
|
|
59
|
+
# @return [PaginatedAgentList]
|
|
60
|
+
describe 'agents_agents_list test' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# unit tests for agents_agents_partial_update
|
|
67
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
68
|
+
# @param id A unique integer value identifying this Agent.
|
|
69
|
+
# @param [Hash] opts the optional parameters
|
|
70
|
+
# @option opts [PatchedAgentRequest] :patched_agent_request
|
|
71
|
+
# @return [Agent]
|
|
72
|
+
describe 'agents_agents_partial_update test' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# unit tests for agents_agents_retrieve
|
|
79
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
80
|
+
# @param id A unique integer value identifying this Agent.
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [Agent]
|
|
83
|
+
describe 'agents_agents_retrieve test' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# unit tests for agents_agents_update
|
|
90
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
91
|
+
# @param id A unique integer value identifying this Agent.
|
|
92
|
+
# @param agent_request
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [Agent]
|
|
95
|
+
describe 'agents_agents_update test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
end
|
|
@@ -50,6 +50,7 @@ describe 'EndpointsApi' do
|
|
|
50
50
|
# unit tests for endpoints_agents_connectors_auth_ia_create
|
|
51
51
|
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [String] :login_hint
|
|
53
54
|
# @return [AgentAuthenticationResponse]
|
|
54
55
|
describe 'endpoints_agents_connectors_auth_ia_create test' do
|
|
55
56
|
it 'should work' do
|
|
@@ -26,6 +26,17 @@ describe 'RequestsApi' do
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
# unit tests for requests_grant_requests_agent_create
|
|
30
|
+
# Delegate access an agent's owner already holds to the agent, time-boxed. Unlike `create` this persists the request directly instead of returning a flow link -- an agent authenticates with an API token and has no browser to run a flow in, so no justification is ever collected. That is why the agent may only ask for what its owner already has: the owner's approval is then the whole decision, and no reviewer is asked to judge a request with nothing in it. The returned `fulfill_url` is what the agent hands to its owner so they can act on it.
|
|
31
|
+
# @param agent_grant_request_create_request
|
|
32
|
+
# @param [Hash] opts the optional parameters
|
|
33
|
+
# @return [AgentGrantRequestCreated]
|
|
34
|
+
describe 'requests_grant_requests_agent_create test' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
29
40
|
# unit tests for requests_grant_requests_create
|
|
30
41
|
# @param grant_request_create_request
|
|
31
42
|
# @param [Hash] opts the optional parameters
|
|
@@ -59,6 +70,7 @@ describe 'RequestsApi' do
|
|
|
59
70
|
|
|
60
71
|
# unit tests for requests_grant_requests_list
|
|
61
72
|
# @param [Hash] opts the optional parameters
|
|
73
|
+
# @option opts [Integer] :agent_owner
|
|
62
74
|
# @option opts [Integer] :created_by
|
|
63
75
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
64
76
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -75,6 +87,7 @@ describe 'RequestsApi' do
|
|
|
75
87
|
# unit tests for requests_grant_requests_pending_review_list
|
|
76
88
|
# List pending grant requests the current user is eligible to review.
|
|
77
89
|
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @option opts [Integer] :agent_owner
|
|
78
91
|
# @option opts [Integer] :created_by
|
|
79
92
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
80
93
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::AgentCreateRequest
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::AgentCreateRequest do
|
|
15
|
+
#let(:instance) { Authentik::Api::AgentCreateRequest.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of AgentCreateRequest' do
|
|
18
|
+
it 'should create an instance of AgentCreateRequest' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::AgentCreateRequest)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "parent"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "label"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "expiring"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "expires"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "policy_behavior"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::AgentCreated
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::AgentCreated do
|
|
15
|
+
#let(:instance) { Authentik::Api::AgentCreated.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of AgentCreated' do
|
|
18
|
+
it 'should create an instance of AgentCreated' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::AgentCreated)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "agent"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "token"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::AgentGrantRequestCreateRequest
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::AgentGrantRequestCreateRequest do
|
|
15
|
+
#let(:instance) { Authentik::Api::AgentGrantRequestCreateRequest.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of AgentGrantRequestCreateRequest' do
|
|
18
|
+
it 'should create an instance of AgentGrantRequestCreateRequest' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::AgentGrantRequestCreateRequest)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "pbms"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::AgentGrantRequestCreated
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::AgentGrantRequestCreated do
|
|
15
|
+
#let(:instance) { Authentik::Api::AgentGrantRequestCreated.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of AgentGrantRequestCreated' do
|
|
18
|
+
it 'should create an instance of AgentGrantRequestCreated' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::AgentGrantRequestCreated)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "grant_request"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "fulfill_url"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::AgentRequest
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::AgentRequest do
|
|
15
|
+
#let(:instance) { Authentik::Api::AgentRequest.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of AgentRequest' do
|
|
18
|
+
it 'should create an instance of AgentRequest' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::AgentRequest)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "username"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "is_active"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "last_login"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "email"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "attributes"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "expiring"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "expires"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::Agent
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::Agent do
|
|
15
|
+
#let(:instance) { Authentik::Api::Agent.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of Agent' do
|
|
18
|
+
it 'should create an instance of Agent' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::Agent)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "pk"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "username"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "name"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "is_active"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "last_login"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "email"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "attributes"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "uid"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "uuid"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "expiring"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "expires"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
describe 'test attribute "parent"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
describe 'test attribute "policy_behavior"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
describe 'test attribute "token_identifier"' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
end
|
|
@@ -51,6 +51,12 @@ describe Authentik::Api::GrantRequest do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
describe 'test attribute "agent_owner"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
54
60
|
describe 'test attribute "is_active"' do
|
|
55
61
|
it 'should work' do
|
|
56
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::PaginatedAgentList
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::PaginatedAgentList do
|
|
15
|
+
#let(:instance) { Authentik::Api::PaginatedAgentList.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of PaginatedAgentList' do
|
|
18
|
+
it 'should create an instance of PaginatedAgentList' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::PaginatedAgentList)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "pagination"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "results"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "autocomplete"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'spec_helper'
|
|
8
|
+
require 'json'
|
|
9
|
+
require 'date'
|
|
10
|
+
|
|
11
|
+
# Unit tests for Authentik::Api::PatchedAgentRequest
|
|
12
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
13
|
+
# Please update as you see appropriate
|
|
14
|
+
describe Authentik::Api::PatchedAgentRequest do
|
|
15
|
+
#let(:instance) { Authentik::Api::PatchedAgentRequest.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of PatchedAgentRequest' do
|
|
18
|
+
it 'should create an instance of PatchedAgentRequest' do
|
|
19
|
+
# uncomment below to test the instance creation
|
|
20
|
+
#expect(instance).to be_instance_of(Authentik::Api::PatchedAgentRequest)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'test attribute "username"' do
|
|
25
|
+
it 'should work' do
|
|
26
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "is_active"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "last_login"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "email"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "attributes"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "expiring"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "expires"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|