pulp_ansible_client 0.16.3 → 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 +88 -22
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +3 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +4 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionsApi.md +230 -6
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionRefResponse.md +1 -1
- data/docs/CollectionResponse.md +6 -6
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +4 -2
- data/docs/CollectionVersionResponse.md +6 -4
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +2 -6
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +2 -6
- data/docs/ContentCollectionVersionsApi.md +6 -10
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +2 -6
- data/docs/DistributionsAnsibleApi.md +230 -6
- data/docs/GalaxyCollectionResponse.md +4 -4
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.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 +3 -1
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
- data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +6 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +6 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/RemotesCollectionApi.md +238 -6
- data/docs/RemotesGitApi.md +230 -6
- data/docs/RemotesRoleApi.md +230 -6
- data/docs/RepositoriesAnsibleApi.md +450 -6
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
- data/docs/Repository.md +25 -0
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +6 -4
- data/docs/VersionsApi.md +10 -10
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +270 -8
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -14
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +270 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
- 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_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -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_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
- 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_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
- 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 +283 -9
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +270 -8
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +270 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +542 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- 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 +14 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +23 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- 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_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +243 -243
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- 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_ref_response.rb +0 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
- 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 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -5
- 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/galaxy_collection_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
- 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 +14 -5
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
- 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_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 -5
- 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 +51 -3
- data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_signatures_api_spec.rb +1 -3
- data/spec/api/content_collection_versions_api_spec.rb +3 -5
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/content_roles_api_spec.rb +1 -3
- data/spec/api/distributions_ansible_api_spec.rb +51 -3
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
- 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_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -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_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
- 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_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -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 +55 -3
- data/spec/api/remotes_git_api_spec.rb +51 -3
- data/spec/api/remotes_role_api_spec.rb +51 -3
- data/spec/api/repositories_ansible_api_spec.rb +99 -3
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
- data/spec/api/versions_api_spec.rb +4 -4
- 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_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- 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 +19 -19
- 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 +230 -102
@@ -0,0 +1,83 @@
|
|
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::ContentCollectionMarksApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentCollectionMarksApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::ContentCollectionMarksApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentCollectionMarksApi' do
|
30
|
+
it 'should create an instance of ContentCollectionMarksApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::ContentCollectionMarksApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a collection version mark
|
37
|
+
# ViewSet for looking at mark objects for CollectionVersion content.
|
38
|
+
# @param ansible_collection_version_mark
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AnsibleCollectionVersionMarkResponse]
|
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 collection version marks
|
49
|
+
# ViewSet for looking at mark objects for CollectionVersion content.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
52
|
+
# @option opts [String] :marked_collection Filter marks for collection version
|
53
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
54
|
+
# @option opts [Array<String>] :ordering Ordering
|
55
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
56
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
57
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
58
|
+
# @option opts [String] :value Filter marks by value
|
59
|
+
# @option opts [Array<String>] :value__in Filter results where value is in a comma-separated list of values
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
|
+
# @return [PaginatedansibleCollectionVersionMarkResponseList]
|
63
|
+
describe 'list test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for read
|
70
|
+
# Inspect a collection version mark
|
71
|
+
# ViewSet for looking at mark objects for CollectionVersion content.
|
72
|
+
# @param ansible_collection_version_mark_href
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
75
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
76
|
+
# @return [AnsibleCollectionVersionMarkResponse]
|
77
|
+
describe 'read test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
@@ -52,11 +52,9 @@ describe 'ContentCollectionSignaturesApi' do
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
53
|
# @option opts [Integer] :limit Number of results to return per page.
|
54
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
|
-
# @option opts [Array<String>] :ordering Ordering
|
55
|
+
# @option opts [Array<String>] :ordering Ordering
|
56
56
|
# @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
|
57
57
|
# @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
|
58
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
59
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
60
58
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
61
59
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
62
60
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -36,10 +36,10 @@ describe 'ContentCollectionVersionsApi' do
|
|
36
36
|
# Create a collection version
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [
|
39
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
40
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
41
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
41
42
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
|
-
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
43
43
|
# @option opts [String] :expected_name The name of the collection.
|
44
44
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
45
45
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -59,9 +59,7 @@ describe 'ContentCollectionVersionsApi' do
|
|
59
59
|
# @option opts [String] :name
|
60
60
|
# @option opts [String] :namespace
|
61
61
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
|
-
# @option opts [Array<String>] :ordering Ordering
|
63
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
64
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
62
|
+
# @option opts [Array<String>] :ordering Ordering
|
65
63
|
# @option opts [String] :q
|
66
64
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
67
65
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -0,0 +1,93 @@
|
|
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::ContentNamespacesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentNamespacesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::ContentNamespacesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentNamespacesApi' do
|
30
|
+
it 'should create an instance of ContentNamespacesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::ContentNamespacesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for avatar
|
36
|
+
# Get the logo for the this namespace.
|
37
|
+
# @param ansible_ansible_namespace_metadata_href
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
40
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
41
|
+
# @return [nil]
|
42
|
+
describe 'avatar test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for list
|
49
|
+
# List ansible namespace metadatas
|
50
|
+
# ViewSet for AnsibleNamespace.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :company Filter results where company matches value
|
53
|
+
# @option opts [String] :company__contains Filter results where company contains value
|
54
|
+
# @option opts [String] :company__icontains Filter results where company contains value
|
55
|
+
# @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
|
56
|
+
# @option opts [String] :company__startswith Filter results where company starts with value
|
57
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
58
|
+
# @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
|
59
|
+
# @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
|
60
|
+
# @option opts [String] :name Filter results where name matches value
|
61
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
62
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
63
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
64
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
65
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
66
|
+
# @option opts [Array<String>] :ordering Ordering
|
67
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
68
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
69
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
70
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
71
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
72
|
+
# @return [PaginatedansibleAnsibleNamespaceMetadataResponseList]
|
73
|
+
describe 'list test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for read
|
80
|
+
# Inspect an ansible namespace metadata
|
81
|
+
# ViewSet for AnsibleNamespace.
|
82
|
+
# @param ansible_ansible_namespace_metadata_href
|
83
|
+
# @param [Hash] opts the optional parameters
|
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 [AnsibleAnsibleNamespaceMetadataResponse]
|
87
|
+
describe 'read 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
|
+
end
|
@@ -52,9 +52,7 @@ describe 'ContentRolesApi' do
|
|
52
52
|
# @option opts [String] :name Filter results where name matches value
|
53
53
|
# @option opts [String] :namespace Filter results where namespace matches value
|
54
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
|
-
# @option opts [Array<String>] :ordering Ordering
|
56
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
57
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [Array<String>] :ordering Ordering
|
58
56
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
59
57
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
60
58
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -32,6 +32,18 @@ describe 'DistributionsAnsibleApi' 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_distribution_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 an ansible distribution
|
37
49
|
# Trigger an asynchronous create task
|
@@ -71,9 +83,7 @@ describe 'DistributionsAnsibleApi' do
|
|
71
83
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
84
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
73
85
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
|
-
# @option opts [Array<String>] :ordering Ordering
|
75
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
76
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
86
|
+
# @option opts [Array<String>] :ordering Ordering
|
77
87
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
78
88
|
# @option opts [String] :repository Filter results where repository matches value
|
79
89
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
@@ -87,6 +97,32 @@ describe 'DistributionsAnsibleApi' do
|
|
87
97
|
end
|
88
98
|
end
|
89
99
|
|
100
|
+
# unit tests for list_roles
|
101
|
+
# List roles assigned to this object.
|
102
|
+
# @param ansible_ansible_distribution_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 [ObjectRolesResponse]
|
107
|
+
describe 'list_roles 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
|
+
# unit tests for my_permissions
|
114
|
+
# List permissions available to the current user on this object.
|
115
|
+
# @param ansible_ansible_distribution_href
|
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 [MyPermissionsResponse]
|
120
|
+
describe 'my_permissions 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
|
+
|
90
126
|
# unit tests for partial_update
|
91
127
|
# Update an ansible distribution
|
92
128
|
# Trigger an asynchronous partial update task
|
@@ -114,6 +150,18 @@ describe 'DistributionsAnsibleApi' do
|
|
114
150
|
end
|
115
151
|
end
|
116
152
|
|
153
|
+
# unit tests for remove_role
|
154
|
+
# Remove a role for this object from users/groups.
|
155
|
+
# @param ansible_ansible_distribution_href
|
156
|
+
# @param nested_role
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [NestedRoleResponse]
|
159
|
+
describe 'remove_role test' do
|
160
|
+
it 'should work' do
|
161
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
117
165
|
# unit tests for update
|
118
166
|
# Update an ansible distribution
|
119
167
|
# Trigger an asynchronous update task
|
@@ -39,9 +39,7 @@ describe 'PulpAnsibleApiV3CollectionsAllApi' do
|
|
39
39
|
# @option opts [Boolean] :deprecated
|
40
40
|
# @option opts [String] :name
|
41
41
|
# @option opts [String] :namespace
|
42
|
-
# @option opts [Array<String>] :ordering Ordering
|
43
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
44
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
42
|
+
# @option opts [Array<String>] :ordering Ordering
|
45
43
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
46
44
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
47
45
|
# @return [Array<CollectionResponse>]
|
@@ -54,9 +54,7 @@ describe 'PulpAnsibleApiV3CollectionsApi' do
|
|
54
54
|
# @option opts [String] :name
|
55
55
|
# @option opts [String] :namespace
|
56
56
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
57
|
-
# @option opts [Array<String>] :ordering Ordering
|
58
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
59
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
57
|
+
# @option opts [Array<String>] :ordering Ordering
|
60
58
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
59
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
60
|
# @return [PaginatedCollectionResponseList]
|
@@ -57,9 +57,7 @@ describe 'PulpAnsibleApiV3CollectionsVersionsApi' do
|
|
57
57
|
# @option opts [String] :name2
|
58
58
|
# @option opts [String] :namespace2
|
59
59
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
60
|
-
# @option opts [Array<String>] :ordering Ordering
|
61
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
62
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
60
|
+
# @option opts [Array<String>] :ordering Ordering
|
63
61
|
# @option opts [String] :q
|
64
62
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
65
63
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -0,0 +1,77 @@
|
|
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::PulpAnsibleApiV3NamespacesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PulpAnsibleApiV3NamespacesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::PulpAnsibleApiV3NamespacesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PulpAnsibleApiV3NamespacesApi' do
|
30
|
+
it 'should create an instance of PulpAnsibleApiV3NamespacesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::PulpAnsibleApiV3NamespacesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list
|
36
|
+
# Legacy v3 endpoint.
|
37
|
+
# @param path
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :company Filter results where company matches value
|
40
|
+
# @option opts [String] :company__contains Filter results where company contains value
|
41
|
+
# @option opts [String] :company__icontains Filter results where company contains value
|
42
|
+
# @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
|
43
|
+
# @option opts [String] :company__startswith Filter results where company starts with value
|
44
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
45
|
+
# @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
|
46
|
+
# @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
|
47
|
+
# @option opts [String] :name Filter results where name matches value
|
48
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
49
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
50
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
51
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
52
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
53
|
+
# @option opts [Array<String>] :ordering Ordering
|
54
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
55
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
56
|
+
# @return [PaginatedansibleAnsibleNamespaceMetadataResponseList]
|
57
|
+
describe 'list test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# unit tests for read
|
64
|
+
# Legacy v3 endpoint.
|
65
|
+
# @param name
|
66
|
+
# @param path
|
67
|
+
# @param [Hash] opts the optional parameters
|
68
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
69
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
70
|
+
# @return [AnsibleAnsibleNamespaceMetadataResponse]
|
71
|
+
describe 'read test' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
@@ -32,14 +32,14 @@ describe 'PulpAnsibleApiV3PluginAnsibleClientConfigurationApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
#
|
35
|
+
# unit tests for read
|
36
|
+
# Return configurations for the ansible-galaxy client.
|
37
37
|
# @param path
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
40
40
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
41
41
|
# @return [ClientConfigurationResponse]
|
42
|
-
describe '
|
42
|
+
describe 'read test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb
CHANGED
@@ -40,9 +40,7 @@ describe 'PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi' do
|
|
40
40
|
# @option opts [Boolean] :deprecated
|
41
41
|
# @option opts [String] :name
|
42
42
|
# @option opts [String] :namespace
|
43
|
-
# @option opts [Array<String>] :ordering Ordering
|
44
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
45
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
43
|
+
# @option opts [Array<String>] :ordering Ordering
|
46
44
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
47
45
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
48
46
|
# @return [Array<CollectionResponse>]
|
@@ -56,9 +56,7 @@ describe 'PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi' do
|
|
56
56
|
# @option opts [String] :name
|
57
57
|
# @option opts [String] :namespace
|
58
58
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
59
|
-
# @option opts [Array<String>] :ordering Ordering
|
60
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
61
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
59
|
+
# @option opts [Array<String>] :ordering Ordering
|
62
60
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
63
61
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
64
62
|
# @return [PaginatedCollectionResponseList]
|
data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb
CHANGED
@@ -59,9 +59,7 @@ describe 'PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi' do
|
|
59
59
|
# @option opts [String] :name2
|
60
60
|
# @option opts [String] :namespace2
|
61
61
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
|
-
# @option opts [Array<String>] :ordering Ordering
|
63
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
64
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
62
|
+
# @option opts [Array<String>] :ordering Ordering
|
65
63
|
# @option opts [String] :q
|
66
64
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
67
65
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -0,0 +1,131 @@
|
|
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::PulpAnsibleApiV3PluginAnsibleContentNamespacesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PulpAnsibleApiV3PluginAnsibleContentNamespacesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpAnsibleClient::PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PulpAnsibleApiV3PluginAnsibleContentNamespacesApi' do
|
30
|
+
it 'should create an instance of PulpAnsibleApiV3PluginAnsibleContentNamespacesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::PulpAnsibleApiV3PluginAnsibleContentNamespacesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Custom exception handler mixin class.
|
37
|
+
# @param distro_base_path
|
38
|
+
# @param path
|
39
|
+
# @param name Required named, only accepts lowercase, numbers and underscores.
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :company Optional namespace company owner.
|
42
|
+
# @option opts [String] :email Optional namespace contact email.
|
43
|
+
# @option opts [String] :description Optional short description.
|
44
|
+
# @option opts [String] :resources Optional resource page in markdown format.
|
45
|
+
# @option opts [Array<NamespaceLink>] :links Labeled related links.
|
46
|
+
# @option opts [File] :avatar Optional avatar image for Namespace
|
47
|
+
# @return [AsyncOperationResponse]
|
48
|
+
describe 'create test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for delete
|
55
|
+
# Try to remove the Namespace if no Collections under Namespace are present.
|
56
|
+
# @param distro_base_path
|
57
|
+
# @param name
|
58
|
+
# @param path
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @return [AsyncOperationResponse]
|
61
|
+
describe 'delete test' do
|
62
|
+
it 'should work' do
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# unit tests for list
|
68
|
+
# Custom exception handler mixin class.
|
69
|
+
# @param distro_base_path
|
70
|
+
# @param path
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @option opts [String] :company Filter results where company matches value
|
73
|
+
# @option opts [String] :company__contains Filter results where company contains value
|
74
|
+
# @option opts [String] :company__icontains Filter results where company contains value
|
75
|
+
# @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
|
76
|
+
# @option opts [String] :company__startswith Filter results where company starts with value
|
77
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
78
|
+
# @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
|
79
|
+
# @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
|
80
|
+
# @option opts [String] :name Filter results where name matches value
|
81
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
82
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
83
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
84
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
85
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
86
|
+
# @option opts [Array<String>] :ordering Ordering
|
87
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
88
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
89
|
+
# @return [PaginatedansibleAnsibleNamespaceMetadataResponseList]
|
90
|
+
describe 'list test' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# unit tests for partial_update
|
97
|
+
# Custom exception handler mixin class.
|
98
|
+
# @param distro_base_path
|
99
|
+
# @param name
|
100
|
+
# @param path
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [String] :name Required named, only accepts lowercase, numbers and underscores.
|
103
|
+
# @option opts [String] :company Optional namespace company owner.
|
104
|
+
# @option opts [String] :email Optional namespace contact email.
|
105
|
+
# @option opts [String] :description Optional short description.
|
106
|
+
# @option opts [String] :resources Optional resource page in markdown format.
|
107
|
+
# @option opts [Array<NamespaceLink>] :links Labeled related links.
|
108
|
+
# @option opts [File] :avatar Optional avatar image for Namespace
|
109
|
+
# @return [AsyncOperationResponse]
|
110
|
+
describe 'partial_update 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 read
|
117
|
+
# Custom exception handler mixin class.
|
118
|
+
# @param distro_base_path
|
119
|
+
# @param name
|
120
|
+
# @param path
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
123
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
124
|
+
# @return [AnsibleAnsibleNamespaceMetadataResponse]
|
125
|
+
describe 'read test' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|