pulp_maven_client 0.8.2 → 0.8.3

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.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -6
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContentArtifactApi.md +111 -61
  5. data/docs/ContentSummaryResponse.md +12 -11
  6. data/docs/DistributionsMavenApi.md +265 -130
  7. data/docs/MavenMavenArtifact.md +12 -11
  8. data/docs/MavenMavenArtifactResponse.md +24 -23
  9. data/docs/MavenMavenDistribution.md +20 -19
  10. data/docs/MavenMavenDistributionResponse.md +32 -31
  11. data/docs/MavenMavenRemote.md +48 -47
  12. data/docs/MavenMavenRemoteResponse.md +48 -47
  13. data/docs/MavenMavenRemoteResponseHiddenFieldsInner.md +20 -0
  14. data/docs/MavenMavenRepository.md +16 -15
  15. data/docs/MavenMavenRepositoryResponse.md +28 -27
  16. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  17. data/docs/PaginatedmavenMavenArtifactResponseList.md +14 -13
  18. data/docs/PaginatedmavenMavenDistributionResponseList.md +14 -13
  19. data/docs/PaginatedmavenMavenRemoteResponseList.md +14 -13
  20. data/docs/PaginatedmavenMavenRepositoryResponseList.md +14 -13
  21. data/docs/PatchedmavenMavenDistribution.md +20 -19
  22. data/docs/PatchedmavenMavenRemote.md +48 -47
  23. data/docs/PatchedmavenMavenRepository.md +16 -15
  24. data/docs/PolicyEnum.md +4 -5
  25. data/docs/PulpMavenApi.md +60 -25
  26. data/docs/RemotesMavenApi.md +269 -132
  27. data/docs/Repair.md +8 -7
  28. data/docs/RepositoriesMavenApi.md +296 -144
  29. data/docs/RepositoriesMavenVersionsApi.md +152 -82
  30. data/docs/RepositoryAddCachedContent.md +8 -7
  31. data/docs/RepositoryVersionResponse.md +22 -21
  32. data/docs/SetLabel.md +10 -9
  33. data/docs/SetLabelResponse.md +10 -9
  34. data/docs/UnsetLabel.md +8 -7
  35. data/docs/UnsetLabelResponse.md +10 -9
  36. data/lib/pulp_maven_client/api/content_artifact_api.rb +20 -14
  37. data/lib/pulp_maven_client/api/distributions_maven_api.rb +61 -38
  38. data/lib/pulp_maven_client/api/pulp_maven_api.rb +9 -7
  39. data/lib/pulp_maven_client/api/remotes_maven_api.rb +76 -50
  40. data/lib/pulp_maven_client/api/repositories_maven_api.rb +70 -43
  41. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +40 -30
  42. data/lib/pulp_maven_client/api_client.rb +137 -102
  43. data/lib/pulp_maven_client/api_error.rb +2 -1
  44. data/lib/pulp_maven_client/configuration.rb +162 -21
  45. data/lib/pulp_maven_client/models/async_operation_response.rb +32 -22
  46. data/lib/pulp_maven_client/models/content_summary_response.rb +36 -22
  47. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +34 -22
  48. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +34 -24
  49. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +34 -22
  50. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +36 -24
  51. data/lib/pulp_maven_client/models/maven_maven_remote.rb +57 -38
  52. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +60 -41
  53. data/lib/pulp_maven_client/models/{maven_maven_remote_response_hidden_fields.rb → maven_maven_remote_response_hidden_fields_inner.rb} +37 -25
  54. data/lib/pulp_maven_client/models/maven_maven_repository.rb +32 -37
  55. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +34 -39
  56. data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +34 -24
  57. data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +34 -24
  58. data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +34 -24
  59. data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +34 -24
  60. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +34 -24
  61. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +40 -24
  62. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +63 -40
  63. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +35 -38
  64. data/lib/pulp_maven_client/models/policy_enum.rb +8 -5
  65. data/lib/pulp_maven_client/models/repair.rb +30 -22
  66. data/lib/pulp_maven_client/models/repository_add_cached_content.rb +30 -22
  67. data/lib/pulp_maven_client/models/repository_version_response.rb +32 -24
  68. data/lib/pulp_maven_client/models/set_label.rb +34 -22
  69. data/lib/pulp_maven_client/models/set_label_response.rb +34 -22
  70. data/lib/pulp_maven_client/models/unset_label.rb +32 -22
  71. data/lib/pulp_maven_client/models/unset_label_response.rb +32 -22
  72. data/lib/pulp_maven_client/version.rb +2 -2
  73. data/lib/pulp_maven_client.rb +2 -2
  74. data/pulp_maven_client.gemspec +9 -6
  75. data/spec/api/content_artifact_api_spec.rb +4 -4
  76. data/spec/api/distributions_maven_api_spec.rb +9 -9
  77. data/spec/api/pulp_maven_api_spec.rb +3 -3
  78. data/spec/api/remotes_maven_api_spec.rb +16 -15
  79. data/spec/api/repositories_maven_api_spec.rb +10 -10
  80. data/spec/api/repositories_maven_versions_api_spec.rb +12 -11
  81. data/spec/models/async_operation_response_spec.rb +7 -12
  82. data/spec/models/content_summary_response_spec.rb +9 -14
  83. data/spec/models/maven_maven_artifact_response_spec.rb +15 -20
  84. data/spec/models/maven_maven_artifact_spec.rb +9 -14
  85. data/spec/models/maven_maven_distribution_response_spec.rb +19 -24
  86. data/spec/models/maven_maven_distribution_spec.rb +13 -18
  87. data/spec/models/{maven_maven_remote_response_hidden_fields_spec.rb → maven_maven_remote_response_hidden_fields_inner_spec.rb} +11 -16
  88. data/spec/models/maven_maven_remote_response_spec.rb +27 -32
  89. data/spec/models/maven_maven_remote_spec.rb +27 -32
  90. data/spec/models/maven_maven_repository_response_spec.rb +17 -22
  91. data/spec/models/maven_maven_repository_spec.rb +11 -16
  92. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  93. data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +10 -15
  94. data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +10 -15
  95. data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +10 -15
  96. data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +10 -15
  97. data/spec/models/patchedmaven_maven_distribution_spec.rb +13 -18
  98. data/spec/models/patchedmaven_maven_remote_spec.rb +27 -32
  99. data/spec/models/patchedmaven_maven_repository_spec.rb +11 -16
  100. data/spec/models/policy_enum_spec.rb +6 -11
  101. data/spec/models/repair_spec.rb +7 -12
  102. data/spec/models/repository_add_cached_content_spec.rb +7 -12
  103. data/spec/models/repository_version_response_spec.rb +14 -19
  104. data/spec/models/set_label_response_spec.rb +8 -13
  105. data/spec/models/set_label_spec.rb +8 -13
  106. data/spec/models/unset_label_response_spec.rb +8 -13
  107. data/spec/models/unset_label_spec.rb +7 -12
  108. data/spec/spec_helper.rb +1 -1
  109. metadata +67 -43
  110. data/docs/MavenMavenRemoteResponseHiddenFields.md +0 -19
  111. data/spec/api_client_spec.rb +0 -188
  112. data/spec/configuration_spec.rb +0 -42
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -17,30 +17,25 @@ require 'date'
17
17
  # Unit tests for PulpMavenClient::SetLabel
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'SetLabel' do
21
- before do
22
- # run before each test
23
- @instance = PulpMavenClient::SetLabel.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
20
+ describe PulpMavenClient::SetLabel do
21
+ let(:instance) { PulpMavenClient::SetLabel.new }
29
22
 
