pulp_ansible_client 0.16.5 → 0.17.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 +89 -21
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +4 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +3 -1
- data/docs/CollectionVersionResponse.md +2 -0
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +233 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NamespaceLink.md +19 -0
- data/docs/NamespaceLinkResponse.md +19 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/PatchedansibleAnsibleRepository.md +4 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +237 -1
- data/docs/RemotesGitApi.md +229 -1
- data/docs/RemotesRoleApi.md +229 -1
- data/docs/RepositoriesAnsibleApi.md +465 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Repository.md +25 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
- data/docs/VersionsApi.md +11 -11
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +281 -1
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +33 -24
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +237 -237
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -150
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -5
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
- data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
- data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/repository.rb +306 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +32 -0
- data/spec/api/ansible_collections_api_spec.rb +50 -0
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/distributions_ansible_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
- data/spec/api/remotes_collection_api_spec.rb +54 -0
- data/spec/api/remotes_git_api_spec.rb +50 -0
- data/spec/api/remotes_role_api_spec.rb +50 -0
- data/spec/api/repositories_ansible_api_spec.rb +106 -0
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
- data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_namespace_response_spec.rb +6 -0
- data/spec/models/collection_summary_response_spec.rb +95 -0
- data/spec/models/collection_version_copy_move_spec.rb +53 -0
- data/spec/models/collection_version_list_response_spec.rb +6 -0
- data/spec/models/collection_version_response_spec.rb +6 -0
- data/spec/models/collection_version_search_list_response_spec.rb +77 -0
- data/spec/models/collection_version_search_list_spec.rb +71 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/namespace_link_response_spec.rb +47 -0
- data/spec/models/namespace_link_spec.rb +47 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/repository_response_spec.rb +89 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
- metadata +242 -114
@@ -0,0 +1,126 @@
|
|
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 PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi' do
|
30
|
+
it 'should create an instance of PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Custom exception handler mixin class.
|
37
|
+
# @param distro_base_path
|
38
|
+
# @param name Required named, only accepts lowercase, numbers and underscores.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :company Optional namespace company owner.
|
41
|
+
# @option opts [String] :email Optional namespace contact email.
|
42
|
+
# @option opts [String] :description Optional short description.
|
43
|
+
# @option opts [String] :resources Optional resource page in markdown format.
|
44
|
+
# @option opts [Array<NamespaceLink>] :links Labeled related links.
|
45
|
+
# @option opts [File] :avatar Optional avatar image for Namespace
|
46
|
+
# @return [AsyncOperationResponse]
|
47
|
+
describe 'create test' 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
|
+
# unit tests for delete
|
54
|
+
# Try to remove the Namespace if no Collections under Namespace are present.
|
55
|
+
# @param distro_base_path
|
56
|
+
# @param name
|
57
|
+
# @param [Hash] opts the optional parameters
|
58
|
+
# @return [AsyncOperationResponse]
|
59
|
+
describe 'delete test' 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
|
+
# unit tests for list
|
66
|
+
# Custom exception handler mixin class.
|
67
|
+
# @param distro_base_path
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [String] :company Filter results where company matches value
|
70
|
+
# @option opts [String] :company__contains Filter results where company contains value
|
71
|
+
# @option opts [String] :company__icontains Filter results where company contains value
|
72
|
+
# @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
|
73
|
+
# @option opts [String] :company__startswith Filter results where company starts with value
|
74
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
75
|
+
# @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
|
76
|
+
# @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
|
77
|
+
# @option opts [String] :name Filter results where name matches value
|
78
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
79
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
80
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
81
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
82
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
83
|
+
# @option opts [Array<String>] :ordering Ordering
|
84
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
85
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
86
|
+
# @return [PaginatedansibleAnsibleNamespaceMetadataResponseList]
|
87
|
+
describe 'list test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# unit tests for partial_update
|
94
|
+
# Custom exception handler mixin class.
|
95
|
+
# @param distro_base_path
|
96
|
+
# @param name
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @option opts [String] :name Required named, only accepts lowercase, numbers and underscores.
|
99
|
+
# @option opts [String] :company Optional namespace company owner.
|
100
|
+
# @option opts [String] :email Optional namespace contact email.
|
101
|
+
# @option opts [String] :description Optional short description.
|
102
|
+
# @option opts [String] :resources Optional resource page in markdown format.
|
103
|
+
# @option opts [Array<NamespaceLink>] :links Labeled related links.
|
104
|
+
# @option opts [File] :avatar Optional avatar image for Namespace
|
105
|
+
# @return [AsyncOperationResponse]
|
106
|
+
describe 'partial_update test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for read
|
113
|
+
# Custom exception handler mixin class.
|
114
|
+
# @param distro_base_path
|
115
|
+
# @param name
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
118
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
119
|
+
# @return [AnsibleAnsibleNamespaceMetadataResponse]
|
120
|
+
describe 'read test' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb
ADDED
@@ -0,0 +1,81 @@
|
|
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 PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi' do
|
30
|
+
it 'should create an instance of PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list
|
36
|
+
# A viewset for cross-repo searches.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :dependency
|
39
|
+
# @option opts [Boolean] :deprecated
|
40
|
+
# @option opts [Array<String>] :distribution Filter collectionversions that are in these distrubtion ids.
|
41
|
+
# @option opts [Array<String>] :distribution_base_path Filter collectionversions that are in these base paths.
|
42
|
+
# @option opts [Boolean] :highest
|
43
|
+
# @option opts [Boolean] :is_deprecated
|
44
|
+
# @option opts [Boolean] :is_highest
|
45
|
+
# @option opts [Boolean] :is_signed
|
46
|
+
# @option opts [String] :keywords
|
47
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
48
|
+
# @option opts [String] :name
|
49
|
+
# @option opts [String] :namespace
|
50
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
51
|
+
# @option opts [Array<String>] :order_by Ordering
|
52
|
+
# @option opts [String] :q
|
53
|
+
# @option opts [Array<String>] :repository Filter collectionversions that are in these repository ids.
|
54
|
+
# @option opts [String] :repository_label Filter labels by search string
|
55
|
+
# @option opts [Array<String>] :repository_name Filter collectionversions that are in these repositories.
|
56
|
+
# @option opts [String] :repository_version
|
57
|
+
# @option opts [Boolean] :signed
|
58
|
+
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
59
|
+
# @option opts [String] :version
|
60
|
+
# @option opts [String] :version_range
|
61
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
62
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
63
|
+
# @return [PaginatedCollectionVersionSearchListResponseList]
|
64
|
+
describe 'list test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for rebuild
|
71
|
+
# A viewset for cross-repo searches.
|
72
|
+
# @param collection_version_search_list
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @return [CollectionVersionSearchListResponse]
|
75
|
+
describe 'rebuild test' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
@@ -32,6 +32,18 @@ describe 'RemotesCollectionApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_role
|
36
|
+
# Add a role for this object to users/groups.
|
37
|
+
# @param ansible_collection_remote_href
|
38
|
+
# @param nested_role
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [NestedRoleResponse]
|
41
|
+
describe 'add_role 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
|
+
|
35
47
|
# unit tests for create
|
36
48
|
# Create a collection remote
|
37
49
|
# ViewSet for Collection Remotes.
|
@@ -75,6 +87,10 @@ describe 'RemotesCollectionApi' do
|
|
75
87
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
76
88
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
77
89
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
90
|
+
# @option opts [String] :url Filter results where url matches value
|
91
|
+
# @option opts [String] :url__contains Filter results where url contains value
|
92
|
+
# @option opts [String] :url__icontains Filter results where url contains value
|
93
|
+
# @option opts [Array<String>] :url__in Filter results where url is in a comma-separated list of values
|
78
94
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
95
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
96
|
# @return [PaginatedansibleCollectionRemoteResponseList]
|
@@ -84,6 +100,32 @@ describe 'RemotesCollectionApi' do
|
|
84
100
|
end
|
85
101
|
end
|
86
102
|
|
103
|
+
# unit tests for list_roles
|
104
|
+
# List roles assigned to this object.
|
105
|
+
# @param ansible_collection_remote_href
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
|
+
# @return [ObjectRolesResponse]
|
110
|
+
describe 'list_roles test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# unit tests for my_permissions
|
117
|
+
# List permissions available to the current user on this object.
|
118
|
+
# @param ansible_collection_remote_href
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
121
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
122
|
+
# @return [MyPermissionsResponse]
|
123
|
+
describe 'my_permissions test' do
|
124
|
+
it 'should work' do
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
87
129
|
# unit tests for partial_update
|
88
130
|
# Update a collection remote
|
89
131
|
# Trigger an asynchronous partial update task
|
@@ -111,6 +153,18 @@ describe 'RemotesCollectionApi' do
|
|
111
153
|
end
|
112
154
|
end
|
113
155
|
|
156
|
+
# unit tests for remove_role
|
157
|
+
# Remove a role for this object from users/groups.
|
158
|
+
# @param ansible_collection_remote_href
|
159
|
+
# @param nested_role
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [NestedRoleResponse]
|
162
|
+
describe 'remove_role test' do
|
163
|
+
it 'should work' do
|
164
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
114
168
|
# unit tests for update
|
115
169
|
# Update a collection remote
|
116
170
|
# Trigger an asynchronous update task
|
@@ -32,6 +32,18 @@ describe 'RemotesGitApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_role
|
36
|
+
# Add a role for this object to users/groups.
|
37
|
+
# @param ansible_git_remote_href
|
38
|
+
# @param nested_role
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [NestedRoleResponse]
|
41
|
+
describe 'add_role 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
|
+
|
35
47
|
# unit tests for create
|
36
48
|
# Create a git remote
|
37
49
|
# ViewSet for Ansible Remotes. This is a tech preview feature. The functionality may change in the future.
|
@@ -84,6 +96,32 @@ describe 'RemotesGitApi' do
|
|
84
96
|
end
|
85
97
|
end
|
86
98
|
|
99
|
+
# unit tests for list_roles
|
100
|
+
# List roles assigned to this object.
|
101
|
+
# @param ansible_git_remote_href
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
104
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
|
+
# @return [ObjectRolesResponse]
|
106
|
+
describe 'list_roles test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for my_permissions
|
113
|
+
# List permissions available to the current user on this object.
|
114
|
+
# @param ansible_git_remote_href
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
117
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
118
|
+
# @return [MyPermissionsResponse]
|
119
|
+
describe 'my_permissions test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
87
125
|
# unit tests for partial_update
|
88
126
|
# Update a git remote
|
89
127
|
# Trigger an asynchronous partial update task
|
@@ -111,6 +149,18 @@ describe 'RemotesGitApi' do
|
|
111
149
|
end
|
112
150
|
end
|
113
151
|
|
152
|
+
# unit tests for remove_role
|
153
|
+
# Remove a role for this object from users/groups.
|
154
|
+
# @param ansible_git_remote_href
|
155
|
+
# @param nested_role
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [NestedRoleResponse]
|
158
|
+
describe 'remove_role test' do
|
159
|
+
it 'should work' do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
114
164
|
# unit tests for update
|
115
165
|
# Update a git remote
|
116
166
|
# Trigger an asynchronous update task
|
@@ -32,6 +32,18 @@ describe 'RemotesRoleApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_role
|
36
|
+
# Add a role for this object to users/groups.
|
37
|
+
# @param ansible_role_remote_href
|
38
|
+
# @param nested_role
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [NestedRoleResponse]
|
41
|
+
describe 'add_role 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
|
+
|
35
47
|
# unit tests for create
|
36
48
|
# Create a role remote
|
37
49
|
# ViewSet for Role Remotes.
|
@@ -84,6 +96,32 @@ describe 'RemotesRoleApi' do
|
|
84
96
|
end
|
85
97
|
end
|
86
98
|
|
99
|
+
# unit tests for list_roles
|
100
|
+
# List roles assigned to this object.
|
101
|
+
# @param ansible_role_remote_href
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
104
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
|
+
# @return [ObjectRolesResponse]
|
106
|
+
describe 'list_roles test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for my_permissions
|
113
|
+
# List permissions available to the current user on this object.
|
114
|
+
# @param ansible_role_remote_href
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
117
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
118
|
+
# @return [MyPermissionsResponse]
|
119
|
+
describe 'my_permissions test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
87
125
|
# unit tests for partial_update
|
88
126
|
# Update a role remote
|
89
127
|
# Trigger an asynchronous partial update task
|
@@ -111,6 +149,18 @@ describe 'RemotesRoleApi' do
|
|
111
149
|
end
|
112
150
|
end
|
113
151
|
|
152
|
+
# unit tests for remove_role
|
153
|
+
# Remove a role for this object from users/groups.
|
154
|
+
# @param ansible_role_remote_href
|
155
|
+
# @param nested_role
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [NestedRoleResponse]
|
158
|
+
describe 'remove_role test' do
|
159
|
+
it 'should work' do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
114
164
|
# unit tests for update
|
115
165
|
# Update a role remote
|
116
166
|
# Trigger an asynchronous update task
|
@@ -32,6 +32,30 @@ describe 'RepositoriesAnsibleApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_role
|
36
|
+
# Add a role for this object to users/groups.
|
37
|
+
# @param ansible_ansible_repository_href
|
38
|
+
# @param nested_role
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [NestedRoleResponse]
|
41
|
+
describe 'add_role 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 copy_collection_version
|
48
|
+
# Trigger an asynchronous task to copy collection versions.
|
49
|
+
# @param ansible_ansible_repository_href
|
50
|
+
# @param collection_version_copy_move
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
53
|
+
describe 'copy_collection_version test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
35
59
|
# unit tests for create
|
36
60
|
# Create an ansible repository
|
37
61
|
# ViewSet for Ansible Repositories.
|
@@ -70,6 +94,14 @@ describe 'RepositoriesAnsibleApi' do
|
|
70
94
|
# @option opts [Array<String>] :ordering Ordering
|
71
95
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
96
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
97
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
98
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
99
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
100
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
101
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
102
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
103
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
104
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
73
105
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
74
106
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
75
107
|
# @return [PaginatedansibleAnsibleRepositoryResponseList]
|
@@ -79,6 +111,31 @@ describe 'RepositoriesAnsibleApi' do
|
|
79
111
|
end
|
80
112
|
end
|
81
113
|
|
114
|
+
# unit tests for list_roles
|
115
|
+
# List roles assigned to this object.
|
116
|
+
# @param ansible_ansible_repository_href
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
119
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
120
|
+
# @return [ObjectRolesResponse]
|
121
|
+
describe 'list_roles test' do
|
122
|
+
it 'should work' do
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# unit tests for mark
|
128
|
+
# Trigger an asynchronous task to mark Ansible content.
|
129
|
+
# @param ansible_ansible_repository_href
|
130
|
+
# @param ansible_repository_mark
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @return [AsyncOperationResponse]
|
133
|
+
describe 'mark test' do
|
134
|
+
it 'should work' do
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
82
139
|
# unit tests for modify
|
83
140
|
# Modify Repository Content
|
84
141
|
# Trigger an asynchronous task to create a new repository version.
|
@@ -92,6 +149,31 @@ describe 'RepositoriesAnsibleApi' do
|
|
92
149
|
end
|
93
150
|
end
|
94
151
|
|
152
|
+
# unit tests for move_collection_version
|
153
|
+
# Trigger an asynchronous task to move collection versions.
|
154
|
+
# @param ansible_ansible_repository_href
|
155
|
+
# @param collection_version_copy_move
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [AsyncOperationResponse]
|
158
|
+
describe 'move_collection_version test' do
|
159
|
+
it 'should work' do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# unit tests for my_permissions
|
165
|
+
# List permissions available to the current user on this object.
|
166
|
+
# @param ansible_ansible_repository_href
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
169
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
170
|
+
# @return [MyPermissionsResponse]
|
171
|
+
describe 'my_permissions test' do
|
172
|
+
it 'should work' do
|
173
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
95
177
|
# unit tests for partial_update
|
96
178
|
# Update an ansible repository
|
97
179
|
# Trigger an asynchronous partial update task
|
@@ -131,6 +213,18 @@ describe 'RepositoriesAnsibleApi' do
|
|
131
213
|
end
|
132
214
|
end
|
133
215
|
|
216
|
+
# unit tests for remove_role
|
217
|
+
# Remove a role for this object from users/groups.
|
218
|
+
# @param ansible_ansible_repository_href
|
219
|
+
# @param nested_role
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [NestedRoleResponse]
|
222
|
+
describe 'remove_role test' do
|
223
|
+
it 'should work' do
|
224
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
134
228
|
# unit tests for sign
|
135
229
|
# Trigger an asynchronous task to sign Ansible content.
|
136
230
|
# @param ansible_ansible_repository_href
|
@@ -155,6 +249,18 @@ describe 'RepositoriesAnsibleApi' do
|
|
155
249
|
end
|
156
250
|
end
|
157
251
|
|
252
|
+
# unit tests for unmark
|
253
|
+
# Trigger an asynchronous task to unmark Ansible content.
|
254
|
+
# @param ansible_ansible_repository_href
|
255
|
+
# @param ansible_repository_mark
|
256
|
+
# @param [Hash] opts the optional parameters
|
257
|
+
# @return [AsyncOperationResponse]
|
258
|
+
describe 'unmark test' do
|
259
|
+
it 'should work' do
|
260
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
158
264
|
# unit tests for update
|
159
265
|
# Update an ansible repository
|
160
266
|
# Trigger an asynchronous update task
|
@@ -32,7 +32,7 @@ describe 'VersionsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for api_v1_roles_versions_list
|
36
36
|
# APIView for Role Versions.
|
37
37
|
# @param ansible_role_href
|
38
38
|
# @param [Hash] opts the optional parameters
|
@@ -41,13 +41,13 @@ describe 'VersionsApi' do
|
|
41
41
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
42
42
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
43
43
|
# @return [PaginatedGalaxyRoleVersionResponseList]
|
44
|
-
describe '
|
44
|
+
describe 'api_v1_roles_versions_list test' do
|
45
45
|
it 'should work' do
|
46
46
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
# unit tests for
|
50
|
+
# unit tests for api_v2_collection_versions_list
|
51
51
|
# APIView for Collections by namespace/name.
|
52
52
|
# @param ansible_collection_version_href
|
53
53
|
# @param [Hash] opts the optional parameters
|
@@ -55,7 +55,7 @@ describe 'VersionsApi' do
|
|
55
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
56
56
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
57
57
|
# @return [PaginatedGalaxyCollectionVersionResponseList]
|
58
|
-
describe '
|
58
|
+
describe 'api_v2_collection_versions_list test' do
|
59
59
|
it 'should work' do
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
61
|
end
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpAnsibleClient::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("https://pulp")
|
22
22
|
# PulpAnsibleClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpAnsibleClient::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("https://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("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|