pulp_deb_client 2.21.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -7
- data/docs/ContentGenericContentsApi.md +7 -5
- data/docs/ContentInstallerFileIndicesApi.md +3 -1
- data/docs/ContentInstallerPackagesApi.md +7 -5
- data/docs/ContentPackageIndicesApi.md +3 -1
- data/docs/ContentPackageReleaseComponentsApi.md +3 -1
- data/docs/ContentPackagesApi.md +27 -5
- data/docs/ContentReleaseArchitecturesApi.md +5 -7
- data/docs/ContentReleaseComponentsApi.md +7 -7
- data/docs/ContentReleaseFilesApi.md +3 -1
- data/docs/ContentReleasesApi.md +13 -3
- data/docs/ContentSourceIndicesApi.md +204 -0
- data/docs/ContentSourcePackagesApi.md +258 -0
- data/docs/ContentSourceReleaseComponentsApi.md +202 -0
- data/docs/DebAptPublication.md +4 -2
- data/docs/DebAptPublicationResponse.md +4 -2
- data/docs/DebAptRepository.md +7 -1
- data/docs/DebAptRepositoryResponse.md +7 -1
- data/docs/DebCopyApi.md +1 -1
- data/docs/DebGenericContent.md +2 -2
- data/docs/DebInstallerPackage.md +2 -2
- data/docs/DebPackage.md +2 -2
- data/docs/DebRelease.md +9 -1
- data/docs/DebReleaseArchitecture.md +1 -5
- data/docs/DebReleaseArchitectureResponse.md +1 -5
- data/docs/DebReleaseComponent.md +1 -5
- data/docs/DebReleaseComponentResponse.md +1 -5
- data/docs/DebReleaseFile.md +3 -3
- data/docs/DebReleaseFileResponse.md +3 -3
- data/docs/DebReleaseResponse.md +9 -1
- data/docs/DebSourceIndex.md +25 -0
- data/docs/DebSourceIndexResponse.md +27 -0
- data/docs/DebSourcePackage.md +21 -0
- data/docs/DebSourcePackageReleaseComponent.md +21 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
- data/docs/DebSourcePackageResponse.md +77 -0
- data/docs/DistributionsAptApi.md +123 -1
- data/docs/PaginateddebSourceIndexResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageResponseList.md +23 -0
- data/docs/PatcheddebAptRepository.md +7 -1
- data/docs/PublicationsAptApi.md +3 -1
- data/docs/PublicationsVerbatimApi.md +3 -1
- data/docs/RemotesAptApi.md +123 -1
- data/docs/RepositoriesAptApi.md +123 -1
- data/docs/RepositoriesAptVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -4
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -4
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +37 -4
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -9
- data/lib/pulp_deb_client/api/content_release_components_api.rb +9 -9
- data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_releases_api.rb +18 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
- data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
- data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_release.rb +104 -4
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
- data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
- data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/set_label.rb +252 -0
- data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
- data/lib/pulp_deb_client/models/unset_label.rb +242 -0
- data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +16 -0
- data/spec/api/content_generic_contents_api_spec.rb +3 -2
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
- data/spec/api/content_installer_packages_api_spec.rb +3 -2
- data/spec/api/content_package_indices_api_spec.rb +1 -0
- data/spec/api/content_package_release_components_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +13 -2
- data/spec/api/content_release_architectures_api_spec.rb +2 -3
- data/spec/api/content_release_components_api_spec.rb +3 -3
- data/spec/api/content_release_files_api_spec.rb +1 -0
- data/spec/api/content_releases_api_spec.rb +6 -1
- data/spec/api/content_source_indices_api_spec.rb +86 -0
- data/spec/api/content_source_packages_api_spec.rb +113 -0
- data/spec/api/content_source_release_components_api_spec.rb +85 -0
- data/spec/api/distributions_apt_api_spec.rb +31 -0
- data/spec/api/publications_apt_api_spec.rb +1 -0
- data/spec/api/publications_verbatim_api_spec.rb +1 -0
- data/spec/api/remotes_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_publication_spec.rb +6 -0
- data/spec/models/deb_apt_repository_response_spec.rb +18 -0
- data/spec/models/deb_apt_repository_spec.rb +18 -0
- data/spec/models/deb_release_architecture_response_spec.rb +0 -12
- data/spec/models/deb_release_architecture_spec.rb +0 -12
- data/spec/models/deb_release_component_response_spec.rb +0 -12
- data/spec/models/deb_release_component_spec.rb +0 -12
- data/spec/models/deb_release_response_spec.rb +24 -0
- data/spec/models/deb_release_spec.rb +24 -0
- data/spec/models/deb_source_index_response_spec.rb +71 -0
- data/spec/models/deb_source_index_spec.rb +65 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
- data/spec/models/deb_source_package_release_component_spec.rb +53 -0
- data/spec/models/deb_source_package_response_spec.rb +221 -0
- data/spec/models/deb_source_package_spec.rb +53 -0
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +18 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +122 -58
@@ -48,18 +48,18 @@ describe 'ContentReleaseComponentsApi' do
|
|
48
48
|
# List release components
|
49
49
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
|
-
# @option opts [String] :codename Filter results where codename matches value
|
52
51
|
# @option opts [String] :component Filter results where component matches value
|
53
52
|
# @option opts [String] :distribution Filter results where distribution matches value
|
54
53
|
# @option opts [Integer] :limit Number of results to return per page.
|
55
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
56
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `
|
55
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
56
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
57
57
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
58
58
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
59
|
+
# @option opts [String] :q
|
59
60
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
60
61
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
61
62
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
62
|
-
# @option opts [String] :suite Filter results where suite matches value
|
63
63
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
64
64
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
65
65
|
# @return [PaginateddebReleaseComponentResponseList]
|
@@ -54,6 +54,7 @@ describe 'ContentReleaseFilesApi' do
|
|
54
54
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
55
55
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
56
56
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
57
|
+
# @option opts [String] :q
|
57
58
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
58
59
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
59
60
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -50,15 +50,20 @@ describe 'ContentReleasesApi' do
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
51
|
# @option opts [String] :codename Filter results where codename matches value
|
52
52
|
# @option opts [String] :distribution Filter results where distribution matches value
|
53
|
+
# @option opts [String] :label Filter results where label matches value
|
53
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
54
55
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
56
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
57
|
+
# @option opts [String] :origin Filter results where origin matches value
|
58
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
56
59
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
57
60
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
61
|
+
# @option opts [String] :q
|
58
62
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
59
63
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
60
64
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
61
65
|
# @option opts [String] :suite Filter results where suite matches value
|
66
|
+
# @option opts [String] :version Filter results where version matches value
|
62
67
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
63
68
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
64
69
|
# @return [PaginateddebReleaseResponseList]
|
@@ -0,0 +1,86 @@
|
|
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 PulpDebClient::ContentSourceIndicesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentSourceIndicesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpDebClient::ContentSourceIndicesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentSourceIndicesApi' do
|
30
|
+
it 'should create an instance of ContentSourceIndicesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpDebClient::ContentSourceIndicesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a source index
|
37
|
+
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
38
|
+
# @param deb_source_index
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [DebSourceIndexResponse]
|
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 list
|
48
|
+
# List SourceIndices
|
49
|
+
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [String] :component Filter results where component matches value
|
52
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
53
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
54
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
55
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
56
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
57
|
+
# @option opts [String] :q
|
58
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
59
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
60
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
61
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
62
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
63
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
64
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
65
|
+
# @return [PaginateddebSourceIndexResponseList]
|
66
|
+
describe 'list 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 read
|
73
|
+
# Inspect a source index
|
74
|
+
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
75
|
+
# @param deb_source_index_href
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
78
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
79
|
+
# @return [DebSourceIndexResponse]
|
80
|
+
describe 'read test' do
|
81
|
+
it 'should work' do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
@@ -0,0 +1,113 @@
|
|
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 PulpDebClient::ContentSourcePackagesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentSourcePackagesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentSourcePackagesApi' do
|
30
|
+
it 'should create an instance of ContentSourcePackagesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpDebClient::ContentSourcePackagesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a source package
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
+
# @param deb_source_package
|
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 list
|
48
|
+
# List source packages
|
49
|
+
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
52
|
+
# @option opts [String] :binary Filter results where binary matches value
|
53
|
+
# @option opts [String] :build_conflicts Filter results where build_conflicts matches value
|
54
|
+
# @option opts [String] :build_conflicts_arch Filter results where build_conflicts_arch matches value
|
55
|
+
# @option opts [String] :build_conflicts_indep Filter results where build_conflicts_indep matches value
|
56
|
+
# @option opts [String] :build_depends Filter results where build_depends matches value
|
57
|
+
# @option opts [String] :build_depends_arch Filter results where build_depends_arch matches value
|
58
|
+
# @option opts [String] :build_depends_indep Filter results where build_depends_indep matches value
|
59
|
+
# @option opts [String] :dgit Filter results where dgit matches value
|
60
|
+
# @option opts [String] :format Filter results where format matches value
|
61
|
+
# @option opts [String] :homepage Filter results where homepage matches value
|
62
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
63
|
+
# @option opts [String] :maintainer Filter results where maintainer matches value
|
64
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
65
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
66
|
+
# @option opts [String] :package_list Filter results where package_list matches value
|
67
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
68
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
69
|
+
# @option opts [String] :q
|
70
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
71
|
+
# @option opts [String] :release Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
72
|
+
# @option opts [String] :release_component Must be a comma-separated string: \"release_component_href,repository_or_repository_version_href\" release_component_href: Filter results where SourcePackage in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
73
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
74
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
75
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
76
|
+
# @option opts [String] :source Filter results where source matches value
|
77
|
+
# @option opts [String] :standards_version Filter results where standards_version matches value
|
78
|
+
# @option opts [String] :testsuite Filter results where testsuite matches value
|
79
|
+
# @option opts [String] :uploaders Filter results where uploaders matches value
|
80
|
+
# @option opts [String] :vcs_arch Filter results where vcs_arch matches value
|
81
|
+
# @option opts [String] :vcs_browser Filter results where vcs_browser matches value
|
82
|
+
# @option opts [String] :vcs_bzr Filter results where vcs_bzr matches value
|
83
|
+
# @option opts [String] :vcs_cvs Filter results where vcs_cvs matches value
|
84
|
+
# @option opts [String] :vcs_darcs Filter results where vcs_darcs matches value
|
85
|
+
# @option opts [String] :vcs_git Filter results where vcs_git matches value
|
86
|
+
# @option opts [String] :vcs_hg Filter results where vcs_hg matches value
|
87
|
+
# @option opts [String] :vcs_mtn Filter results where vcs_mtn matches value
|
88
|
+
# @option opts [String] :vcs_snv Filter results where vcs_snv matches value
|
89
|
+
# @option opts [String] :version Filter results where version matches value
|
90
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
91
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
92
|
+
# @return [PaginateddebSourcePackageResponseList]
|
93
|
+
describe 'list test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# unit tests for read
|
100
|
+
# Inspect a source package
|
101
|
+
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
102
|
+
# @param deb_source_package_href
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
105
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
106
|
+
# @return [DebSourcePackageResponse]
|
107
|
+
describe 'read test' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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 PulpDebClient::ContentSourceReleaseComponentsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentSourceReleaseComponentsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpDebClient::ContentSourceReleaseComponentsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentSourceReleaseComponentsApi' do
|
30
|
+
it 'should create an instance of ContentSourceReleaseComponentsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpDebClient::ContentSourceReleaseComponentsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a source package release component
|
37
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
38
|
+
# @param deb_source_package_release_component
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [DebSourcePackageReleaseComponentResponse]
|
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 list
|
48
|
+
# List source package release components
|
49
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
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 [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
54
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
56
|
+
# @option opts [String] :q
|
57
|
+
# @option opts [String] :release_component Filter results where release_component matches value
|
58
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
59
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
60
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
61
|
+
# @option opts [String] :source_package Filter results where source_package matches value
|
62
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
63
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
64
|
+
# @return [PaginateddebSourcePackageReleaseComponentResponseList]
|
65
|
+
describe 'list test' 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
|
+
# unit tests for read
|
72
|
+
# Inspect a source package release component
|
73
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
74
|
+
# @param deb_source_package_release_component_href
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
77
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
78
|
+
# @return [DebSourcePackageReleaseComponentResponse]
|
79
|
+
describe 'read 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
|
+
end
|
@@ -68,13 +68,18 @@ describe 'DistributionsAptApi' do
|
|
68
68
|
# @option opts [String] :name Filter results where name matches value
|
69
69
|
# @option opts [String] :name__contains Filter results where name contains value
|
70
70
|
# @option opts [String] :name__icontains Filter results where name contains value
|
71
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
71
72
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
73
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
74
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
75
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
72
76
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
73
77
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
78
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
75
79
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
76
80
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
77
81
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
82
|
+
# @option opts [String] :q
|
78
83
|
# @option opts [String] :repository Filter results where repository matches value
|
79
84
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
80
85
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -114,6 +119,32 @@ describe 'DistributionsAptApi' do
|
|
114
119
|
end
|
115
120
|
end
|
116
121
|
|
122
|
+
# unit tests for set_label
|
123
|
+
# Set a label
|
124
|
+
# Set a single pulp_label on the object to a specific value or null.
|
125
|
+
# @param deb_apt_distribution_href
|
126
|
+
# @param set_label
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @return [SetLabelResponse]
|
129
|
+
describe 'set_label test' do
|
130
|
+
it 'should work' do
|
131
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# unit tests for unset_label
|
136
|
+
# Unset a label
|
137
|
+
# Unset a single pulp_label on the object.
|
138
|
+
# @param deb_apt_distribution_href
|
139
|
+
# @param unset_label
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @return [UnsetLabelResponse]
|
142
|
+
describe 'unset_label test' do
|
143
|
+
it 'should work' do
|
144
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
117
148
|
# unit tests for update
|
118
149
|
# Update an apt distribution
|
119
150
|
# Trigger an asynchronous update task
|
@@ -73,6 +73,7 @@ describe 'PublicationsAptApi' do
|
|
73
73
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
74
74
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
75
75
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
76
|
+
# @option opts [String] :q
|
76
77
|
# @option opts [String] :repository Repository referenced by HREF
|
77
78
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
78
79
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -73,6 +73,7 @@ describe 'PublicationsVerbatimApi' do
|
|
73
73
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
74
74
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
75
75
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
76
|
+
# @option opts [String] :q
|
76
77
|
# @option opts [String] :repository Repository referenced by HREF
|
77
78
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
78
79
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -64,7 +64,11 @@ describe 'RemotesAptApi' do
|
|
64
64
|
# @option opts [String] :name Filter results where name matches value
|
65
65
|
# @option opts [String] :name__contains Filter results where name contains value
|
66
66
|
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
67
68
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
69
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
70
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
71
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
68
72
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
74
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -77,6 +81,7 @@ describe 'RemotesAptApi' do
|
|
77
81
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
78
82
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
79
83
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
84
|
+
# @option opts [String] :q
|
80
85
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
81
86
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
82
87
|
# @return [PaginateddebAptRemoteResponseList]
|
@@ -113,6 +118,32 @@ describe 'RemotesAptApi' do
|
|
113
118
|
end
|
114
119
|
end
|
115
120
|
|
121
|
+
# unit tests for set_label
|
122
|
+
# Set a label
|
123
|
+
# Set a single pulp_label on the object to a specific value or null.
|
124
|
+
# @param deb_apt_remote_href
|
125
|
+
# @param set_label
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @return [SetLabelResponse]
|
128
|
+
describe 'set_label 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 unset_label
|
135
|
+
# Unset a label
|
136
|
+
# Unset a single pulp_label on the object.
|
137
|
+
# @param deb_apt_remote_href
|
138
|
+
# @param unset_label
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @return [UnsetLabelResponse]
|
141
|
+
describe 'unset_label 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
|
+
|
116
147
|
# unit tests for update
|
117
148
|
# Update an apt remote
|
118
149
|
# Trigger an asynchronous update task
|
@@ -65,13 +65,18 @@ describe 'RepositoriesAptApi' do
|
|
65
65
|
# @option opts [String] :name Filter results where name matches value
|
66
66
|
# @option opts [String] :name__contains Filter results where name contains value
|
67
67
|
# @option opts [String] :name__icontains Filter results where name contains value
|
68
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
68
69
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
70
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
71
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
72
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
69
73
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
70
74
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
71
75
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
72
76
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
73
77
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
74
78
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
79
|
+
# @option opts [String] :q
|
75
80
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
76
81
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
77
82
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -131,6 +136,19 @@ describe 'RepositoriesAptApi' do
|
|
131
136
|
end
|
132
137
|
end
|
133
138
|
|
139
|
+
# unit tests for set_label
|
140
|
+
# Set a label
|
141
|
+
# Set a single pulp_label on the object to a specific value or null.
|
142
|
+
# @param deb_apt_repository_href
|
143
|
+
# @param set_label
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @return [SetLabelResponse]
|
146
|
+
describe 'set_label test' do
|
147
|
+
it 'should work' do
|
148
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
134
152
|
# unit tests for sync
|
135
153
|
# Sync from remote
|
136
154
|
# Trigger an asynchronous task to sync content
|
@@ -144,6 +162,19 @@ describe 'RepositoriesAptApi' do
|
|
144
162
|
end
|
145
163
|
end
|
146
164
|
|
165
|
+
# unit tests for unset_label
|
166
|
+
# Unset a label
|
167
|
+
# Unset a single pulp_label on the object.
|
168
|
+
# @param deb_apt_repository_href
|
169
|
+
# @param unset_label
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @return [UnsetLabelResponse]
|
172
|
+
describe 'unset_label test' do
|
173
|
+
it 'should work' do
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
147
178
|
# unit tests for update
|
148
179
|
# Update an apt repository
|
149
180
|
# Trigger an asynchronous update task
|
@@ -67,6 +67,7 @@ describe 'RepositoriesAptVersionsApi' do
|
|
67
67
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
68
68
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
69
69
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
70
|
+
# @option opts [String] :q
|
70
71
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
71
72
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
72
73
|
# @return [PaginatedRepositoryVersionResponseList]
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpDebClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("http://pulp")
|
22
22
|
# PulpDebClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpDebClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -74,4 +74,10 @@ describe 'DebAptPublicationResponse' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
describe 'test attribute "publish_upstream_release_fields"' 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
|
+
|
77
83
|
end
|
@@ -62,4 +62,10 @@ describe 'DebAptPublication' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
describe 'test attribute "publish_upstream_release_fields"' 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
|
+
|
65
71
|
end
|
@@ -86,4 +86,22 @@ describe 'DebAptRepositoryResponse' do
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
+
describe 'test attribute "publish_upstream_release_fields"' 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
|
+
describe 'test attribute "signing_service"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "signing_service_release_overrides"' 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
|
+
|
89
107
|
end
|