30
23
  describe 'test an instance of SetLabel' do
31
24
  it 'should create an instance of SetLabel' do
32
- expect(@instance).to be_instance_of(PulpMavenClient::SetLabel)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::SetLabel)
33
27
  end
34
28
  end
29
+
35
30
  describe 'test attribute "key"' do
36
31
  it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
38
33
  end
39
34
  end
40
35
 
41
36
  describe 'test attribute "value"' do
42
37
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
39
  end
45
40
  end
46
41
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -17,30 +17,25 @@ require 'date'
17
17
  # Unit tests for PulpMavenClient::UnsetLabelResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'UnsetLabelResponse' do
21
- before do
22
- # run before each test
23
- @instance = PulpMavenClient::UnsetLabelResponse.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
20
+ describe PulpMavenClient::UnsetLabelResponse do
21
+ let(:instance) { PulpMavenClient::UnsetLabelResponse.new }
29
22
 
30
23
  describe 'test an instance of UnsetLabelResponse' do
31
24
  it 'should create an instance of UnsetLabelResponse' do
32
- expect(@instance).to be_instance_of(PulpMavenClient::UnsetLabelResponse)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::UnsetLabelResponse)
33
27
  end
34
28
  end
29
+
35
30
  describe 'test attribute "key"' do
36
31
  it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
