pulp_maven_client 0.1.0b2 → 0.1.0b3
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.md +22 -22
- data/docs/{ContentApi.md → ContentArtifactApi.md} +29 -23
- data/docs/{DistributionsApi.md → DistributionsMavenApi.md} +47 -41
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MavenRemote.md +3 -5
- data/docs/{RemotesApi.md → RemotesMavenApi.md} +47 -41
- data/git_push.sh +10 -7
- data/lib/pulp_maven_client/api/{content_api.rb → content_artifact_api.rb} +33 -27
- data/lib/pulp_maven_client/api/{distributions_api.rb → distributions_maven_api.rb} +56 -50
- data/lib/pulp_maven_client/api/{remotes_api.rb → remotes_maven_api.rb} +56 -50
- data/lib/pulp_maven_client/api_client.rb +77 -62
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +13 -21
- data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_maven_client/models/inline_response200.rb +11 -11
- data/lib/pulp_maven_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_maven_client/models/inline_response2002.rb +11 -11
- data/lib/pulp_maven_client/models/maven_artifact.rb +1 -1
- data/lib/pulp_maven_client/models/maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/maven_remote.rb +7 -17
- data/lib/pulp_maven_client/version.rb +2 -2
- data/lib/pulp_maven_client.rb +4 -4
- data/pulp_maven_client.gemspec +3 -9
- data/spec/api/{content_api_spec.rb → content_artifact_api_spec.rb} +17 -15
- data/spec/api/{distributions_api_spec.rb → distributions_maven_api_spec.rb} +23 -21
- data/spec/api/{remotes_api_spec.rb → remotes_maven_api_spec.rb} +23 -21
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/maven_artifact_spec.rb +1 -1
- data/spec/models/maven_distribution_spec.rb +1 -1
- data/spec/models/maven_remote_spec.rb +2 -8
- data/spec/spec_helper.rb +1 -1
- metadata +18 -145
- data/Gemfile.lock +0 -79
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpMavenClient
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.0b3'
|
15
15
|
end
|
data/lib/pulp_maven_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,9 +26,9 @@ require 'pulp_maven_client/models/maven_distribution'
|
|
26
26
|
require 'pulp_maven_client/models/maven_remote'
|
27
27
|
|
28
28
|
# APIs
|
29
|
-
require 'pulp_maven_client/api/
|
30
|
-
require 'pulp_maven_client/api/
|
31
|
-
require 'pulp_maven_client/api/
|
29
|
+
require 'pulp_maven_client/api/content_artifact_api'
|
30
|
+
require 'pulp_maven_client/api/distributions_maven_api'
|
31
|
+
require 'pulp_maven_client/api/remotes_maven_api'
|
32
32
|
|
33
33
|
module PulpMavenClient
|
34
34
|
class << self
|
data/pulp_maven_client.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: v3
|
9
9
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 4.
|
11
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -24,19 +24,13 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.homepage = "https://openapi-generator.tech"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPL-2.0'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency '
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.14.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
-
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
-
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
34
|
|
41
35
|
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
36
|
s.test_files = `find spec/*`.split("\n")
|
@@ -6,45 +6,45 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpMavenClient::
|
16
|
+
# Unit tests for PulpMavenClient::ContentArtifactApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'ContentArtifactApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpMavenClient::
|
22
|
+
@api_instance = PulpMavenClient::ContentArtifactApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpMavenClient::
|
29
|
+
describe 'test an instance of ContentArtifactApi' do
|
30
|
+
it 'should create an instance of ContentArtifactApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpMavenClient::ContentArtifactApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create a maven artifact
|
37
37
|
# A ViewSet for MavenArtifact.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [MavenArtifact]
|
41
|
-
describe '
|
41
|
+
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
# unit tests for
|
47
|
+
# unit tests for list
|
48
48
|
# List maven artifacts
|
49
49
|
# A ViewSet for MavenArtifact.
|
50
50
|
# @param [Hash] opts the optional parameters
|
@@ -55,22 +55,24 @@ describe 'ContentApi' do
|
|
55
55
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
56
56
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
57
57
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
58
|
-
# @option opts [Integer] :
|
59
|
-
# @option opts [Integer] :
|
58
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
59
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
60
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
60
61
|
# @return [InlineResponse200]
|
61
|
-
describe '
|
62
|
+
describe 'list test' do
|
62
63
|
it 'should work' do
|
63
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
65
|
end
|
65
66
|
end
|
66
67
|
|
67
|
-
# unit tests for
|
68
|
+
# unit tests for read
|
68
69
|
# Inspect a maven artifact
|
69
70
|
# A ViewSet for MavenArtifact.
|
70
71
|
# @param maven_artifact_href URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
|
71
72
|
# @param [Hash] opts the optional parameters
|
73
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
72
74
|
# @return [MavenArtifact]
|
73
|
-
describe '
|
75
|
+
describe 'read test' do
|
74
76
|
it 'should work' do
|
75
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
78
|
end
|
@@ -6,57 +6,57 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpMavenClient::
|
16
|
+
# Unit tests for PulpMavenClient::DistributionsMavenApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'DistributionsMavenApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpMavenClient::
|
22
|
+
@api_instance = PulpMavenClient::DistributionsMavenApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpMavenClient::
|
29
|
+
describe 'test an instance of DistributionsMavenApi' do
|
30
|
+
it 'should create an instance of DistributionsMavenApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpMavenClient::DistributionsMavenApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create a maven distribution
|
37
37
|
# Trigger an asynchronous create task
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [AsyncOperationResponse]
|
41
|
-
describe '
|
41
|
+
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
# unit tests for
|
47
|
+
# unit tests for delete
|
48
48
|
# Delete a maven distribution
|
49
49
|
# Trigger an asynchronous delete task
|
50
50
|
# @param maven_distribution_href URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [AsyncOperationResponse]
|
53
|
-
describe '
|
53
|
+
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
# unit tests for
|
59
|
+
# unit tests for list
|
60
60
|
# List maven distributions
|
61
61
|
# ViewSet for Maven Distributions.
|
62
62
|
# @param [Hash] opts the optional parameters
|
@@ -66,48 +66,50 @@ describe 'DistributionsApi' do
|
|
66
66
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
67
67
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
68
68
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
69
|
-
# @option opts [Integer] :
|
70
|
-
# @option opts [Integer] :
|
69
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
70
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
71
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
71
72
|
# @return [InlineResponse2001]
|
72
|
-
describe '
|
73
|
+
describe 'list test' do
|
73
74
|
it 'should work' do
|
74
75
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
78
|
-
# unit tests for
|
79
|
+
# unit tests for partial_update
|
79
80
|
# Partially update a maven distribution
|
80
81
|
# Trigger an asynchronous partial update task
|
81
82
|
# @param maven_distribution_href URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
82
83
|
# @param data
|
83
84
|
# @param [Hash] opts the optional parameters
|
84
85
|
# @return [AsyncOperationResponse]
|
85
|
-
describe '
|
86
|
+
describe 'partial_update test' do
|
86
87
|
it 'should work' do
|
87
88
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
89
|
end
|
89
90
|
end
|
90
91
|
|
91
|
-
# unit tests for
|
92
|
+
# unit tests for read
|
92
93
|
# Inspect a maven distribution
|
93
94
|
# ViewSet for Maven Distributions.
|
94
95
|
# @param maven_distribution_href URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
95
96
|
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
96
98
|
# @return [MavenDistribution]
|
97
|
-
describe '
|
99
|
+
describe 'read test' do
|
98
100
|
it 'should work' do
|
99
101
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
102
|
end
|
101
103
|
end
|
102
104
|
|
103
|
-
# unit tests for
|
105
|
+
# unit tests for update
|
104
106
|
# Update a maven distribution
|
105
107
|
# Trigger an asynchronous update task
|
106
108
|
# @param maven_distribution_href URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
107
109
|
# @param data
|
108
110
|
# @param [Hash] opts the optional parameters
|
109
111
|
# @return [AsyncOperationResponse]
|
110
|
-
describe '
|
112
|
+
describe 'update test' do
|
111
113
|
it 'should work' do
|
112
114
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
115
|
end
|
@@ -6,57 +6,57 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpMavenClient::
|
16
|
+
# Unit tests for PulpMavenClient::RemotesMavenApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'RemotesMavenApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpMavenClient::
|
22
|
+
@api_instance = PulpMavenClient::RemotesMavenApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpMavenClient::
|
29
|
+
describe 'test an instance of RemotesMavenApi' do
|
30
|
+
it 'should create an instance of RemotesMavenApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpMavenClient::RemotesMavenApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for create
|
36
36
|
# Create a maven remote
|
37
37
|
# A ViewSet for MavenRemote.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [MavenRemote]
|
41
|
-
describe '
|
41
|
+
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
# unit tests for
|
47
|
+
# unit tests for delete
|
48
48
|
# Delete a maven remote
|
49
49
|
# Trigger an asynchronous delete task
|
50
50
|
# @param maven_remote_href URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [AsyncOperationResponse]
|
53
|
-
describe '
|
53
|
+
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
# unit tests for
|
59
|
+
# unit tests for list
|
60
60
|
# List maven remotes
|
61
61
|
# A ViewSet for MavenRemote.
|
62
62
|
# @param [Hash] opts the optional parameters
|
@@ -68,48 +68,50 @@ describe 'RemotesApi' do
|
|
68
68
|
# @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
|
69
69
|
# @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
|
70
70
|
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
71
|
-
# @option opts [Integer] :
|
72
|
-
# @option opts [Integer] :
|
71
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
72
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
73
74
|
# @return [InlineResponse2002]
|
74
|
-
describe '
|
75
|
+
describe 'list test' do
|
75
76
|
it 'should work' do
|
76
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
78
|
end
|
78
79
|
end
|
79
80
|
|
80
|
-
# unit tests for
|
81
|
+
# unit tests for partial_update
|
81
82
|
# Partially update a maven remote
|
82
83
|
# Trigger an asynchronous partial update task
|
83
84
|
# @param maven_remote_href URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
84
85
|
# @param data
|
85
86
|
# @param [Hash] opts the optional parameters
|
86
87
|
# @return [AsyncOperationResponse]
|
87
|
-
describe '
|
88
|
+
describe 'partial_update test' do
|
88
89
|
it 'should work' do
|
89
90
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
91
|
end
|
91
92
|
end
|
92
93
|
|
93
|
-
# unit tests for
|
94
|
+
# unit tests for read
|
94
95
|
# Inspect a maven remote
|
95
96
|
# A ViewSet for MavenRemote.
|
96
97
|
# @param maven_remote_href URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
97
98
|
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
98
100
|
# @return [MavenRemote]
|
99
|
-
describe '
|
101
|
+
describe 'read test' do
|
100
102
|
it 'should work' do
|
101
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
104
|
end
|
103
105
|
end
|
104
106
|
|
105
|
-
# unit tests for
|
107
|
+
# unit tests for update
|
106
108
|
# Update a maven remote
|
107
109
|
# Trigger an asynchronous update task
|
108
110
|
# @param maven_remote_href URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
109
111
|
# @param data
|
110
112
|
# @param [Hash] opts the optional parameters
|
111
113
|
# @return [AsyncOperationResponse]
|
112
|
-
describe '
|
114
|
+
describe 'update test' do
|
113
115
|
it 'should work' do
|
114
116
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
117
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,44 +51,6 @@ describe PulpMavenClient::ApiClient do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'params_encoding in #build_request' do
|
55
|
-
let(:config) { PulpMavenClient::Configuration.new }
|
56
|
-
let(:api_client) { PulpMavenClient::ApiClient.new(config) }
|
57
|
-
|
58
|
-
it 'defaults to nil' do
|
59
|
-
expect(PulpMavenClient::Configuration.default.params_encoding).to eq(nil)
|
60
|
-
expect(config.params_encoding).to eq(nil)
|
61
|
-
|
62
|
-
request = api_client.build_request(:get, '/test')
|
63
|
-
expect(request.options[:params_encoding]).to eq(nil)
|
64
|
-
end
|
65
|
-
|
66
|
-
it 'can be customized' do
|
67
|
-
config.params_encoding = :multi
|
68
|
-
request = api_client.build_request(:get, '/test')
|
69
|
-
expect(request.options[:params_encoding]).to eq(:multi)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
describe 'timeout in #build_request' do
|
74
|
-
let(:config) { PulpMavenClient::Configuration.new }
|
75
|
-
let(:api_client) { PulpMavenClient::ApiClient.new(config) }
|
76
|
-
|
77
|
-
it 'defaults to 0' do
|
78
|
-
expect(PulpMavenClient::Configuration.default.timeout).to eq(0)
|
79
|
-
expect(config.timeout).to eq(0)
|
80
|
-
|
81
|
-
request = api_client.build_request(:get, '/test')
|
82
|
-
expect(request.options[:timeout]).to eq(0)
|
83
|
-
end
|
84
|
-
|
85
|
-
it 'can be customized' do
|
86
|
-
config.timeout = 100
|
87
|
-
request = api_client.build_request(:get, '/test')
|
88
|
-
expect(request.options[:timeout]).to eq(100)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
54
|
describe '#deserialize' do
|
93
55
|
it "handles Array<Integer>" do
|
94
56
|
api_client = PulpMavenClient::ApiClient.new
|
data/spec/configuration_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,19 +32,19 @@ describe 'InlineResponse2001' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpMavenClient::InlineResponse2001)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "count"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "_next"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "previous"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,19 +32,19 @@ describe 'InlineResponse2002' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpMavenClient::InlineResponse2002)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "count"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "_next"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "previous"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,19 +32,19 @@ describe 'InlineResponse200' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpMavenClient::InlineResponse200)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "count"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "_next"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "previous"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -62,12 +62,6 @@ describe 'MavenRemote' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "validate"' 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
65
|
describe 'test attribute "ssl_ca_certificate"' do
|
72
66
|
it 'should work' do
|
73
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -125,7 +119,7 @@ describe 'MavenRemote' do
|
|
125
119
|
describe 'test attribute "policy"' do
|
126
120
|
it 'should work' do
|
127
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["immediate", "
|
122
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
|
129
123
|
# validator.allowable_values.each do |value|
|
130
124
|
# expect { @instance.policy = value }.not_to raise_error
|
131
125
|
# end
|