pulp_deb_client 3.5.0 → 3.5.1
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 +4 -4
- data/README.md +10 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +114 -64
- data/docs/ContentInstallerFileIndicesApi.md +111 -61
- data/docs/ContentInstallerPackagesApi.md +130 -80
- data/docs/ContentPackageIndicesApi.md +111 -61
- data/docs/ContentPackageReleaseComponentsApi.md +111 -61
- data/docs/ContentPackagesApi.md +144 -94
- data/docs/ContentReleaseArchitecturesApi.md +109 -59
- data/docs/ContentReleaseComponentsApi.md +110 -60
- data/docs/ContentReleaseFilesApi.md +111 -61
- data/docs/ContentReleasesApi.md +114 -64
- data/docs/ContentSourceIndicesApi.md +110 -60
- data/docs/ContentSourcePackagesApi.md +137 -87
- data/docs/ContentSourceReleaseComponentsApi.md +111 -61
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +12 -11
- data/docs/DebAptDistribution.md +20 -19
- data/docs/DebAptDistributionResponse.md +32 -31
- data/docs/DebAptPublication.md +18 -17
- data/docs/DebAptPublicationResponse.md +26 -25
- data/docs/DebAptRemote.md +64 -63
- data/docs/DebAptRemoteResponse.md +64 -63
- data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/DebAptRepository.md +22 -21
- data/docs/DebAptRepositoryResponse.md +34 -33
- data/docs/DebCopyApi.md +30 -14
- data/docs/DebGenericContentResponse.md +30 -29
- data/docs/DebInstallerFileIndex.md +16 -15
- data/docs/DebInstallerFileIndexResponse.md +22 -21
- data/docs/DebInstallerPackageResponse.md +88 -87
- data/docs/DebPackageIndex.md +16 -15
- data/docs/DebPackageIndexResponse.md +22 -21
- data/docs/DebPackageReleaseComponent.md +12 -11
- data/docs/DebPackageReleaseComponentResponse.md +18 -17
- data/docs/DebPackageResponse.md +92 -91
- data/docs/DebRelease.md +26 -25
- data/docs/DebReleaseArchitecture.md +12 -11
- data/docs/DebReleaseArchitectureResponse.md +18 -17
- data/docs/DebReleaseComponent.md +12 -11
- data/docs/DebReleaseComponentResponse.md +20 -19
- data/docs/DebReleaseFile.md +18 -17
- data/docs/DebReleaseFileResponse.md +24 -23
- data/docs/DebReleaseResponse.md +32 -31
- data/docs/DebSourceIndex.md +16 -15
- data/docs/DebSourceIndexResponse.md +22 -21
- data/docs/DebSourcePackage.md +12 -11
- data/docs/DebSourcePackageReleaseComponent.md +12 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +18 -17
- data/docs/DebSourcePackageResponse.md +74 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +385 -182
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginateddebAptDistributionResponseList.md +14 -13
- data/docs/PaginateddebAptPublicationResponseList.md +14 -13
- data/docs/PaginateddebAptRemoteResponseList.md +14 -13
- data/docs/PaginateddebAptRepositoryResponseList.md +14 -13
- data/docs/PaginateddebGenericContentResponseList.md +14 -13
- data/docs/PaginateddebInstallerFileIndexResponseList.md +14 -13
- data/docs/PaginateddebInstallerPackageResponseList.md +14 -13
- data/docs/PaginateddebPackageIndexResponseList.md +14 -13
- data/docs/PaginateddebPackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebPackageResponseList.md +14 -13
- data/docs/PaginateddebReleaseArchitectureResponseList.md +14 -13
- data/docs/PaginateddebReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebReleaseFileResponseList.md +14 -13
- data/docs/PaginateddebReleaseResponseList.md +14 -13
- data/docs/PaginateddebSourceIndexResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageResponseList.md +14 -13
- data/docs/PaginateddebVerbatimPublicationResponseList.md +14 -13
- data/docs/PatcheddebAptDistribution.md +20 -19
- data/docs/PatcheddebAptRemote.md +64 -63
- data/docs/PatcheddebAptRepository.md +22 -21
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsAptApi.md +267 -130
- data/docs/PublicationsVerbatimApi.md +267 -130
- data/docs/RemotesAptApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +444 -207
- data/docs/RepositoriesAptVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_files_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +89 -56
- data/lib/pulp_deb_client/api/publications_apt_api.rb +67 -47
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +67 -47
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +104 -68
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +107 -66
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +40 -30
- data/lib/pulp_deb_client/api_client.rb +137 -102
- data/lib/pulp_deb_client/api_error.rb +2 -1
- data/lib/pulp_deb_client/configuration.rb +162 -21
- data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +30 -22
- data/lib/pulp_deb_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_deb_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_deb_client/models/copy.rb +34 -28
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +34 -22
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +58 -22
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +61 -25
- data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_package_index.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_release.rb +36 -22
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_file.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_package.rb +37 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_deb_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +40 -24
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +67 -25
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
- data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
- data/lib/pulp_deb_client/models/repair.rb +30 -22
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_deb_client/models/set_label.rb +34 -22
- data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
- data/lib/pulp_deb_client/models/unset_label.rb +32 -22
- data/lib/pulp_deb_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -5
- data/pulp_deb_client.gemspec +9 -6
- data/spec/api/content_generic_contents_api_spec.rb +4 -4
- data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
- data/spec/api/content_installer_packages_api_spec.rb +4 -4
- data/spec/api/content_package_indices_api_spec.rb +4 -4
- data/spec/api/content_package_release_components_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_release_architectures_api_spec.rb +4 -4
- data/spec/api/content_release_components_api_spec.rb +4 -4
- data/spec/api/content_release_files_api_spec.rb +4 -4
- data/spec/api/content_releases_api_spec.rb +4 -4
- data/spec/api/content_source_indices_api_spec.rb +4 -4
- data/spec/api/content_source_packages_api_spec.rb +4 -4
- data/spec/api/content_source_release_components_api_spec.rb +4 -4
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +13 -13
- data/spec/api/publications_apt_api_spec.rb +16 -15
- data/spec/api/publications_verbatim_api_spec.rb +16 -15
- data/spec/api/remotes_apt_api_spec.rb +20 -19
- data/spec/api/repositories_apt_api_spec.rb +15 -15
- data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
- data/spec/models/apt_repository_sync_url_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +9 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
- data/spec/models/deb_apt_distribution_spec.rb +13 -18
- data/spec/models/deb_apt_publication_response_spec.rb +16 -21
- data/spec/models/deb_apt_publication_spec.rb +12 -17
- data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/deb_apt_remote_response_spec.rb +35 -40
- data/spec/models/deb_apt_remote_spec.rb +35 -40
- data/spec/models/deb_apt_repository_response_spec.rb +20 -25
- data/spec/models/deb_apt_repository_spec.rb +14 -19
- data/spec/models/deb_generic_content_response_spec.rb +18 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +14 -19
- data/spec/models/deb_installer_file_index_spec.rb +11 -16
- data/spec/models/deb_installer_package_response_spec.rb +47 -52
- data/spec/models/deb_package_index_response_spec.rb +14 -19
- data/spec/models/deb_package_index_spec.rb +11 -16
- data/spec/models/deb_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_package_release_component_spec.rb +9 -14
- data/spec/models/deb_package_response_spec.rb +49 -54
- data/spec/models/deb_release_architecture_response_spec.rb +12 -17
- data/spec/models/deb_release_architecture_spec.rb +9 -14
- data/spec/models/deb_release_component_response_spec.rb +13 -18
- data/spec/models/deb_release_component_spec.rb +9 -14
- data/spec/models/deb_release_file_response_spec.rb +15 -20
- data/spec/models/deb_release_file_spec.rb +12 -17
- data/spec/models/deb_release_response_spec.rb +19 -24
- data/spec/models/deb_release_spec.rb +16 -21
- data/spec/models/deb_source_index_response_spec.rb +14 -19
- data/spec/models/deb_source_index_spec.rb +11 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_source_package_release_component_spec.rb +9 -14
- data/spec/models/deb_source_package_response_spec.rb +40 -45
- data/spec/models/deb_source_package_spec.rb +9 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
- data/spec/models/deb_verbatim_publication_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +10 -15
- data/spec/models/patcheddeb_apt_distribution_spec.rb +13 -18
- data/spec/models/patcheddeb_apt_remote_spec.rb +35 -40
- data/spec/models/patcheddeb_apt_repository_spec.rb +14 -19
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +115 -103
- data/docs/DebAptRemoteResponseHiddenFields.md +0 -19
- data/docs/DebGenericContent.md +0 -27
- data/docs/DebInstallerPackage.md +0 -27
- data/docs/DebPackage.md +0 -31
- data/lib/pulp_deb_client/models/deb_generic_content.rb +0 -297
- data/lib/pulp_deb_client/models/deb_installer_package.rb +0 -288
- data/lib/pulp_deb_client/models/deb_package.rb +0 -338
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/deb_generic_content_spec.rb +0 -71
- data/spec/models/deb_installer_package_spec.rb +0 -71
- data/spec/models/deb_package_spec.rb +0 -83
@@ -1,338 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpDebClient
|
16
|
-
# A Serializer for Package.
|
17
|
-
class DebPackage
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
|
-
# Path where the artifact is located relative to distributions base_path
|
25
|
-
attr_accessor :relative_path
|
26
|
-
|
27
|
-
# An uploaded file that may be turned into the content unit.
|
28
|
-
attr_accessor :file
|
29
|
-
|
30
|
-
# An uncommitted upload that may be turned into the content unit.
|
31
|
-
attr_accessor :upload
|
32
|
-
|
33
|
-
# A url that Pulp can download and turn into the content unit.
|
34
|
-
attr_accessor :file_url
|
35
|
-
|
36
|
-
# Name of the distribution.
|
37
|
-
attr_accessor :distribution
|
38
|
-
|
39
|
-
# Name of the component.
|
40
|
-
attr_accessor :component
|
41
|
-
|
42
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
43
|
-
def self.attribute_map
|
44
|
-
{
|
45
|
-
:'repository' => :'repository',
|
46
|
-
:'artifact' => :'artifact',
|
47
|
-
:'relative_path' => :'relative_path',
|
48
|
-
:'file' => :'file',
|
49
|
-
:'upload' => :'upload',
|
50
|
-
:'file_url' => :'file_url',
|
51
|
-
:'distribution' => :'distribution',
|
52
|
-
:'component' => :'component'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Attribute type mapping.
|
57
|
-
def self.openapi_types
|
58
|
-
{
|
59
|
-
:'repository' => :'String',
|
60
|
-
:'artifact' => :'String',
|
61
|
-
:'relative_path' => :'String',
|
62
|
-
:'file' => :'File',
|
63
|
-
:'upload' => :'String',
|
64
|
-
:'file_url' => :'String',
|
65
|
-
:'distribution' => :'String',
|
66
|
-
:'component' => :'String'
|
67
|
-
}
|
68
|
-
end
|
69
|
-
|
70
|
-
# List of attributes with nullable: true
|
71
|
-
def self.openapi_nullable
|
72
|
-
Set.new([
|
73
|
-
])
|
74
|
-
end
|
75
|
-
|
76
|
-
# Initializes the object
|
77
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
78
|
-
def initialize(attributes = {})
|
79
|
-
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebPackage` initialize method"
|
81
|
-
end
|
82
|
-
|
83
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebPackage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
|
-
end
|
88
|
-
h[k.to_sym] = v
|
89
|
-
}
|
90
|
-
|
91
|
-
if attributes.key?(:'repository')
|
92
|
-
self.repository = attributes[:'repository']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'artifact')
|
96
|
-
self.artifact = attributes[:'artifact']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'relative_path')
|
100
|
-
self.relative_path = attributes[:'relative_path']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'file')
|
104
|
-
self.file = attributes[:'file']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'upload')
|
108
|
-
self.upload = attributes[:'upload']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'file_url')
|
112
|
-
self.file_url = attributes[:'file_url']
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.key?(:'distribution')
|
116
|
-
self.distribution = attributes[:'distribution']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'component')
|
120
|
-
self.component = attributes[:'component']
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
125
|
-
# @return Array for valid properties with the reasons
|
126
|
-
def list_invalid_properties
|
127
|
-
invalid_properties = Array.new
|
128
|
-
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
129
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if !@file_url.nil? && @file_url.to_s.length < 1
|
133
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if !@distribution.nil? && @distribution.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
|
-
if !@component.nil? && @component.to_s.length < 1
|
141
|
-
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
142
|
-
end
|
143
|
-
|
144
|
-
invalid_properties
|
145
|
-
end
|
146
|
-
|
147
|
-
# Check to see if the all the properties in the model are valid
|
148
|
-
# @return true if the model is valid
|
149
|
-
def valid?
|
150
|
-
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
151
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
152
|
-
return false if !@distribution.nil? && @distribution.to_s.length < 1
|
153
|
-
return false if !@component.nil? && @component.to_s.length < 1
|
154
|
-
true
|
155
|
-
end
|
156
|
-
|
157
|
-
# Custom attribute writer method with validation
|
158
|
-
# @param [Object] relative_path Value to be assigned
|
159
|
-
def relative_path=(relative_path)
|
160
|
-
if !relative_path.nil? && relative_path.to_s.length < 1
|
161
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
162
|
-
end
|
163
|
-
|
164
|
-
@relative_path = relative_path
|
165
|
-
end
|
166
|
-
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] file_url Value to be assigned
|
169
|
-
def file_url=(file_url)
|
170
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@file_url = file_url
|
175
|
-
end
|
176
|
-
|
177
|
-
# Custom attribute writer method with validation
|
178
|
-
# @param [Object] distribution Value to be assigned
|
179
|
-
def distribution=(distribution)
|
180
|
-
if !distribution.nil? && distribution.to_s.length < 1
|
181
|
-
fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
|
182
|
-
end
|
183
|
-
|
184
|
-
@distribution = distribution
|
185
|
-
end
|
186
|
-
|
187
|
-
# Custom attribute writer method with validation
|
188
|
-
# @param [Object] component Value to be assigned
|
189
|
-
def component=(component)
|
190
|
-
if !component.nil? && component.to_s.length < 1
|
191
|
-
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
192
|
-
end
|
193
|
-
|
194
|
-
@component = component
|
195
|
-
end
|
196
|
-
|
197
|
-
# Checks equality by comparing each attribute.
|
198
|
-
# @param [Object] Object to be compared
|
199
|
-
def ==(o)
|
200
|
-
return true if self.equal?(o)
|
201
|
-
self.class == o.class &&
|
202
|
-
repository == o.repository &&
|
203
|
-
artifact == o.artifact &&
|
204
|
-
relative_path == o.relative_path &&
|
205
|
-
file == o.file &&
|
206
|
-
upload == o.upload &&
|
207
|
-
file_url == o.file_url &&
|
208
|
-
distribution == o.distribution &&
|
209
|
-
component == o.component
|
210
|
-
end
|
211
|
-
|
212
|
-
# @see the `==` method
|
213
|
-
# @param [Object] Object to be compared
|
214
|
-
def eql?(o)
|
215
|
-
self == o
|
216
|
-
end
|
217
|
-
|
218
|
-
# Calculates hash code according to all attributes.
|
219
|
-
# @return [Integer] Hash code
|
220
|
-
def hash
|
221
|
-
[repository, artifact, relative_path, file, upload, file_url, distribution, component].hash
|
222
|
-
end
|
223
|
-
|
224
|
-
# Builds the object from hash
|
225
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
226
|
-
# @return [Object] Returns the model itself
|
227
|
-
def self.build_from_hash(attributes)
|
228
|
-
new.build_from_hash(attributes)
|
229
|
-
end
|
230
|
-
|
231
|
-
# Builds the object from hash
|
232
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
233
|
-
# @return [Object] Returns the model itself
|
234
|
-
def build_from_hash(attributes)
|
235
|
-
return nil unless attributes.is_a?(Hash)
|
236
|
-
self.class.openapi_types.each_pair do |key, type|
|
237
|
-
if type =~ /\AArray<(.*)>/i
|
238
|
-
# check to ensure the input is an array given that the attribute
|
239
|
-
# is documented as an array but the input is not
|
240
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
241
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
242
|
-
end
|
243
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
244
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
245
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
246
|
-
end
|
247
|
-
|
248
|
-
self
|
249
|
-
end
|
250
|
-
|
251
|
-
# Deserializes the data based on type
|
252
|
-
# @param string type Data type
|
253
|
-
# @param string value Value to be deserialized
|
254
|
-
# @return [Object] Deserialized data
|
255
|
-
def _deserialize(type, value)
|
256
|
-
case type.to_sym
|
257
|
-
when :DateTime
|
258
|
-
DateTime.parse(value)
|
259
|
-
when :Date
|
260
|
-
Date.parse(value)
|
261
|
-
when :String
|
262
|
-
value.to_s
|
263
|
-
when :Integer
|
264
|
-
value.to_i
|
265
|
-
when :Float
|
266
|
-
value.to_f
|
267
|
-
when :Boolean
|
268
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
269
|
-
true
|
270
|
-
else
|
271
|
-
false
|
272
|
-
end
|
273
|
-
when :Object
|
274
|
-
# generic object (usually a Hash), return directly
|
275
|
-
value
|
276
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
277
|
-
inner_type = Regexp.last_match[:inner_type]
|
278
|
-
value.map { |v| _deserialize(inner_type, v) }
|
279
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
280
|
-
k_type = Regexp.last_match[:k_type]
|
281
|
-
v_type = Regexp.last_match[:v_type]
|
282
|
-
{}.tap do |hash|
|
283
|
-
value.each do |k, v|
|
284
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
285
|
-
end
|
286
|
-
end
|
287
|
-
else # model
|
288
|
-
PulpDebClient.const_get(type).build_from_hash(value)
|
289
|
-
end
|
290
|
-
end
|
291
|
-
|
292
|
-
# Returns the string representation of the object
|
293
|
-
# @return [String] String presentation of the object
|
294
|
-
def to_s
|
295
|
-
to_hash.to_s
|
296
|
-
end
|
297
|
-
|
298
|
-
# to_body is an alias to to_hash (backward compatibility)
|
299
|
-
# @return [Hash] Returns the object in the form of hash
|
300
|
-
def to_body
|
301
|
-
to_hash
|
302
|
-
end
|
303
|
-
|
304
|
-
# Returns the object in the form of hash
|
305
|
-
# @return [Hash] Returns the object in the form of hash
|
306
|
-
def to_hash
|
307
|
-
hash = {}
|
308
|
-
self.class.attribute_map.each_pair do |attr, param|
|
309
|
-
value = self.send(attr)
|
310
|
-
if value.nil?
|
311
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
312
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
313
|
-
end
|
314
|
-
|
315
|
-
hash[param] = _to_hash(value)
|
316
|
-
end
|
317
|
-
hash
|
318
|
-
end
|
319
|
-
|
320
|
-
# Outputs non-array value in the form of hash
|
321
|
-
# For object, use to_hash. Otherwise, just return the value
|
322
|
-
# @param [Object] value Any valid value
|
323
|
-
# @return [Hash] Returns the value in the form of hash
|
324
|
-
def _to_hash(value)
|
325
|
-
if value.is_a?(Array)
|
326
|
-
value.compact.map { |v| _to_hash(v) }
|
327
|
-
elsif value.is_a?(Hash)
|
328
|
-
{}.tap do |hash|
|
329
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
330
|
-
end
|
331
|
-
elsif value.respond_to? :to_hash
|
332
|
-
value.to_hash
|
333
|
-
else
|
334
|
-
value
|
335
|
-
end
|
336
|
-
end
|
337
|
-
end
|
338
|
-
end
|
data/spec/api_client_spec.rb
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
|
15
|
-
describe PulpDebClient::ApiClient do
|
16
|
-
context 'initialization' do
|
17
|
-
context 'URL stuff' do
|
18
|
-
context 'host' do
|
19
|
-
it 'removes http from host' do
|
20
|
-
PulpDebClient.configure { |c| c.host = 'http://example.com' }
|
21
|
-
expect(PulpDebClient::Configuration.default.host).to eq('example.com')
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'removes https from host' do
|
25
|
-
PulpDebClient.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
-
expect(PulpDebClient::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'removes trailing path from host' do
|
30
|
-
PulpDebClient.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
-
expect(PulpDebClient::Configuration.default.host).to eq('hobo.com')
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
context 'base_path' do
|
36
|
-
it "prepends a slash to base_path" do
|
37
|
-
PulpDebClient.configure { |c| c.base_path = 'v4/dog' }
|
38
|
-
expect(PulpDebClient::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
-
end
|
40
|
-
|
41
|
-
it "doesn't prepend a slash if one is already there" do
|
42
|
-
PulpDebClient.configure { |c| c.base_path = '/v4/dog' }
|
43
|
-
expect(PulpDebClient::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
-
end
|
45
|
-
|
46
|
-
it "ends up as a blank string if nil" do
|
47
|
-
PulpDebClient.configure { |c| c.base_path = nil }
|
48
|
-
expect(PulpDebClient::Configuration.default.base_path).to eq('')
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe '#deserialize' do
|
55
|
-
it "handles Array<Integer>" do
|
56
|
-
api_client = PulpDebClient::ApiClient.new
|
57
|
-
headers = { 'Content-Type' => 'application/json' }
|
58
|
-
response = double('response', headers: headers, body: '[12, 34]')
|
59
|
-
data = api_client.deserialize(response, 'Array<Integer>')
|
60
|
-
expect(data).to be_instance_of(Array)
|
61
|
-
expect(data).to eq([12, 34])
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'handles Array<Array<Integer>>' do
|
65
|
-
api_client = PulpDebClient::ApiClient.new
|
66
|
-
headers = { 'Content-Type' => 'application/json' }
|
67
|
-
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
68
|
-
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
69
|
-
expect(data).to be_instance_of(Array)
|
70
|
-
expect(data).to eq([[12, 34], [56]])
|
71
|
-
end
|
72
|
-
|
73
|
-
it 'handles Hash<String, String>' do
|
74
|
-
api_client = PulpDebClient::ApiClient.new
|
75
|
-
headers = { 'Content-Type' => 'application/json' }
|
76
|
-
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
77
|
-
data = api_client.deserialize(response, 'Hash<String, String>')
|
78
|
-
expect(data).to be_instance_of(Hash)
|
79
|
-
expect(data).to eq(:message => 'Hello')
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe "#object_to_hash" do
|
84
|
-
it 'ignores nils and includes empty arrays' do
|
85
|
-
# uncomment below to test object_to_hash for model
|
86
|
-
# api_client = PulpDebClient::ApiClient.new
|
87
|
-
# _model = PulpDebClient::ModelName.new
|
88
|
-
# update the model attribute below
|
89
|
-
# _model.id = 1
|
90
|
-
# update the expected value (hash) below
|
91
|
-
# expected = {id: 1, name: '', tags: []}
|
92
|
-
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
describe '#build_collection_param' do
|
97
|
-
let(:param) { ['aa', 'bb', 'cc'] }
|
98
|
-
let(:api_client) { PulpDebClient::ApiClient.new }
|
99
|
-
|
100
|
-
it 'works for csv' do
|
101
|
-
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
102
|
-
end
|
103
|
-
|
104
|
-
it 'works for ssv' do
|
105
|
-
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
106
|
-
end
|
107
|
-
|
108
|
-
it 'works for tsv' do
|
109
|
-
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
110
|
-
end
|
111
|
-
|
112
|
-
it 'works for pipes' do
|
113
|
-
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
114
|
-
end
|
115
|
-
|
116
|
-
it 'works for multi' do
|
117
|
-
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
118
|
-
end
|
119
|
-
|
120
|
-
it 'fails for invalid collection format' do
|
121
|
-
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
describe '#json_mime?' do
|
126
|
-
let(:api_client) { PulpDebClient::ApiClient.new }
|
127
|
-
|
128
|
-
it 'works' do
|
129
|
-
expect(api_client.json_mime?(nil)).to eq false
|
130
|
-
expect(api_client.json_mime?('')).to eq false
|
131
|
-
|
132
|
-
expect(api_client.json_mime?('application/json')).to eq true
|
133
|
-
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
134
|
-
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
135
|
-
|
136
|
-
expect(api_client.json_mime?('application/xml')).to eq false
|
137
|
-
expect(api_client.json_mime?('text/plain')).to eq false
|
138
|
-
expect(api_client.json_mime?('application/jsonp')).to eq false
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
describe '#select_header_accept' do
|
143
|
-
let(:api_client) { PulpDebClient::ApiClient.new }
|
144
|
-
|
145
|
-
it 'works' do
|
146
|
-
expect(api_client.select_header_accept(nil)).to be_nil
|
147
|
-
expect(api_client.select_header_accept([])).to be_nil
|
148
|
-
|
149
|
-
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
150
|
-
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
151
|
-
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
152
|
-
|
153
|
-
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
154
|
-
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
describe '#select_header_content_type' do
|
159
|
-
let(:api_client) { PulpDebClient::ApiClient.new }
|
160
|
-
|
161
|
-
it 'works' do
|
162
|
-
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
163
|
-
expect(api_client.select_header_content_type([])).to eq('application/json')
|
164
|
-
|
165
|
-
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
166
|
-
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
167
|
-
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
168
|
-
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
169
|
-
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
describe '#sanitize_filename' do
|
174
|
-
let(:api_client) { PulpDebClient::ApiClient.new }
|
175
|
-
|
176
|
-
it 'works' do
|
177
|
-
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
178
|
-
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
179
|
-
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
180
|
-
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
181
|
-
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
182
|
-
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
183
|
-
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
184
|
-
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
185
|
-
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
data/spec/configuration_spec.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
|
15
|
-
describe PulpDebClient::Configuration do
|
16
|
-
let(:config) { PulpDebClient::Configuration.default }
|
17
|
-
|
18
|
-
before(:each) do
|
19
|
-
# uncomment below to setup host and base_path
|
20
|
-
# require 'URI'
|
21
|
-
# uri = URI.parse("http://localhost:24817")
|
22
|
-
# PulpDebClient.configure do |c|
|
23
|
-
# c.host = uri.host
|
24
|
-
# c.base_path = uri.path
|
25
|
-
# end
|
26
|
-
end
|
27
|
-
|
28
|
-
describe '#base_url' do
|
29
|
-
it 'should have the default value' do
|
30
|
-
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://localhost:24817")
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should remove trailing slashes' do
|
35
|
-
[nil, '', '/', '//'].each do |base_path|
|
36
|
-
config.base_path = base_path
|
37
|
-
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://localhost:24817")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpDebClient::DebGenericContent
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'DebGenericContent' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpDebClient::DebGenericContent.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of DebGenericContent' do
|
31
|
-
it 'should create an instance of DebGenericContent' do
|
32
|
-
expect(@instance).to be_instance_of(PulpDebClient::DebGenericContent)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "repository"' 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 "artifact"' 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 "relative_path"' 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 "file"' 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 "upload"' 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 "file_url"' 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
|