pulp_ostree_client 2.0.0a1
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +174 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentCommitsApi.md +138 -0
- data/docs/ContentConfigsApi.md +138 -0
- data/docs/ContentObjectsApi.md +138 -0
- data/docs/ContentRefsApi.md +138 -0
- data/docs/ContentSummariesApi.md +138 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsOstreeApi.md +372 -0
- data/docs/OstreeOstreeCommitResponse.md +25 -0
- data/docs/OstreeOstreeConfigResponse.md +21 -0
- data/docs/OstreeOstreeDistribution.md +27 -0
- data/docs/OstreeOstreeDistributionResponse.md +33 -0
- data/docs/OstreeOstreeObjectResponse.md +27 -0
- data/docs/OstreeOstreeRefResponse.md +25 -0
- data/docs/OstreeOstreeRemote.md +59 -0
- data/docs/OstreeOstreeRemoteResponse.md +55 -0
- data/docs/OstreeOstreeRepository.md +25 -0
- data/docs/OstreeOstreeRepositoryResponse.md +33 -0
- data/docs/OstreeOstreeSummaryResponse.md +21 -0
- data/docs/OstreeRepoImport.md +23 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeCommitResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +23 -0
- data/docs/PatchedostreeOstreeDistribution.md +27 -0
- data/docs/PatchedostreeOstreeRemote.md +59 -0
- data/docs/PatchedostreeOstreeRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesOstreeApi.md +376 -0
- data/docs/RepositoriesOstreeApi.md +532 -0
- data/docs/RepositoriesOstreeVersionsApi.md +271 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersion.md +17 -0
- data/docs/RepositoryVersionResponse.md +27 -0
- data/git_push.sh +58 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +170 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +457 -0
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +463 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +655 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +339 -0
- data/lib/pulp_ostree_client/api_client.rb +406 -0
- data/lib/pulp_ostree_client/api_error.rb +57 -0
- data/lib/pulp_ostree_client/configuration.rb +250 -0
- data/lib/pulp_ostree_client/models/async_operation_response.rb +213 -0
- data/lib/pulp_ostree_client/models/content_summary.rb +246 -0
- data/lib/pulp_ostree_client/models/content_summary_response.rb +246 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +232 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +270 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +299 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +260 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +536 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +510 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +270 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +307 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +232 -0
- data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +260 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +526 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +265 -0
- data/lib/pulp_ostree_client/models/policy_enum.rb +36 -0
- data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulp_ostree_client/models/repository_sync_url.rb +220 -0
- data/lib/pulp_ostree_client/models/repository_version.rb +208 -0
- data/lib/pulp_ostree_client/models/repository_version_response.rb +255 -0
- data/lib/pulp_ostree_client/version.rb +15 -0
- data/lib/pulp_ostree_client.rb +80 -0
- data/pulp_ostree_client.gemspec +39 -0
- data/spec/api/content_commits_api_spec.rb +68 -0
- data/spec/api/content_configs_api_spec.rb +68 -0
- data/spec/api/content_objects_api_spec.rb +68 -0
- data/spec/api/content_refs_api_spec.rb +68 -0
- data/spec/api/content_summaries_api_spec.rb +68 -0
- data/spec/api/distributions_ostree_api_spec.rb +125 -0
- data/spec/api/remotes_ostree_api_spec.rb +127 -0
- data/spec/api/repositories_ostree_api_spec.rb +160 -0
- data/spec/api/repositories_ostree_versions_api_spec.rb +104 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
- data/spec/models/ostree_ostree_config_response_spec.rb +53 -0
- data/spec/models/ostree_ostree_distribution_response_spec.rb +89 -0
- data/spec/models/ostree_ostree_distribution_spec.rb +71 -0
- data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
- data/spec/models/ostree_ostree_ref_response_spec.rb +65 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +155 -0
- data/spec/models/ostree_ostree_remote_spec.rb +167 -0
- data/spec/models/ostree_ostree_repository_response_spec.rb +89 -0
- data/spec/models/ostree_ostree_repository_spec.rb +65 -0
- data/spec/models/ostree_ostree_summary_response_spec.rb +53 -0
- data/spec/models/ostree_repo_import_spec.rb +59 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +59 -0
- data/spec/models/patchedostree_ostree_distribution_spec.rb +71 -0
- data/spec/models/patchedostree_ostree_remote_spec.rb +167 -0
- data/spec/models/patchedostree_ostree_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_response_spec.rb +71 -0
- data/spec/models/repository_version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +277 -0
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpOstreeClient::DistributionsOstreeApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DistributionsOstreeApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpOstreeClient::DistributionsOstreeApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DistributionsOstreeApi' do
|
|
30
|
+
it 'should create an instance of DistributionsOstreeApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::DistributionsOstreeApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create
|
|
36
|
+
# Create an ostree distribution
|
|
37
|
+
# Trigger an asynchronous create task
|
|
38
|
+
# @param ostree_ostree_distribution
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [AsyncOperationResponse]
|
|
41
|
+
describe 'create 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 delete
|
|
48
|
+
# Delete an ostree distribution
|
|
49
|
+
# Trigger an asynchronous delete task
|
|
50
|
+
# @param ostree_ostree_distribution_href
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [AsyncOperationResponse]
|
|
53
|
+
describe 'delete 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
|
+
|
|
59
|
+
# unit tests for list
|
|
60
|
+
# List ostree distributions
|
|
61
|
+
# A ViewSet class for OSTree distributions.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [String] :base_path
|
|
64
|
+
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
|
65
|
+
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
|
66
|
+
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
|
67
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
68
|
+
# @option opts [String] :name
|
|
69
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
70
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
71
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
72
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
73
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
74
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
75
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
76
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
77
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
78
|
+
# @return [PaginatedostreeOstreeDistributionResponseList]
|
|
79
|
+
describe 'list test' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# unit tests for partial_update
|
|
86
|
+
# Update an ostree distribution
|
|
87
|
+
# Trigger an asynchronous partial update task
|
|
88
|
+
# @param ostree_ostree_distribution_href
|
|
89
|
+
# @param patchedostree_ostree_distribution
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [AsyncOperationResponse]
|
|
92
|
+
describe 'partial_update test' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# unit tests for read
|
|
99
|
+
# Inspect an ostree distribution
|
|
100
|
+
# A ViewSet class for OSTree distributions.
|
|
101
|
+
# @param ostree_ostree_distribution_href
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
104
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
105
|
+
# @return [OstreeOstreeDistributionResponse]
|
|
106
|
+
describe 'read test' do
|
|
107
|
+
it 'should work' do
|
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# unit tests for update
|
|
113
|
+
# Update an ostree distribution
|
|
114
|
+
# Trigger an asynchronous update task
|
|
115
|
+
# @param ostree_ostree_distribution_href
|
|
116
|
+
# @param ostree_ostree_distribution
|
|
117
|
+
# @param [Hash] opts the optional parameters
|
|
118
|
+
# @return [AsyncOperationResponse]
|
|
119
|
+
describe 'update test' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpOstreeClient::RemotesOstreeApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RemotesOstreeApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpOstreeClient::RemotesOstreeApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RemotesOstreeApi' do
|
|
30
|
+
it 'should create an instance of RemotesOstreeApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::RemotesOstreeApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create
|
|
36
|
+
# Create an ostree remote
|
|
37
|
+
# A ViewSet class for OSTree remote repositories.
|
|
38
|
+
# @param ostree_ostree_remote
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [OstreeOstreeRemoteResponse]
|
|
41
|
+
describe 'create 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 delete
|
|
48
|
+
# Delete an ostree remote
|
|
49
|
+
# Trigger an asynchronous delete task
|
|
50
|
+
# @param ostree_ostree_remote_href
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [AsyncOperationResponse]
|
|
53
|
+
describe 'delete 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
|
+
|
|
59
|
+
# unit tests for list
|
|
60
|
+
# List ostree remotes
|
|
61
|
+
# A ViewSet class for OSTree remote repositories.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
64
|
+
# @option opts [String] :name
|
|
65
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
66
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
67
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
68
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
69
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
70
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
71
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
72
|
+
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
|
73
|
+
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
74
|
+
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
75
|
+
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
76
|
+
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
77
|
+
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
78
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
79
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
80
|
+
# @return [PaginatedostreeOstreeRemoteResponseList]
|
|
81
|
+
describe 'list test' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# unit tests for partial_update
|
|
88
|
+
# Update an ostree remote
|
|
89
|
+
# Trigger an asynchronous partial update task
|
|
90
|
+
# @param ostree_ostree_remote_href
|
|
91
|
+
# @param patchedostree_ostree_remote
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [AsyncOperationResponse]
|
|
94
|
+
describe 'partial_update test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# unit tests for read
|
|
101
|
+
# Inspect an ostree remote
|
|
102
|
+
# A ViewSet class for OSTree remote repositories.
|
|
103
|
+
# @param ostree_ostree_remote_href
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
106
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
107
|
+
# @return [OstreeOstreeRemoteResponse]
|
|
108
|
+
describe 'read test' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# unit tests for update
|
|
115
|
+
# Update an ostree remote
|
|
116
|
+
# Trigger an asynchronous update task
|
|
117
|
+
# @param ostree_ostree_remote_href
|
|
118
|
+
# @param ostree_ostree_remote
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @return [AsyncOperationResponse]
|
|
121
|
+
describe 'update test' do
|
|
122
|
+
it 'should work' do
|
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
end
|
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpOstreeClient::RepositoriesOstreeApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RepositoriesOstreeApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RepositoriesOstreeApi' do
|
|
30
|
+
it 'should create an instance of RepositoriesOstreeApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::RepositoriesOstreeApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create
|
|
36
|
+
# Create an ostree repository
|
|
37
|
+
# A ViewSet class for OSTree repositories.
|
|
38
|
+
# @param ostree_ostree_repository
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [OstreeOstreeRepositoryResponse]
|
|
41
|
+
describe 'create 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 delete
|
|
48
|
+
# Delete an ostree repository
|
|
49
|
+
# Trigger an asynchronous delete task
|
|
50
|
+
# @param ostree_ostree_repository_href
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [AsyncOperationResponse]
|
|
53
|
+
describe 'delete 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
|
+
|
|
59
|
+
# unit tests for import_commits
|
|
60
|
+
# Import commits to a repository
|
|
61
|
+
# Trigger an asynchronous task to create a new OSTree repository version.
|
|
62
|
+
# @param ostree_ostree_repository_href
|
|
63
|
+
# @param ostree_repo_import
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [AsyncOperationResponse]
|
|
66
|
+
describe 'import_commits test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for list
|
|
73
|
+
# List ostree repositorys
|
|
74
|
+
# A ViewSet class for OSTree repositories.
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
77
|
+
# @option opts [String] :name
|
|
78
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
79
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
80
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
81
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
82
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
83
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
84
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
85
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
86
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
87
|
+
# @return [PaginatedostreeOstreeRepositoryResponseList]
|
|
88
|
+
describe 'list test' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# unit tests for modify
|
|
95
|
+
# Modify Repository Content
|
|
96
|
+
# Trigger an asynchronous task to create a new repository version.
|
|
97
|
+
# @param ostree_ostree_repository_href
|
|
98
|
+
# @param repository_add_remove_content
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [AsyncOperationResponse]
|
|
101
|
+
describe 'modify test' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# unit tests for partial_update
|
|
108
|
+
# Update an ostree repository
|
|
109
|
+
# Trigger an asynchronous partial update task
|
|
110
|
+
# @param ostree_ostree_repository_href
|
|
111
|
+
# @param patchedostree_ostree_repository
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @return [AsyncOperationResponse]
|
|
114
|
+
describe 'partial_update test' do
|
|
115
|
+
it 'should work' do
|
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# unit tests for read
|
|
121
|
+
# Inspect an ostree repository
|
|
122
|
+
# A ViewSet class for OSTree repositories.
|
|
123
|
+
# @param ostree_ostree_repository_href
|
|
124
|
+
# @param [Hash] opts the optional parameters
|
|
125
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
126
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
127
|
+
# @return [OstreeOstreeRepositoryResponse]
|
|
128
|
+
describe 'read test' do
|
|
129
|
+
it 'should work' do
|
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# unit tests for sync
|
|
135
|
+
# Sync from remote
|
|
136
|
+
# Trigger an asynchronous task to sync content.
|
|
137
|
+
# @param ostree_ostree_repository_href
|
|
138
|
+
# @param repository_sync_url
|
|
139
|
+
# @param [Hash] opts the optional parameters
|
|
140
|
+
# @return [AsyncOperationResponse]
|
|
141
|
+
describe 'sync test' do
|
|
142
|
+
it 'should work' do
|
|
143
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# unit tests for update
|
|
148
|
+
# Update an ostree repository
|
|
149
|
+
# Trigger an asynchronous update task
|
|
150
|
+
# @param ostree_ostree_repository_href
|
|
151
|
+
# @param ostree_ostree_repository
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [AsyncOperationResponse]
|
|
154
|
+
describe 'update test' do
|
|
155
|
+
it 'should work' do
|
|
156
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpOstreeClient::RepositoriesOstreeVersionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RepositoriesOstreeVersionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpOstreeClient::RepositoriesOstreeVersionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RepositoriesOstreeVersionsApi' do
|
|
30
|
+
it 'should create an instance of RepositoriesOstreeVersionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::RepositoriesOstreeVersionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for delete
|
|
36
|
+
# Delete a repository version
|
|
37
|
+
# Trigger an asynchronous task to delete a repository version.
|
|
38
|
+
# @param ostree_ostree_repository_version_href
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [AsyncOperationResponse]
|
|
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 repository versions
|
|
49
|
+
# A ViewSet class that represents a single OSTree repository version.
|
|
50
|
+
# @param ostree_ostree_repository_href
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
|
53
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
54
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
55
|
+
# @option opts [Integer] :number
|
|
56
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
57
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
58
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
59
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
60
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
61
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
62
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
63
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
64
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
65
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
66
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
67
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
68
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
69
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
70
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
71
|
+
# @return [PaginatedRepositoryVersionResponseList]
|
|
72
|
+
describe 'list test' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# unit tests for read
|
|
79
|
+
# Inspect a repository version
|
|
80
|
+
# A ViewSet class that represents a single OSTree repository version.
|
|
81
|
+
# @param ostree_ostree_repository_version_href
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
84
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
85
|
+
# @return [RepositoryVersionResponse]
|
|
86
|
+
describe 'read test' do
|
|
87
|
+
it 'should work' do
|
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# unit tests for repair
|
|
93
|
+
# Trigger an asynchronous task to repair a repository version.
|
|
94
|
+
# @param ostree_ostree_repository_version_href
|
|
95
|
+
# @param repository_version
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @return [AsyncOperationResponse]
|
|
98
|
+
describe 'repair test' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|