38
33
  end
39
34
  end
40
35
 
41
36
  describe 'test attribute "value"' do
42
37
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
39
  end
45
40
  end
46
41
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -17,24 +17,19 @@ require 'date'
17
17
  # Unit tests for PulpMavenClient::UnsetLabel
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'UnsetLabel' do
21
- before do
22
- # run before each test
23
- @instance = PulpMavenClient::UnsetLabel.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
20
+ describe PulpMavenClient::UnsetLabel do
21
+ let(:instance) { PulpMavenClient::UnsetLabel.new }
29
22
 
30
23
  describe 'test an instance of UnsetLabel' do
31
24
  it 'should create an instance of UnsetLabel' do
32
- expect(@instance).to be_instance_of(PulpMavenClient::UnsetLabel)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::UnsetLabel)
33
27
  end
34
28
  end
29
+
35
30
  describe 'test attribute "key"' do
36
31
  it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
38
33
  end
39
34
  end
40
35
 
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_maven_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-06 00:00:00.000000000 Z
11
+ date: 2025-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday-net_http
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '2.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.1'
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: faraday
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -19,7 +39,7 @@ dependencies:
19
39
  version: 1.0.1
20
40
  - - "<"
21
41
  - !ruby/object:Gem::Version
22
- version: '2.0'
42
+ version: '2.9'
23
43
  type: :runtime
24
44
  prerelease: false
25
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,27 +49,35 @@ dependencies:
29
49
  version: 1.0.1
30
50
  - - "<"
31
51
  - !ruby/object:Gem::Version
32
- version: '2.0'
52
+ version: '2.9'
33
53
  - !ruby/object:Gem::Dependency
34
- name: json
54
+ name: faraday-multipart
35
55
  requirement: !ruby/object:Gem::Requirement
36
56
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
57
  - - ">="
41
58
  - !ruby/object:Gem::Version
42
- version: 2.1.0
59
+ version: '0'
43
60
  type: :runtime
44
61
  prerelease: false
45
62
  version_requirements: !ruby/object:Gem::Requirement
46
63
  requirements:
47
- - - "~>"
64
+ - - ">="
48
65
  - !ruby/object:Gem::Version
49
- version: '2.1'
66
+ version: '0'
67
+ - !ruby/object:Gem::Dependency
68
+ name: marcel
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
50
71
  - - ">="
51
72
  - !ruby/object:Gem::Version
52
- version: 2.1.0
73
+ version: '0'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
53
81
  - !ruby/object:Gem::Dependency
54
82
  name: rspec
55
83
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +118,7 @@ files:
90
118
  - docs/MavenMavenDistributionResponse.md
91
119
  - docs/MavenMavenRemote.md
92
120
  - docs/MavenMavenRemoteResponse.md
93
- - docs/MavenMavenRemoteResponseHiddenFields.md
121
+ - docs/MavenMavenRemoteResponseHiddenFieldsInner.md
94
122
  - docs/MavenMavenRepository.md
95
123
  - docs/MavenMavenRepositoryResponse.md
96
124
  - docs/PaginatedRepositoryVersionResponseList.md
@@ -131,7 +159,7 @@ files:
131
159
  - lib/pulp_maven_client/models/maven_maven_distribution_response.rb
132
160
  - lib/pulp_maven_client/models/maven_maven_remote.rb
133
161
  - lib/pulp_maven_client/models/maven_maven_remote_response.rb
134
- - lib/pulp_maven_client/models/maven_maven_remote_response_hidden_fields.rb
162
+ - lib/pulp_maven_client/models/maven_maven_remote_response_hidden_fields_inner.rb
135
163
  - lib/pulp_maven_client/models/maven_maven_repository.rb
