pulp_rpm_client 3.0.0b4 → 3.0.0b5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -6
- data/docs/Addon.md +27 -0
- data/docs/Artifact.md +35 -0
- data/docs/Checksum.md +19 -0
- data/docs/ContentAdvisoriesApi.md +12 -6
- data/docs/ContentPackagesApi.md +12 -6
- data/docs/DistributionTree.md +53 -0
- data/docs/DistributionTreesDistributionTreesApi.md +179 -0
- data/docs/DistributionsRpmApi.md +14 -8
- data/docs/Image.md +23 -0
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +4 -4
- data/docs/InlineResponse2004.md +4 -4
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/Package.md +10 -8
- data/docs/PublicationsRpmApi.md +14 -8
- data/docs/RemotesRpmApi.md +14 -8
- data/docs/RepoMetadataFile.md +31 -0
- data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +179 -0
- data/docs/Variant.md +37 -0
- data/git_push.sh +10 -7
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -9
- data/lib/pulp_rpm_client/api/content_packages_api.rb +15 -9
- data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +212 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +21 -15
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +19 -13
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +22 -16
- data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +212 -0
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +2 -2
- data/lib/pulp_rpm_client/api/rpm_upload_api.rb +2 -2
- data/lib/pulp_rpm_client/api_client.rb +77 -62
- data/lib/pulp_rpm_client/api_error.rb +1 -1
- data/lib/pulp_rpm_client/configuration.rb +13 -21
- data/lib/pulp_rpm_client/models/addon.rb +372 -0
- data/lib/pulp_rpm_client/models/artifact.rb +376 -0
- data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_rpm_client/models/checksum.rb +255 -0
- data/lib/pulp_rpm_client/models/distribution_tree.rb +660 -0
- data/lib/pulp_rpm_client/models/image.rb +303 -0
- data/lib/pulp_rpm_client/models/inline_response200.rb +11 -11
- data/lib/pulp_rpm_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_rpm_client/models/inline_response2002.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2003.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2004.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2005.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2006.rb +235 -0
- data/lib/pulp_rpm_client/models/package.rb +69 -40
- data/lib/pulp_rpm_client/models/repo_metadata_file.rb +381 -0
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_distribution.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/update_record.rb +1 -1
- data/lib/pulp_rpm_client/models/variant.rb +542 -0
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +12 -1
- data/pulp_rpm_client.gemspec +3 -9
- data/spec/api/content_advisories_api_spec.rb +5 -3
- data/spec/api/content_packages_api_spec.rb +5 -3
- data/spec/api/distribution_trees_distribution_trees_api_spec.rb +74 -0
- data/spec/api/distributions_rpm_api_spec.rb +6 -4
- data/spec/api/publications_rpm_api_spec.rb +6 -4
- data/spec/api/remotes_rpm_api_spec.rb +6 -4
- data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +74 -0
- data/spec/api/rpm_copy_api_spec.rb +1 -1
- data/spec/api/rpm_upload_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +71 -0
- data/spec/models/artifact_spec.rb +95 -0
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +47 -0
- data/spec/models/distribution_tree_spec.rb +149 -0
- data/spec/models/image_spec.rb +59 -0
- 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 +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/package_spec.rb +16 -10
- data/spec/models/repo_metadata_file_spec.rb +83 -0
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/rpm_distribution_spec.rb +1 -1
- data/spec/models/rpm_publication_spec.rb +1 -1
- data/spec/models/rpm_remote_spec.rb +1 -1
- data/spec/models/update_record_spec.rb +1 -1
- data/spec/models/variant_spec.rb +101 -0
- data/spec/spec_helper.rb +1 -1
- metadata +50 -133
- data/Gemfile.lock +0 -79
@@ -0,0 +1,74 @@
|
|
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.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::DistributionTreesDistributionTreesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DistributionTreesDistributionTreesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::DistributionTreesDistributionTreesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DistributionTreesDistributionTreesApi' do
|
30
|
+
it 'should create an instance of DistributionTreesDistributionTreesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::DistributionTreesDistributionTreesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete
|
36
|
+
# Delete a distribution tree
|
37
|
+
# Distribution Tree Viewset.
|
38
|
+
# @param distribution_tree_href URI of Distribution Tree. e.g.: /pulp/api/v3/distribution_trees/rpm/distribution_trees/1/
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'delete test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for list
|
48
|
+
# List distribution trees
|
49
|
+
# Distribution Tree Viewset.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
52
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
53
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
54
|
+
# @return [InlineResponse2002]
|
55
|
+
describe 'list test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for read
|
62
|
+
# Inspect a distribution tree
|
63
|
+
# Distribution Tree Viewset.
|
64
|
+
# @param distribution_tree_href URI of Distribution Tree. e.g.: /pulp/api/v3/distribution_trees/rpm/distribution_trees/1/
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
67
|
+
# @return [DistributionTree]
|
68
|
+
describe 'read test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
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
|
|
@@ -66,9 +66,10 @@ describe 'DistributionsRpmApi' 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] :
|
71
|
-
# @
|
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.
|
72
|
+
# @return [InlineResponse2003]
|
72
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
|
@@ -93,6 +94,7 @@ describe 'DistributionsRpmApi' do
|
|
93
94
|
# ViewSet for RPM Distributions.
|
94
95
|
# @param rpm_distribution_href URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/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 [RpmDistribution]
|
97
99
|
describe 'read test' do
|
98
100
|
it 'should work' do
|
@@ -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
|
|
@@ -61,9 +61,10 @@ describe 'PublicationsRpmApi' do
|
|
61
61
|
# ViewSet for Rpm Publications.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
64
|
-
# @option opts [Integer] :
|
65
|
-
# @option opts [Integer] :
|
66
|
-
# @
|
64
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
65
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
66
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
67
|
+
# @return [InlineResponse2004]
|
67
68
|
describe 'list test' do
|
68
69
|
it 'should work' do
|
69
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -75,6 +76,7 @@ describe 'PublicationsRpmApi' do
|
|
75
76
|
# ViewSet for Rpm Publications.
|
76
77
|
# @param rpm_publication_href URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
77
78
|
# @param [Hash] opts the optional parameters
|
79
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
78
80
|
# @return [RpmPublication]
|
79
81
|
describe 'read test' do
|
80
82
|
it 'should work' do
|
@@ -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
|
|
@@ -68,9 +68,10 @@ describe 'RemotesRpmApi' 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] :
|
73
|
-
# @
|
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.
|
74
|
+
# @return [InlineResponse2005]
|
74
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
|
@@ -95,6 +96,7 @@ describe 'RemotesRpmApi' do
|
|
95
96
|
# A ViewSet for RpmRemote.
|
96
97
|
# @param rpm_remote_href URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/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 [RpmRemote]
|
99
101
|
describe 'read test' do
|
100
102
|
it 'should work' do
|
@@ -0,0 +1,74 @@
|
|
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.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepoMetadataFilesRepoMetadataFilesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepoMetadataFilesRepoMetadataFilesApi' do
|
30
|
+
it 'should create an instance of RepoMetadataFilesRepoMetadataFilesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete
|
36
|
+
# Delete a repo metadata file
|
37
|
+
# RepoMetadataFile Viewset.
|
38
|
+
# @param repo_metadata_file_href URI of Repo Metadata File. e.g.: /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/1/
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'delete test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for list
|
48
|
+
# List repo metadata files
|
49
|
+
# RepoMetadataFile Viewset.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
52
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
53
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
54
|
+
# @return [InlineResponse2006]
|
55
|
+
describe 'list test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for read
|
62
|
+
# Inspect a repo metadata file
|
63
|
+
# RepoMetadataFile Viewset.
|
64
|
+
# @param repo_metadata_file_href URI of Repo Metadata File. e.g.: /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/1/
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
67
|
+
# @return [RepoMetadataFile]
|
68
|
+
describe 'read test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
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 PulpRpmClient::ApiClient do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'params_encoding in #build_request' do
|
55
|
-
let(:config) { PulpRpmClient::Configuration.new }
|
56
|
-
let(:api_client) { PulpRpmClient::ApiClient.new(config) }
|
57
|
-
|
58
|
-
it 'defaults to nil' do
|
59
|
-
expect(PulpRpmClient::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) { PulpRpmClient::Configuration.new }
|
75
|
-
let(:api_client) { PulpRpmClient::ApiClient.new(config) }
|
76
|
-
|
77
|
-
it 'defaults to 0' do
|
78
|
-
expect(PulpRpmClient::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 = PulpRpmClient::ApiClient.new
|
data/spec/configuration_spec.rb
CHANGED
@@ -0,0 +1,71 @@
|
|
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.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::Addon
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Addon' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::Addon.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Addon' do
|
31
|
+
it 'should create an instance of Addon' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::Addon)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "addon_id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "uid"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "type"' 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
|
+
|
59
|
+
describe 'test attribute "packages"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "repository"' 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
|
+
end
|
@@ -0,0 +1,95 @@
|
|
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.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::Artifact
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Artifact' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::Artifact.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Artifact' do
|
31
|
+
it 'should create an instance of Artifact' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::Artifact)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "_href"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "file"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "size"' 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
|
+
|
59
|
+
describe 'test attribute "md5"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "sha1"' 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
|
+
describe 'test attribute "sha224"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "sha256"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "sha384"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "sha512"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::Checksum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Checksum' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::Checksum.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Checksum' do
|
31
|
+
it 'should create an instance of Checksum' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::Checksum)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "path"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "checksum"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|