pulpcore_client 3.28.37 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccessPoliciesApi.md +1 -1
- data/docs/ArtifactDistributionResponse.md +7 -7
- data/docs/ArtifactsApi.md +1 -1
- data/docs/ContentApi.md +3 -3
- data/docs/ContentguardsApi.md +3 -3
- data/docs/ContentguardsContentRedirectApi.md +1 -1
- data/docs/ContentguardsRbacApi.md +1 -1
- data/docs/DistributionsApi.md +4 -4
- data/docs/DistributionsArtifactsApi.md +2 -2
- data/docs/DomainsApi.md +1 -1
- data/docs/ExportersFilesystemApi.md +1 -1
- data/docs/ExportersFilesystemExportsApi.md +1 -1
- data/docs/ExportersPulpApi.md +1 -1
- data/docs/ExportersPulpExportsApi.md +1 -1
- data/docs/GroupsApi.md +1 -1
- data/docs/GroupsRolesApi.md +2 -2
- data/docs/GroupsUsersApi.md +1 -1
- data/docs/ImportersPulpApi.md +1 -1
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +1 -1
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanupApi.md +1 -1
- data/docs/PublicationsApi.md +3 -3
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +3 -3
- data/docs/RepairApi.md +1 -1
- data/docs/RepositoriesApi.md +4 -4
- data/docs/RepositoriesReclaimSpaceApi.md +1 -1
- data/docs/RepositoryVersionsApi.md +1 -1
- data/docs/RolesApi.md +1 -1
- data/docs/SigningServicesApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +1 -1
- data/docs/TaskSchedulesApi.md +1 -1
- data/docs/TasksApi.md +7 -7
- data/docs/UploadsApi.md +1 -1
- data/docs/UpstreamPulpsApi.md +3 -3
- data/docs/UsersApi.md +1 -1
- data/docs/UsersRolesApi.md +2 -2
- data/docs/WorkersApi.md +1 -1
- data/lib/pulpcore_client/api/content_api.rb +3 -3
- data/lib/pulpcore_client/api/contentguards_api.rb +3 -3
- data/lib/pulpcore_client/api/distributions_api.rb +3 -3
- data/lib/pulpcore_client/api/publications_api.rb +6 -2
- data/lib/pulpcore_client/api/remotes_api.rb +6 -2
- data/lib/pulpcore_client/api/repositories_api.rb +6 -2
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +3 -3
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +38 -38
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +0 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/content_api_spec.rb +1 -1
- data/spec/api/contentguards_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/publications_api_spec.rb +1 -1
- data/spec/api/remotes_api_spec.rb +1 -1
- data/spec/api/repositories_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/upstream_pulps_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +159 -159
data/docs/UsersApi.md
CHANGED
data/docs/UsersRolesApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpcoreClient::UsersRolesApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *https://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -173,7 +173,7 @@ Name | Type | Description | Notes
|
|
173
173
|
------------- | ------------- | ------------- | -------------
|
174
174
|
**auth_user_href** | **String**| |
|
175
175
|
**content_object** | **String**| content_object | [optional]
|
176
|
-
**domain** |
|
176
|
+
**domain** | **String**| Foreign Key referenced by HREF | [optional]
|
177
177
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
178
178
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
179
179
|
**ordering** | [**Array<String>**](String.md)| Ordering * `role` - Role * `-role` - Role (descending) * `description` - Description * `-description` - Description (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
data/docs/WorkersApi.md
CHANGED
@@ -27,7 +27,7 @@ module PulpcoreClient
|
|
27
27
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
28
28
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
29
29
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
30
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata
|
30
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
31
31
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
32
32
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
33
33
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -47,7 +47,7 @@ module PulpcoreClient
|
|
47
47
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
48
48
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
49
49
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
50
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata
|
50
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
51
51
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
52
52
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
53
53
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -62,7 +62,7 @@ module PulpcoreClient
|
|
62
62
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
63
63
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
64
64
|
end
|
65
|
-
allowable_values = ["core.publishedmetadata"]
|
65
|
+
allowable_values = ["core.publishedmetadata", "file.file"]
|
66
66
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
67
67
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
68
68
|
end
|
@@ -32,7 +32,7 @@ module PulpcoreClient
|
|
32
32
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
33
33
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
34
34
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
35
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect
|
35
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
36
36
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
37
37
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
38
38
|
# @return [PaginatedContentGuardResponseList]
|
@@ -54,7 +54,7 @@ module PulpcoreClient
|
|
54
54
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
55
55
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
56
56
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
57
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect
|
57
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
58
58
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
59
59
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
60
60
|
# @return [Array<(PaginatedContentGuardResponseList, Integer, Hash)>] PaginatedContentGuardResponseList data, response status code and response headers
|
@@ -66,7 +66,7 @@ module PulpcoreClient
|
|
66
66
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
67
67
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
68
68
|
end
|
69
|
-
allowable_values = ["core.content_redirect", "core.rbac"]
|
69
|
+
allowable_values = ["certguard.rhsm", "certguard.x509", "core.content_redirect", "core.rbac"]
|
70
70
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
71
71
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
72
72
|
end
|
@@ -37,7 +37,7 @@ module PulpcoreClient
|
|
37
37
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
38
38
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
39
39
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
40
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
40
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact * `file.file` - file.file
|
41
41
|
# @option opts [String] :repository Filter results where repository matches value
|
42
42
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
43
43
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -67,7 +67,7 @@ module PulpcoreClient
|
|
67
67
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
68
68
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
69
69
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
70
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
70
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact * `file.file` - file.file
|
71
71
|
# @option opts [String] :repository Filter results where repository matches value
|
72
72
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
73
73
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -82,7 +82,7 @@ module PulpcoreClient
|
|
82
82
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
83
83
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
84
84
|
end
|
85
|
-
allowable_values = ["core.artifact"]
|
85
|
+
allowable_values = ["core.artifact", "file.file"]
|
86
86
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
87
87
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
88
88
|
end
|
@@ -35,7 +35,7 @@ module PulpcoreClient
|
|
35
35
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
36
36
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
37
37
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
38
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
38
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
39
39
|
# @option opts [String] :repository Repository referenced by HREF
|
40
40
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
41
41
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -62,7 +62,7 @@ module PulpcoreClient
|
|
62
62
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
63
63
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
64
64
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
65
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
65
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
66
66
|
# @option opts [String] :repository Repository referenced by HREF
|
67
67
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
68
68
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -76,6 +76,10 @@ module PulpcoreClient
|
|
76
76
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
77
77
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
78
78
|
end
|
79
|
+
allowable_values = ["file.file"]
|
80
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
81
|
+
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
82
|
+
end
|
79
83
|
# resource path
|
80
84
|
local_var_path = '/pulp/api/v3/publications/'
|
81
85
|
|
@@ -39,7 +39,7 @@ module PulpcoreClient
|
|
39
39
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
40
40
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
41
41
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
42
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
42
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
43
43
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
44
44
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
45
45
|
# @return [PaginatedRemoteResponseList]
|
@@ -68,7 +68,7 @@ module PulpcoreClient
|
|
68
68
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
69
69
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
70
70
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
71
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
71
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
72
72
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
73
73
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
74
74
|
# @return [Array<(PaginatedRemoteResponseList, Integer, Hash)>] PaginatedRemoteResponseList data, response status code and response headers
|
@@ -80,6 +80,10 @@ module PulpcoreClient
|
|
80
80
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
81
81
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
82
82
|
end
|
83
|
+
allowable_values = ["file.file"]
|
84
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
85
|
+
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
86
|
+
end
|
83
87
|
# resource path
|
84
88
|
local_var_path = '/pulp/api/v3/remotes/'
|
85
89
|
|
@@ -34,7 +34,7 @@ module PulpcoreClient
|
|
34
34
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
35
35
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
36
36
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
37
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
37
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
38
38
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
39
39
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
40
40
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -68,7 +68,7 @@ module PulpcoreClient
|
|
68
68
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
69
69
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
70
70
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
71
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
71
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
72
72
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
73
73
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
74
74
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -90,6 +90,10 @@ module PulpcoreClient
|
|
90
90
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
91
91
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
92
92
|
end
|
93
|
+
allowable_values = ["file.file"]
|
94
|
+
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
95
|
+
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
96
|
+
end
|
93
97
|
# resource path
|
94
98
|
local_var_path = '/pulp/api/v3/repositories/'
|
95
99
|
|
@@ -167,7 +167,7 @@ module PulpcoreClient
|
|
167
167
|
# @option opts [String] :name__contains Filter results where name contains value
|
168
168
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
169
169
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
170
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
170
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
171
171
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
172
172
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
173
173
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -215,7 +215,7 @@ module PulpcoreClient
|
|
215
215
|
# @option opts [String] :name__contains Filter results where name contains value
|
216
216
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
217
217
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
218
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
218
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
219
219
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
220
220
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
221
221
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -242,7 +242,7 @@ module PulpcoreClient
|
|
242
242
|
if @api_client.config.debugging
|
243
243
|
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
244
244
|
end
|
245
|
-
allowable_values = ["-args", "-error", "-finished_at", "-kwargs", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "args", "error", "finished_at", "kwargs", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state"]
|
245
|
+
allowable_values = ["-args", "-error", "-finished_at", "-kwargs", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-versions", "args", "error", "finished_at", "kwargs", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "versions"]
|
246
246
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
247
247
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
248
248
|
end
|
@@ -353,7 +353,7 @@ module PulpcoreClient
|
|
353
353
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
354
354
|
# @param upstream_pulp_href [String]
|
355
355
|
# @param [Hash] opts the optional parameters
|
356
|
-
# @return [
|
356
|
+
# @return [AsyncOperationResponse]
|
357
357
|
def replicate(upstream_pulp_href, opts = {})
|
358
358
|
data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, opts)
|
359
359
|
data
|
@@ -363,7 +363,7 @@ module PulpcoreClient
|
|
363
363
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
364
364
|
# @param upstream_pulp_href [String]
|
365
365
|
# @param [Hash] opts the optional parameters
|
366
|
-
# @return [Array<(
|
366
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
367
367
|
def replicate_with_http_info(upstream_pulp_href, opts = {})
|
368
368
|
if @api_client.config.debugging
|
369
369
|
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.replicate ...'
|
@@ -390,7 +390,7 @@ module PulpcoreClient
|
|
390
390
|
post_body = opts[:body]
|
391
391
|
|
392
392
|
# return_type
|
393
|
-
return_type = opts[:return_type] || '
|
393
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
394
394
|
|
395
395
|
# auth_names
|
396
396
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -127,8 +127,8 @@ module PulpcoreClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
131
|
-
@host = '
|
130
|
+
@scheme = 'https'
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpcoreClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "https://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -15,60 +15,60 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
20
20
|
|
21
21
|
attr_accessor :pulp_labels
|
22
22
|
|
23
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
|
+
attr_accessor :pulp_href
|
27
|
+
|
26
28
|
# Timestamp of creation.
|
27
29
|
attr_accessor :pulp_created
|
28
30
|
|
31
|
+
# Whether this distribution should be shown in the content app.
|
32
|
+
attr_accessor :hidden
|
33
|
+
|
29
34
|
# The URL for accessing the publication as defined by this distribution.
|
30
35
|
attr_accessor :base_url
|
31
36
|
|
32
37
|
# An optional content-guard.
|
33
38
|
attr_accessor :content_guard
|
34
39
|
|
35
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
36
|
-
attr_accessor :base_path
|
37
|
-
|
38
|
-
attr_accessor :pulp_href
|
39
|
-
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'
|
43
|
+
:'base_path' => :'base_path',
|
44
44
|
:'pulp_labels' => :'pulp_labels',
|
45
45
|
:'name' => :'name',
|
46
|
+
:'pulp_href' => :'pulp_href',
|
46
47
|
:'pulp_created' => :'pulp_created',
|
48
|
+
:'hidden' => :'hidden',
|
47
49
|
:'base_url' => :'base_url',
|
48
|
-
:'content_guard' => :'content_guard'
|
49
|
-
:'base_path' => :'base_path',
|
50
|
-
:'pulp_href' => :'pulp_href'
|
50
|
+
:'content_guard' => :'content_guard'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'
|
57
|
+
:'base_path' => :'String',
|
58
58
|
:'pulp_labels' => :'Hash<String, String>',
|
59
59
|
:'name' => :'String',
|
60
|
+
:'pulp_href' => :'String',
|
60
61
|
:'pulp_created' => :'DateTime',
|
62
|
+
:'hidden' => :'Boolean',
|
61
63
|
:'base_url' => :'String',
|
62
|
-
:'content_guard' => :'String'
|
63
|
-
:'base_path' => :'String',
|
64
|
-
:'pulp_href' => :'String'
|
64
|
+
:'content_guard' => :'String'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
68
68
|
# List of attributes with nullable: true
|
69
69
|
def self.openapi_nullable
|
70
70
|
Set.new([
|
71
|
-
:'content_guard'
|
71
|
+
:'content_guard'
|
72
72
|
])
|
73
73
|
end
|
74
74
|
|
@@ -87,10 +87,8 @@ module PulpcoreClient
|
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
92
|
-
else
|
93
|
-
self.hidden = false
|
90
|
+
if attributes.key?(:'base_path')
|
91
|
+
self.base_path = attributes[:'base_path']
|
94
92
|
end
|
95
93
|
|
96
94
|
if attributes.key?(:'pulp_labels')
|
@@ -103,10 +101,20 @@ module PulpcoreClient
|
|
103
101
|
self.name = attributes[:'name']
|
104
102
|
end
|
105
103
|
|
104
|
+
if attributes.key?(:'pulp_href')
|
105
|
+
self.pulp_href = attributes[:'pulp_href']
|
106
|
+
end
|
107
|
+
|
106
108
|
if attributes.key?(:'pulp_created')
|
107
109
|
self.pulp_created = attributes[:'pulp_created']
|
108
110
|
end
|
109
111
|
|
112
|
+
if attributes.key?(:'hidden')
|
113
|
+
self.hidden = attributes[:'hidden']
|
114
|
+
else
|
115
|
+
self.hidden = false
|
116
|
+
end
|
117
|
+
|
110
118
|
if attributes.key?(:'base_url')
|
111
119
|
self.base_url = attributes[:'base_url']
|
112
120
|
end
|
@@ -114,36 +122,28 @@ module PulpcoreClient
|
|
114
122
|
if attributes.key?(:'content_guard')
|
115
123
|
self.content_guard = attributes[:'content_guard']
|
116
124
|
end
|
117
|
-
|
118
|
-
if attributes.key?(:'base_path')
|
119
|
-
self.base_path = attributes[:'base_path']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.key?(:'pulp_href')
|
123
|
-
self.pulp_href = attributes[:'pulp_href']
|
124
|
-
end
|
125
125
|
end
|
126
126
|
|
127
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
128
|
# @return Array for valid properties with the reasons
|
129
129
|
def list_invalid_properties
|
130
130
|
invalid_properties = Array.new
|
131
|
-
if @name.nil?
|
132
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
131
|
if @base_path.nil?
|
136
132
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
137
133
|
end
|
138
134
|
|
135
|
+
if @name.nil?
|
136
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
139
|
invalid_properties
|
140
140
|
end
|
141
141
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
|
-
return false if @name.nil?
|
146
145
|
return false if @base_path.nil?
|
146
|
+
return false if @name.nil?
|
147
147
|
true
|
148
148
|
end
|
149
149
|
|
@@ -152,14 +152,14 @@ module PulpcoreClient
|
|
152
152
|
def ==(o)
|
153
153
|
return true if self.equal?(o)
|
154
154
|
self.class == o.class &&
|
155
|
-
|
155
|
+
base_path == o.base_path &&
|
156
156
|
pulp_labels == o.pulp_labels &&
|
157
157
|
name == o.name &&
|
158
|
+
pulp_href == o.pulp_href &&
|
158
159
|
pulp_created == o.pulp_created &&
|
160
|
+
hidden == o.hidden &&
|
159
161
|
base_url == o.base_url &&
|
160
|
-
content_guard == o.content_guard
|
161
|
-
base_path == o.base_path &&
|
162
|
-
pulp_href == o.pulp_href
|
162
|
+
content_guard == o.content_guard
|
163
163
|
end
|
164
164
|
|
165
165
|
# @see the `==` method
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
171
171
|
# Calculates hash code according to all attributes.
|
172
172
|
# @return [Integer] Hash code
|
173
173
|
def hash
|
174
|
-
[
|
174
|
+
[base_path, pulp_labels, name, pulp_href, pulp_created, hidden, base_url, content_guard].hash
|
175
175
|
end
|
176
176
|
|
177
177
|
# Builds the object from hash
|
@@ -68,22 +68,12 @@ module PulpcoreClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @name.nil?
|
72
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @is_set.nil?
|
76
|
-
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|
@@ -41,7 +41,7 @@ describe 'ContentApi' do
|
|
41
41
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
42
42
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
43
43
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata
|
44
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
46
46
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
47
47
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -46,7 +46,7 @@ describe 'ContentguardsApi' do
|
|
46
46
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
47
47
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
48
48
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
49
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect
|
49
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
50
50
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
51
51
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
52
52
|
# @return [PaginatedContentGuardResponseList]
|
@@ -51,7 +51,7 @@ describe 'DistributionsApi' do
|
|
51
51
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
52
52
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
53
53
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
54
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
54
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact * `file.file` - file.file
|
55
55
|
# @option opts [String] :repository Filter results where repository matches value
|
56
56
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
57
57
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -49,7 +49,7 @@ describe 'PublicationsApi' do
|
|
49
49
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
50
50
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
51
51
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
52
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
52
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
53
53
|
# @option opts [String] :repository Repository referenced by HREF
|
54
54
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
55
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -53,7 +53,7 @@ describe 'RemotesApi' do
|
|
53
53
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
54
54
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
55
55
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
56
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
56
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
57
57
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
58
58
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
59
59
|
# @return [PaginatedRemoteResponseList]
|
@@ -48,7 +48,7 @@ describe 'RepositoriesApi' do
|
|
48
48
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
49
49
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
50
50
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
51
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
51
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `file.file` - file.file
|
52
52
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
53
53
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
54
54
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -77,7 +77,7 @@ describe 'TasksApi' do
|
|
77
77
|
# @option opts [String] :name__contains Filter results where name contains value
|
78
78
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
79
79
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
80
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
80
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
81
81
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
82
82
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
83
83
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -103,7 +103,7 @@ describe 'UpstreamPulpsApi' do
|
|
103
103
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
104
104
|
# @param upstream_pulp_href
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [
|
106
|
+
# @return [AsyncOperationResponse]
|
107
107
|
describe 'replicate test' do
|
108
108
|
it 'should work' do
|
109
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpcoreClient::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
|
# PulpcoreClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpcoreClient::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
|