136
164
  - lib/pulp_maven_client/models/maven_maven_repository_response.rb
137
165
  - lib/pulp_maven_client/models/paginated_repository_version_response_list.rb
@@ -158,15 +186,13 @@ files:
158
186
  - spec/api/remotes_maven_api_spec.rb
159
187
  - spec/api/repositories_maven_api_spec.rb
160
188
  - spec/api/repositories_maven_versions_api_spec.rb
161
- - spec/api_client_spec.rb
162
- - spec/configuration_spec.rb
163
189
  - spec/models/async_operation_response_spec.rb
164
190
  - spec/models/content_summary_response_spec.rb
165
191
  - spec/models/maven_maven_artifact_response_spec.rb
166
192
  - spec/models/maven_maven_artifact_spec.rb
167
193
  - spec/models/maven_maven_distribution_response_spec.rb
168
194
  - spec/models/maven_maven_distribution_spec.rb
169
- - spec/models/maven_maven_remote_response_hidden_fields_spec.rb
195
+ - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
170
196
  - spec/models/maven_maven_remote_response_spec.rb
171
197
  - spec/models/maven_maven_remote_spec.rb
172
198
  - spec/models/maven_maven_repository_response_spec.rb
@@ -200,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
226
  requirements:
201
227
  - - ">="
202
228
  - !ruby/object:Gem::Version
203
- version: '1.9'
229
+ version: '2.7'
204
230
  required_rubygems_version: !ruby/object:Gem::Requirement
205
231
  requirements:
206
232
  - - ">="
@@ -212,39 +238,37 @@ signing_key:
212
238
  specification_version: 4
213
239
  summary: Pulp 3 API Ruby Gem
214
240
  test_files:
215
- - spec/api/remotes_maven_api_spec.rb
216
- - spec/api/distributions_maven_api_spec.rb
217
- - spec/api/content_artifact_api_spec.rb
218
241
  - spec/api/repositories_maven_versions_api_spec.rb
219
- - spec/api/pulp_maven_api_spec.rb
242
+ - spec/api/remotes_maven_api_spec.rb
220
243
  - spec/api/repositories_maven_api_spec.rb
221
- - spec/api_client_spec.rb
222
- - spec/configuration_spec.rb
223
- - spec/models/repository_version_response_spec.rb
224
- - spec/models/patchedmaven_maven_repository_spec.rb
225
- - spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
226
- - spec/models/unset_label_response_spec.rb
244
+ - spec/api/pulp_maven_api_spec.rb
245
+ - spec/api/content_artifact_api_spec.rb
246
+ - spec/api/distributions_maven_api_spec.rb
247
+ - spec/models/maven_maven_artifact_response_spec.rb
248
+ - spec/models/repair_spec.rb
249
+ - spec/models/maven_maven_remote_response_spec.rb
227
250
  - spec/models/set_label_spec.rb
251
+ - spec/models/policy_enum_spec.rb
228
252
  - spec/models/maven_maven_remote_spec.rb
229
- - spec/models/maven_maven_repository_spec.rb
230
- - spec/models/maven_maven_distribution_response_spec.rb
231
- - spec/models/maven_maven_distribution_spec.rb
232
253
  - spec/models/paginatedmaven_maven_repository_response_list_spec.rb
254
+ - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
255
+ - spec/models/maven_maven_distribution_spec.rb
256
+ - spec/models/patchedmaven_maven_distribution_spec.rb
257
+ - spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
258
+ - spec/models/patchedmaven_maven_repository_spec.rb
233
259
  - spec/models/paginatedmaven_maven_artifact_response_list_spec.rb
234
- - spec/models/repair_spec.rb
235
- - spec/models/maven_maven_repository_response_spec.rb
236
- - spec/models/maven_maven_remote_response_hidden_fields_spec.rb
237
- - spec/models/content_summary_response_spec.rb
238
- - spec/models/paginatedmaven_maven_remote_response_list_spec.rb
239
- - spec/models/maven_maven_artifact_response_spec.rb
240
260
  - spec/models/repository_add_cached_content_spec.rb
241
- - spec/models/set_label_response_spec.rb
261
+ - spec/models/unset_label_spec.rb
242
262
  - spec/models/patchedmaven_maven_remote_spec.rb
