pulp_ansible_client 0.2.0b1 → 0.2.0b2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -12
- data/docs/AnsibleDistribution.md +3 -3
- data/docs/CollectionRemote.md +1 -3
- data/docs/CollectionVersion.md +63 -0
- data/docs/ContentCollectionsApi.md +16 -14
- data/docs/{GalaxyCollection.md → GalaxyCollectionVersion.md} +2 -2
- data/docs/InlineResponse200.md +4 -4
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +4 -4
- data/docs/InlineResponse2004.md +4 -4
- data/docs/InlineResponse2005.md +4 -4
- data/docs/InlineResponse2006.md +4 -4
- data/docs/InlineResponse2007.md +4 -4
- data/docs/InlineResponse2008.md +23 -0
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +64 -6
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +2 -2
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +2 -2
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +6 -6
- data/docs/PulpAnsibleTagsApi.md +66 -0
- data/docs/RemotesAnsibleApi.md +2 -2
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/Role.md +4 -4
- data/docs/Tag.md +17 -0
- data/docs/TagNested.md +17 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -2
- data/lib/pulp_ansible_client/api/content_collections_api.rb +19 -16
- data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +79 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +14 -14
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +84 -0
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
- data/lib/pulp_ansible_client/api_client.rb +77 -62
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +13 -21
- data/lib/pulp_ansible_client/models/ansible_distribution.rb +15 -30
- data/lib/pulp_ansible_client/models/ansible_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_remote.rb +5 -38
- data/lib/pulp_ansible_client/models/{collection.rb → collection_version.rb} +314 -43
- data/lib/pulp_ansible_client/models/{galaxy_collection.rb → galaxy_collection_version.rb} +4 -4
- data/lib/pulp_ansible_client/models/galaxy_role.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response200.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_ansible_client/models/inline_response2002.rb +11 -11
- data/lib/pulp_ansible_client/models/inline_response2003.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2004.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2005.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2006.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2007.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2008.rb +235 -0
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/role.rb +18 -18
- data/lib/pulp_ansible_client/models/tag.rb +211 -0
- data/lib/pulp_ansible_client/models/tag_nested.rb +212 -0
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +7 -3
- data/pulp_ansible_client.gemspec +3 -9
- data/spec/api/ansible_collections_api_spec.rb +1 -1
- data/spec/api/content_collections_api_spec.rb +7 -6
- data/spec/api/content_roles_api_spec.rb +1 -1
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +16 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_tags_api_spec.rb +48 -0
- data/spec/api/remotes_ansible_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/ansible_distribution_spec.rb +6 -6
- data/spec/models/ansible_remote_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_remote_spec.rb +1 -7
- data/spec/models/{collection_spec.rb → collection_version_spec.rb} +77 -11
- data/spec/models/{galaxy_collection_spec.rb → galaxy_collection_version_spec.rb} +7 -7
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_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_response2003_spec.rb +4 -4
- data/spec/models/inline_response2004_spec.rb +4 -4
- data/spec/models/inline_response2005_spec.rb +4 -4
- data/spec/models/inline_response2006_spec.rb +4 -4
- data/spec/models/inline_response2007_spec.rb +4 -4
- data/spec/models/inline_response2008_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/role_spec.rb +4 -4
- data/spec/models/tag_nested_spec.rb +41 -0
- data/spec/models/tag_spec.rb +41 -0
- data/spec/spec_helper.rb +1 -1
- metadata +30 -141
- data/Gemfile.lock +0 -79
- data/docs/Collection.md +0 -41
@@ -0,0 +1,212 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
class TagNested
|
17
|
+
# The name of the Tag.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'name' => :'name'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.openapi_types
|
29
|
+
{
|
30
|
+
:'name' => :'String'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
if (!attributes.is_a?(Hash))
|
38
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::TagNested` initialize method"
|
39
|
+
end
|
40
|
+
|
41
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
42
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
43
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
44
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::TagNested`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
45
|
+
end
|
46
|
+
h[k.to_sym] = v
|
47
|
+
}
|
48
|
+
|
49
|
+
if attributes.key?(:'name')
|
50
|
+
self.name = attributes[:'name']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
if !@name.nil? && @name.to_s.length < 1
|
59
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
60
|
+
end
|
61
|
+
|
62
|
+
invalid_properties
|
63
|
+
end
|
64
|
+
|
65
|
+
# Check to see if the all the properties in the model are valid
|
66
|
+
# @return true if the model is valid
|
67
|
+
def valid?
|
68
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
72
|
+
# Custom attribute writer method with validation
|
73
|
+
# @param [Object] name Value to be assigned
|
74
|
+
def name=(name)
|
75
|
+
if !name.nil? && name.to_s.length < 1
|
76
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
77
|
+
end
|
78
|
+
|
79
|
+
@name = name
|
80
|
+
end
|
81
|
+
|
82
|
+
# Checks equality by comparing each attribute.
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def ==(o)
|
85
|
+
return true if self.equal?(o)
|
86
|
+
self.class == o.class &&
|
87
|
+
name == o.name
|
88
|
+
end
|
89
|
+
|
90
|
+
# @see the `==` method
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def eql?(o)
|
93
|
+
self == o
|
94
|
+
end
|
95
|
+
|
96
|
+
# Calculates hash code according to all attributes.
|
97
|
+
# @return [Integer] Hash code
|
98
|
+
def hash
|
99
|
+
[name].hash
|
100
|
+
end
|
101
|
+
|
102
|
+
# Builds the object from hash
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
+
# @return [Object] Returns the model itself
|
105
|
+
def self.build_from_hash(attributes)
|
106
|
+
new.build_from_hash(attributes)
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.openapi_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :Boolean
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the string representation of the object
|
171
|
+
# @return [String] String presentation of the object
|
172
|
+
def to_s
|
173
|
+
to_hash.to_s
|
174
|
+
end
|
175
|
+
|
176
|
+
# to_body is an alias to to_hash (backward compatibility)
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_body
|
179
|
+
to_hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# Returns the object in the form of hash
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_hash
|
185
|
+
hash = {}
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
187
|
+
value = self.send(attr)
|
188
|
+
next if value.nil?
|
189
|
+
hash[param] = _to_hash(value)
|
190
|
+
end
|
191
|
+
hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Outputs non-array value in the form of hash
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
196
|
+
# @param [Object] value Any valid value
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
198
|
+
def _to_hash(value)
|
199
|
+
if value.is_a?(Array)
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
201
|
+
elsif value.is_a?(Hash)
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
204
|
+
end
|
205
|
+
elsif value.respond_to? :to_hash
|
206
|
+
value.to_hash
|
207
|
+
else
|
208
|
+
value
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
@@ -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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpAnsibleClient
|
14
|
-
VERSION = '0.2.
|
14
|
+
VERSION = '0.2.0b2'
|
15
15
|
end
|
data/lib/pulp_ansible_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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,9 +20,9 @@ require 'pulp_ansible_client/configuration'
|
|
20
20
|
require 'pulp_ansible_client/models/ansible_distribution'
|
21
21
|
require 'pulp_ansible_client/models/ansible_remote'
|
22
22
|
require 'pulp_ansible_client/models/async_operation_response'
|
23
|
-
require 'pulp_ansible_client/models/collection'
|
24
23
|
require 'pulp_ansible_client/models/collection_remote'
|
25
|
-
require 'pulp_ansible_client/models/
|
24
|
+
require 'pulp_ansible_client/models/collection_version'
|
25
|
+
require 'pulp_ansible_client/models/galaxy_collection_version'
|
26
26
|
require 'pulp_ansible_client/models/galaxy_role'
|
27
27
|
require 'pulp_ansible_client/models/galaxy_role_version'
|
28
28
|
require 'pulp_ansible_client/models/inline_response200'
|
@@ -33,8 +33,11 @@ require 'pulp_ansible_client/models/inline_response2004'
|
|
33
33
|
require 'pulp_ansible_client/models/inline_response2005'
|
34
34
|
require 'pulp_ansible_client/models/inline_response2006'
|
35
35
|
require 'pulp_ansible_client/models/inline_response2007'
|
36
|
+
require 'pulp_ansible_client/models/inline_response2008'
|
36
37
|
require 'pulp_ansible_client/models/repository_sync_url'
|
37
38
|
require 'pulp_ansible_client/models/role'
|
39
|
+
require 'pulp_ansible_client/models/tag'
|
40
|
+
require 'pulp_ansible_client/models/tag_nested'
|
38
41
|
|
39
42
|
# APIs
|
40
43
|
require 'pulp_ansible_client/api/ansible_collections_api'
|
@@ -46,6 +49,7 @@ require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api'
|
|
46
49
|
require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api'
|
47
50
|
require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api'
|
48
51
|
require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api'
|
52
|
+
require 'pulp_ansible_client/api/pulp_ansible_tags_api'
|
49
53
|
require 'pulp_ansible_client/api/remotes_ansible_api'
|
50
54
|
require 'pulp_ansible_client/api/remotes_collection_api'
|
51
55
|
|
data/pulp_ansible_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.1-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,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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,11 +33,11 @@ describe 'ContentCollectionsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create
|
36
|
-
# Create a collection
|
36
|
+
# Create a collection version
|
37
37
|
# ViewSet for Ansible Collection.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [CollectionVersion]
|
41
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
|
@@ -45,16 +45,17 @@ describe 'ContentCollectionsApi' do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# unit tests for list
|
48
|
-
# List
|
48
|
+
# List collection versions
|
49
49
|
# ViewSet for Ansible Collection.
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
|
-
# @option opts [String] :
|
52
|
-
# @option opts [String] :
|
51
|
+
# @option opts [String] :namespace
|
52
|
+
# @option opts [String] :name
|
53
53
|
# @option opts [String] :version Filter results where version matches value
|
54
54
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
55
55
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
56
56
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
57
57
|
# @option opts [String] :latest
|
58
|
+
# @option opts [String] :q
|
58
59
|
# @option opts [Integer] :page A page number within the paginated result set.
|
59
60
|
# @option opts [Integer] :page_size Number of results to return per page.
|
60
61
|
# @return [InlineResponse200]
|
@@ -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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,11 +43,24 @@ describe 'PulpAnsibleGalaxyApiCollectionsApi' do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
# unit tests for list
|
47
|
+
# ViewSet for Collections.
|
48
|
+
# @param path
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
51
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
52
|
+
# @return [nil]
|
53
|
+
describe 'list test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
46
59
|
# unit tests for read
|
47
60
|
# Get the detail view of a Collection.
|
48
|
-
# @param
|
61
|
+
# @param collection_version_href URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
|
49
62
|
# @param [Hash] opts the optional parameters
|
50
|
-
# @return [
|
63
|
+
# @return [GalaxyCollectionVersion]
|
51
64
|
describe 'read test' do
|
52
65
|
it 'should work' do
|
53
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,7 +38,7 @@ describe 'PulpAnsibleGalaxyApiRolesApi' do
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Integer] :page A page number within the paginated result set.
|
40
40
|
# @option opts [Integer] :page_size Number of results to return per page.
|
41
|
-
# @return [
|
41
|
+
# @return [InlineResponse2006]
|
42
42
|
describe 'list test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'PulpAnsibleGalaxyApiV1VersionsApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @option opts [Integer] :page A page number within the paginated result set.
|
41
41
|
# @option opts [Integer] :page_size Number of results to return per page.
|
42
|
-
# @return [
|
42
|
+
# @return [InlineResponse2007]
|
43
43
|
describe 'list test' do
|
44
44
|
it 'should work' do
|
45
45
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,11 +34,11 @@ describe 'PulpAnsibleGalaxyApiV2VersionsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for list
|
36
36
|
# APIView for Collections by namespace/name.
|
37
|
-
# @param
|
37
|
+
# @param collection_version_href URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Integer] :page A page number within the paginated result set.
|
40
40
|
# @option opts [Integer] :page_size Number of results to return per page.
|
41
|
-
# @return [
|
41
|
+
# @return [InlineResponse2008]
|
42
42
|
describe 'list test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpAnsibleClient::PulpAnsibleTagsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PulpAnsibleTagsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::PulpAnsibleTagsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PulpAnsibleTagsApi' do
|
30
|
+
it 'should create an instance of PulpAnsibleTagsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::PulpAnsibleTagsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list
|
36
|
+
# List tags
|
37
|
+
# ViewSet for Tag models.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
40
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
41
|
+
# @return [InlineResponse2003]
|
42
|
+
describe 'list test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -70,7 +70,7 @@ describe 'RemotesAnsibleApi' do
|
|
70
70
|
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
71
71
|
# @option opts [Integer] :page A page number within the paginated result set.
|
72
72
|
# @option opts [Integer] :page_size Number of results to return per page.
|
73
|
-
# @return [
|
73
|
+
# @return [InlineResponse2004]
|
74
74
|
describe 'list test' do
|
75
75
|
it 'should work' do
|
76
76
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -70,7 +70,7 @@ describe 'RemotesCollectionApi' do
|
|
70
70
|
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
71
71
|
# @option opts [Integer] :page A page number within the paginated result set.
|
72
72
|
# @option opts [Integer] :page_size Number of results to return per page.
|
73
|
-
# @return [
|
73
|
+
# @return [InlineResponse2005]
|
74
74
|
describe 'list test' do
|
75
75
|
it 'should work' do
|
76
76
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,44 +51,6 @@ describe PulpAnsibleClient::ApiClient do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'params_encoding in #build_request' do
|
55
|
-
let(:config) { PulpAnsibleClient::Configuration.new }
|
56
|
-
let(:api_client) { PulpAnsibleClient::ApiClient.new(config) }
|
57
|
-
|
58
|
-
it 'defaults to nil' do
|
59
|
-
expect(PulpAnsibleClient::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) { PulpAnsibleClient::Configuration.new }
|
75
|
-
let(:api_client) { PulpAnsibleClient::ApiClient.new(config) }
|
76
|
-
|
77
|
-
it 'defaults to 0' do
|
78
|
-
expect(PulpAnsibleClient::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 = PulpAnsibleClient::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.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -50,31 +50,31 @@ describe 'AnsibleDistribution' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "content_guard"' 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
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "name"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "repository"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "repository_version"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "mazer_url"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|