243
- - spec/models/policy_enum_spec.rb
263
+ - spec/models/unset_label_response_spec.rb
264
+ - spec/models/maven_maven_repository_spec.rb
265
+ - spec/models/repository_version_response_spec.rb
266
+ - spec/models/maven_maven_distribution_response_spec.rb
267
+ - spec/models/paginated_repository_version_response_list_spec.rb
268
+ - spec/models/maven_maven_repository_response_spec.rb
269
+ - spec/models/set_label_response_spec.rb
244
270
  - spec/models/maven_maven_artifact_spec.rb
245
- - spec/models/maven_maven_remote_response_spec.rb
271
+ - spec/models/paginatedmaven_maven_remote_response_list_spec.rb
272
+ - spec/models/content_summary_response_spec.rb
246
273
  - spec/models/async_operation_response_spec.rb
247
- - spec/models/paginated_repository_version_response_list_spec.rb
248
- - spec/models/patchedmaven_maven_distribution_spec.rb
249
- - spec/models/unset_label_spec.rb
250
274
  - spec/spec_helper.rb
@@ -1,19 +0,0 @@
1
- # PulpMavenClient::MavenMavenRemoteResponseHiddenFields
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | |
8
- **is_set** | **Boolean** | |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'PulpMavenClient'
14
-
15
- instance = PulpMavenClient::MavenMavenRemoteResponseHiddenFields.new(name: null,
16
- is_set: null)
17
- ```
18
-
19
-
@@ -1,188 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
-
15
- describe PulpMavenClient::ApiClient do
16
- context 'initialization' do
17
- context 'URL stuff' do
18
- context 'host' do
19
- it 'removes http from host' do
20
- PulpMavenClient.configure { |c| c.host = 'http://example.com' }
21
- expect(PulpMavenClient::Configuration.default.host).to eq('example.com')
22
- end
23
-
24
- it 'removes https from host' do
25
- PulpMavenClient.configure { |c| c.host = 'https://wookiee.com' }
26
- expect(PulpMavenClient::ApiClient.default.config.host).to eq('wookiee.com')
27
- end
28
-
29
- it 'removes trailing path from host' do
30
- PulpMavenClient.configure { |c| c.host = 'hobo.com/v4' }
31
- expect(PulpMavenClient::Configuration.default.host).to eq('hobo.com')
32
- end
33
- end
34
-
35
- context 'base_path' do
36
- it "prepends a slash to base_path" do
37
- PulpMavenClient.configure { |c| c.base_path = 'v4/dog' }
38
- expect(PulpMavenClient::Configuration.default.base_path).to eq('/v4/dog')
39
- end
40
-
41
- it "doesn't prepend a slash if one is already there" do
42
- PulpMavenClient.configure { |c| c.base_path = '/v4/dog' }
43
- expect(PulpMavenClient::Configuration.default.base_path).to eq('/v4/dog')
44
- end
45
-
46
- it "ends up as a blank string if nil" do
47
- PulpMavenClient.configure { |c| c.base_path = nil }
48
- expect(PulpMavenClient::Configuration.default.base_path).to eq('')
49
- end
50
- end
51
- end
52
- end
53
-
54
- describe '#deserialize' do
55
- it "handles Array<Integer>" do
56
- api_client = PulpMavenClient::ApiClient.new
57
- headers = { 'Content-Type' => 'application/json' }
58
- response = double('response', headers: headers, body: '[12, 34]')
59
- data = api_client.deserialize(response, 'Array<Integer>')
60
- expect(data).to be_instance_of(Array)
61
- expect(data).to eq([12, 34])
62
- end
63
-
64
- it 'handles Array<Array<Integer>>' do
65
- api_client = PulpMavenClient::ApiClient.new
66
- headers = { 'Content-Type' => 'application/json' }
67
- response = double('response', headers: headers, body: '[[12, 34], [56]]')
68
- data = api_client.deserialize(response, 'Array<Array<Integer>>')
69
- expect(data).to be_instance_of(Array)
70
- expect(data).to eq([[12, 34], [56]])
71
- end
72
-
73
- it 'handles Hash<String, String>' do
74
- api_client = PulpMavenClient::ApiClient.new
75
- headers = { 'Content-Type' => 'application/json' }
76
- response = double('response', headers: headers, body: '{"message": "Hello"}')
77
- data = api_client.deserialize(response, 'Hash<String, String>')
78
- expect(data).to be_instance_of(Hash)
79
- expect(data).to eq(:message => 'Hello')
80
- end
81
- end
82
-
83
- describe "#object_to_hash" do
84
- it 'ignores nils and includes empty arrays' do
85
- # uncomment below to test object_to_hash for model
86
- # api_client = PulpMavenClient::ApiClient.new
87
- # _model = PulpMavenClient::ModelName.new
88
- # update the model attribute below
89
- # _model.id = 1
90
- # update the expected value (hash) below
91
- # expected = {id: 1, name: '', tags: []}
92
- # expect(api_client.object_to_hash(_model)).to eq(expected)
93
- end
94
- end
95
-
96
- describe '#build_collection_param' do
97
- let(:param) { ['aa', 'bb', 'cc'] }
98
- let(:api_client) { PulpMavenClient::ApiClient.new }
99
-
100
- it 'works for csv' do
101
- expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
102
- end
103
-
104
- it 'works for ssv' do
105
- expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
106
- end
107
-
108
- it 'works for tsv' do
109
- expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
110
- end
111
-
112
- it 'works for pipes' do
113
- expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
114
- end
115
-
116
- it 'works for multi' do
117
- expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
118
- end
119
-
120
- it 'fails for invalid collection format' do
121
- expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
122
- end
123
- end
124
-
125
- describe '#json_mime?' do
126
- let(:api_client) { PulpMavenClient::ApiClient.new }
127
-
128
- it 'works' do
129
- expect(api_client.json_mime?(nil)).to eq false
130
- expect(api_client.json_mime?('')).to eq false
131
-
132
- expect(api_client.json_mime?('application/json')).to eq true
133
- expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
134
- expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
135
-
136
- expect(api_client.json_mime?('application/xml')).to eq false
137
- expect(api_client.json_mime?('text/plain')).to eq false
138
- expect(api_client.json_mime?('application/jsonp')).to eq false
139
- end
140
- end
141
-
142
- describe '#select_header_accept' do
143
- let(:api_client) { PulpMavenClient::ApiClient.new }
144
-
145
- it 'works' do
146
- expect(api_client.select_header_accept(nil)).to be_nil
147
- expect(api_client.select_header_accept([])).to be_nil
148
-
149
- expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
150
- expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
151
- expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
152
-
153
- expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
154
- expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
155
- end
156
- end
157
-
158
- describe '#select_header_content_type' do
159
- let(:api_client) { PulpMavenClient::ApiClient.new }
160
-
161
- it 'works' do
162
- expect(api_client.select_header_content_type(nil)).to eq('application/json')
163
- expect(api_client.select_header_content_type([])).to eq('application/json')
164
-
165
- expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
166
- expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
167
- expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
168
- expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
169
- expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
170
- end
171
- end
172
-
173
- describe '#sanitize_filename' do
174
- let(:api_client) { PulpMavenClient::ApiClient.new }
175
-
176
- it 'works' do
177
- expect(api_client.sanitize_filename('sun')).to eq('sun')
178
- expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
179
- expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
180
- expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
181
- expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
182
- expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
183
- expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
184
- expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
185
- expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
186
- end
187
- end
188
- end
@@ -1,42 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
-
15
- describe PulpMavenClient::Configuration do
16
- let(:config) { PulpMavenClient::Configuration.default }
17
-
18
- before(:each) do
19
- # uncomment below to setup host and base_path
20
- # require 'URI'
21
- # uri = URI.parse("http://localhost:24817")
22
- # PulpMavenClient.configure do |c|
23
- # c.host = uri.host
24
- # c.base_path = uri.path
25
- # end
26
- end
27
-
28
- describe '#base_url' do
29
- it 'should have the default value' do
30
- # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://localhost:24817")
32
- end
33
-
34
- it 'should remove trailing slashes' do
35
- [nil, '', '/', '//'].each do |base_path|
36
- config.base_path = base_path
37
- # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://localhost:24817")
39
- end
40
- end
41
- end
42
- end