harbor2_legacy_client 0.1.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 +7 -0
- data/Gemfile +7 -0
- data/README.md +365 -0
- data/Rakefile +8 -0
- data/docs/Action.md +8 -0
- data/docs/Action1.md +8 -0
- data/docs/AdminJobSchedule.md +9 -0
- data/docs/AdminJobScheduleObj.md +9 -0
- data/docs/BadRequestFormatedError.md +8 -0
- data/docs/BoolConfigItem.md +9 -0
- data/docs/CVEAllowlist.md +11 -0
- data/docs/CVEAllowlistItem.md +8 -0
- data/docs/ChartAPIError.md +8 -0
- data/docs/ChartMetadata.md +18 -0
- data/docs/ChartRepositoryApi.md +191 -0
- data/docs/ChartVersion.md +23 -0
- data/docs/ComponentHealthStatus.md +10 -0
- data/docs/ComponentOverviewEntry.md +9 -0
- data/docs/Configurations.md +42 -0
- data/docs/ConfigurationsResponse.md +41 -0
- data/docs/ConfigurationsScanAllPolicy.md +9 -0
- data/docs/ConfigurationsScanAllPolicyParameter.md +8 -0
- data/docs/ConflictFormatedError.md +8 -0
- data/docs/EmailServerSetting.md +13 -0
- data/docs/Endpoint.md +9 -0
- data/docs/EventType.md +7 -0
- data/docs/FilterStyle.md +10 -0
- data/docs/ForbiddenChartAPIError.md +8 -0
- data/docs/GCResult.md +16 -0
- data/docs/GeneralInfo.md +16 -0
- data/docs/InputSecret.md +8 -0
- data/docs/InsufficientStorageChartAPIError.md +8 -0
- data/docs/IntegerConfigItem.md +9 -0
- data/docs/InternalChartAPIError.md +8 -0
- data/docs/IsDefault.md +8 -0
- data/docs/Label.md +16 -0
- data/docs/LabelApi.md +191 -0
- data/docs/Labels.md +7 -0
- data/docs/LdapConf.md +15 -0
- data/docs/LdapFailedImportUsers.md +9 -0
- data/docs/LdapImportUsers.md +8 -0
- data/docs/LdapUsers.md +10 -0
- data/docs/Namespace.md +9 -0
- data/docs/NotFoundChartAPIError.md +8 -0
- data/docs/NotifyType.md +7 -0
- data/docs/OverallHealthStatus.md +9 -0
- data/docs/Password.md +9 -0
- data/docs/Permission.md +9 -0
- data/docs/PingRegistry.md +14 -0
- data/docs/ProductsApi.md +6382 -0
- data/docs/Project.md +22 -0
- data/docs/ProjectMember.md +10 -0
- data/docs/ProjectMemberEntity.md +14 -0
- data/docs/ProjectMetadata.md +13 -0
- data/docs/ProjectReq.md +13 -0
- data/docs/ProjectScanner.md +8 -0
- data/docs/ProjectSummary.md +15 -0
- data/docs/ProjectSummaryQuota.md +9 -0
- data/docs/PutRegistry.md +14 -0
- data/docs/Quota.md +13 -0
- data/docs/QuotaApi.md +118 -0
- data/docs/QuotaRefObject.md +7 -0
- data/docs/QuotaSwitcher.md +8 -0
- data/docs/QuotaUpdateReq.md +8 -0
- data/docs/Registry.md +17 -0
- data/docs/RegistryCredential.md +10 -0
- data/docs/RegistryInfo.md +11 -0
- data/docs/ReplicationExecution.md +19 -0
- data/docs/ReplicationFilter.md +9 -0
- data/docs/ReplicationPolicy.md +20 -0
- data/docs/ReplicationTask.md +16 -0
- data/docs/ReplicationTrigger.md +9 -0
- data/docs/ResourceList.md +7 -0
- data/docs/RetentionApi.md +449 -0
- data/docs/RetentionExecution.md +14 -0
- data/docs/RetentionExecutionTask.md +18 -0
- data/docs/RetentionMetadata.md +10 -0
- data/docs/RetentionPolicy.md +12 -0
- data/docs/RetentionPolicyScope.md +9 -0
- data/docs/RetentionRule.md +15 -0
- data/docs/RetentionRuleMetadata.md +11 -0
- data/docs/RetentionRuleParamMetadata.md +10 -0
- data/docs/RetentionRuleTrigger.md +10 -0
- data/docs/RetentionSelector.md +11 -0
- data/docs/RetentionSelectorMetadata.md +10 -0
- data/docs/RobotAccount.md +15 -0
- data/docs/RobotAccountAccess.md +9 -0
- data/docs/RobotAccountApi.md +291 -0
- data/docs/RobotAccountCreate.md +11 -0
- data/docs/RobotAccountPostRep.md +9 -0
- data/docs/RobotAccountUpdate.md +8 -0
- data/docs/Role.md +11 -0
- data/docs/RoleParam.md +9 -0
- data/docs/RoleRequest.md +8 -0
- data/docs/ScanApi.md +104 -0
- data/docs/Scanner.md +10 -0
- data/docs/ScannerAdapterMetadata.md +10 -0
- data/docs/ScannerCapability.md +9 -0
- data/docs/ScannerRegistration.md +21 -0
- data/docs/ScannerRegistrationReq.md +15 -0
- data/docs/ScannerRegistrationSettings.md +11 -0
- data/docs/ScannersApi.md +600 -0
- data/docs/Search.md +10 -0
- data/docs/SearchRepository.md +13 -0
- data/docs/SearchResult.md +10 -0
- data/docs/StatisticMap.md +13 -0
- data/docs/Stats.md +12 -0
- data/docs/Storage.md +9 -0
- data/docs/StringConfigItem.md +9 -0
- data/docs/SupportedWebhookEventTypes.md +9 -0
- data/docs/SysAdminFlag.md +8 -0
- data/docs/SystemApi.md +163 -0
- data/docs/SystemInfo.md +8 -0
- data/docs/TriggerSettings.md +8 -0
- data/docs/UnauthorizedChartAPIError.md +8 -0
- data/docs/User.md +22 -0
- data/docs/UserEntity.md +9 -0
- data/docs/UserGroup.md +11 -0
- data/docs/UserProfile.md +10 -0
- data/docs/UserSearch.md +9 -0
- data/docs/WebhookJob.md +15 -0
- data/docs/WebhookLastTrigger.md +11 -0
- data/docs/WebhookPolicy.md +17 -0
- data/docs/WebhookTargetObject.md +11 -0
- data/git_push.sh +55 -0
- data/harbor2_legacy_client.gemspec +46 -0
- data/lib/harbor2_legacy_client.rb +159 -0
- data/lib/harbor2_legacy_client/api/chart_repository_api.rb +230 -0
- data/lib/harbor2_legacy_client/api/label_api.rb +230 -0
- data/lib/harbor2_legacy_client/api/products_api.rb +6500 -0
- data/lib/harbor2_legacy_client/api/quota_api.rb +136 -0
- data/lib/harbor2_legacy_client/api/retention_api.rb +482 -0
- data/lib/harbor2_legacy_client/api/robot_account_api.rb +321 -0
- data/lib/harbor2_legacy_client/api/scan_api.rb +119 -0
- data/lib/harbor2_legacy_client/api/scanners_api.rb +624 -0
- data/lib/harbor2_legacy_client/api/system_api.rb +173 -0
- data/lib/harbor2_legacy_client/api_client.rb +391 -0
- data/lib/harbor2_legacy_client/api_error.rb +38 -0
- data/lib/harbor2_legacy_client/configuration.rb +209 -0
- data/lib/harbor2_legacy_client/models/action.rb +184 -0
- data/lib/harbor2_legacy_client/models/action_1.rb +184 -0
- data/lib/harbor2_legacy_client/models/admin_job_schedule.rb +196 -0
- data/lib/harbor2_legacy_client/models/admin_job_schedule_obj.rb +195 -0
- data/lib/harbor2_legacy_client/models/bad_request_formated_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/bool_config_item.rb +195 -0
- data/lib/harbor2_legacy_client/models/chart_api_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/chart_metadata.rb +320 -0
- data/lib/harbor2_legacy_client/models/chart_version.rb +371 -0
- data/lib/harbor2_legacy_client/models/component_health_status.rb +206 -0
- data/lib/harbor2_legacy_client/models/component_overview_entry.rb +195 -0
- data/lib/harbor2_legacy_client/models/configurations.rb +524 -0
- data/lib/harbor2_legacy_client/models/configurations_response.rb +514 -0
- data/lib/harbor2_legacy_client/models/configurations_scan_all_policy.rb +194 -0
- data/lib/harbor2_legacy_client/models/configurations_scan_all_policy_parameter.rb +186 -0
- data/lib/harbor2_legacy_client/models/conflict_formated_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/cve_allowlist.rb +217 -0
- data/lib/harbor2_legacy_client/models/cve_allowlist_item.rb +186 -0
- data/lib/harbor2_legacy_client/models/email_server_setting.rb +235 -0
- data/lib/harbor2_legacy_client/models/endpoint.rb +195 -0
- data/lib/harbor2_legacy_client/models/event_type.rb +176 -0
- data/lib/harbor2_legacy_client/models/filter_style.rb +208 -0
- data/lib/harbor2_legacy_client/models/forbidden_chart_api_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/gc_result.rb +264 -0
- data/lib/harbor2_legacy_client/models/general_info.rb +265 -0
- data/lib/harbor2_legacy_client/models/input_secret.rb +185 -0
- data/lib/harbor2_legacy_client/models/insufficient_storage_chart_api_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/integer_config_item.rb +195 -0
- data/lib/harbor2_legacy_client/models/internal_chart_api_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/is_default.rb +185 -0
- data/lib/harbor2_legacy_client/models/label.rb +265 -0
- data/lib/harbor2_legacy_client/models/labels.rb +176 -0
- data/lib/harbor2_legacy_client/models/ldap_conf.rb +255 -0
- data/lib/harbor2_legacy_client/models/ldap_failed_import_users.rb +195 -0
- data/lib/harbor2_legacy_client/models/ldap_import_users.rb +187 -0
- data/lib/harbor2_legacy_client/models/ldap_users.rb +205 -0
- data/lib/harbor2_legacy_client/models/namespace.rb +196 -0
- data/lib/harbor2_legacy_client/models/not_found_chart_api_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/notify_type.rb +176 -0
- data/lib/harbor2_legacy_client/models/overall_health_status.rb +197 -0
- data/lib/harbor2_legacy_client/models/password.rb +195 -0
- data/lib/harbor2_legacy_client/models/permission.rb +196 -0
- data/lib/harbor2_legacy_client/models/ping_registry.rb +245 -0
- data/lib/harbor2_legacy_client/models/project.rb +327 -0
- data/lib/harbor2_legacy_client/models/project_member.rb +203 -0
- data/lib/harbor2_legacy_client/models/project_member_entity.rb +245 -0
- data/lib/harbor2_legacy_client/models/project_metadata.rb +235 -0
- data/lib/harbor2_legacy_client/models/project_req.rb +235 -0
- data/lib/harbor2_legacy_client/models/project_scanner.rb +185 -0
- data/lib/harbor2_legacy_client/models/project_summary.rb +253 -0
- data/lib/harbor2_legacy_client/models/project_summary_quota.rb +195 -0
- data/lib/harbor2_legacy_client/models/put_registry.rb +245 -0
- data/lib/harbor2_legacy_client/models/quota.rb +236 -0
- data/lib/harbor2_legacy_client/models/quota_ref_object.rb +175 -0
- data/lib/harbor2_legacy_client/models/quota_switcher.rb +185 -0
- data/lib/harbor2_legacy_client/models/quota_update_req.rb +185 -0
- data/lib/harbor2_legacy_client/models/registry.rb +274 -0
- data/lib/harbor2_legacy_client/models/registry_credential.rb +205 -0
- data/lib/harbor2_legacy_client/models/registry_info.rb +220 -0
- data/lib/harbor2_legacy_client/models/replication_execution.rb +296 -0
- data/lib/harbor2_legacy_client/models/replication_filter.rb +195 -0
- data/lib/harbor2_legacy_client/models/replication_policy.rb +306 -0
- data/lib/harbor2_legacy_client/models/replication_task.rb +266 -0
- data/lib/harbor2_legacy_client/models/replication_trigger.rb +194 -0
- data/lib/harbor2_legacy_client/models/resource_list.rb +175 -0
- data/lib/harbor2_legacy_client/models/retention_execution.rb +238 -0
- data/lib/harbor2_legacy_client/models/retention_execution_task.rb +274 -0
- data/lib/harbor2_legacy_client/models/retention_metadata.rb +212 -0
- data/lib/harbor2_legacy_client/models/retention_policy.rb +223 -0
- data/lib/harbor2_legacy_client/models/retention_policy_scope.rb +193 -0
- data/lib/harbor2_legacy_client/models/retention_rule.rb +253 -0
- data/lib/harbor2_legacy_client/models/retention_rule_metadata.rb +218 -0
- data/lib/harbor2_legacy_client/models/retention_rule_param_metadata.rb +203 -0
- data/lib/harbor2_legacy_client/models/retention_rule_trigger.rb +202 -0
- data/lib/harbor2_legacy_client/models/retention_selector.rb +211 -0
- data/lib/harbor2_legacy_client/models/retention_selector_metadata.rb +205 -0
- data/lib/harbor2_legacy_client/models/robot_account.rb +256 -0
- data/lib/harbor2_legacy_client/models/robot_account_access.rb +195 -0
- data/lib/harbor2_legacy_client/models/robot_account_create.rb +217 -0
- data/lib/harbor2_legacy_client/models/robot_account_post_rep.rb +195 -0
- data/lib/harbor2_legacy_client/models/robot_account_update.rb +185 -0
- data/lib/harbor2_legacy_client/models/role.rb +214 -0
- data/lib/harbor2_legacy_client/models/role_param.rb +197 -0
- data/lib/harbor2_legacy_client/models/role_request.rb +185 -0
- data/lib/harbor2_legacy_client/models/scanner.rb +205 -0
- data/lib/harbor2_legacy_client/models/scanner_adapter_metadata.rb +207 -0
- data/lib/harbor2_legacy_client/models/scanner_capability.rb +197 -0
- data/lib/harbor2_legacy_client/models/scanner_registration.rb +328 -0
- data/lib/harbor2_legacy_client/models/scanner_registration_req.rb +263 -0
- data/lib/harbor2_legacy_client/models/scanner_registration_settings.rb +217 -0
- data/lib/harbor2_legacy_client/models/search.rb +211 -0
- data/lib/harbor2_legacy_client/models/search_repository.rb +235 -0
- data/lib/harbor2_legacy_client/models/search_result.rb +205 -0
- data/lib/harbor2_legacy_client/models/statistic_map.rb +235 -0
- data/lib/harbor2_legacy_client/models/stats.rb +228 -0
- data/lib/harbor2_legacy_client/models/storage.rb +195 -0
- data/lib/harbor2_legacy_client/models/string_config_item.rb +195 -0
- data/lib/harbor2_legacy_client/models/supported_webhook_event_types.rb +198 -0
- data/lib/harbor2_legacy_client/models/sys_admin_flag.rb +185 -0
- data/lib/harbor2_legacy_client/models/system_info.rb +187 -0
- data/lib/harbor2_legacy_client/models/trigger_settings.rb +185 -0
- data/lib/harbor2_legacy_client/models/unauthorized_chart_api_error.rb +191 -0
- data/lib/harbor2_legacy_client/models/user.rb +312 -0
- data/lib/harbor2_legacy_client/models/user_entity.rb +195 -0
- data/lib/harbor2_legacy_client/models/user_group.rb +215 -0
- data/lib/harbor2_legacy_client/models/user_profile.rb +205 -0
- data/lib/harbor2_legacy_client/models/user_search.rb +194 -0
- data/lib/harbor2_legacy_client/models/webhook_job.rb +256 -0
- data/lib/harbor2_legacy_client/models/webhook_last_trigger.rb +216 -0
- data/lib/harbor2_legacy_client/models/webhook_policy.rb +278 -0
- data/lib/harbor2_legacy_client/models/webhook_target_object.rb +216 -0
- data/lib/harbor2_legacy_client/version.rb +15 -0
- data/spec/api/chart_repository_api_spec.rb +79 -0
- data/spec/api/label_api_spec.rb +79 -0
- data/spec/api/products_api_spec.rb +1493 -0
- data/spec/api/quota_api_spec.rb +60 -0
- data/spec/api/retention_api_spec.rb +136 -0
- data/spec/api/robot_account_api_spec.rb +100 -0
- data/spec/api/scan_api_spec.rb +57 -0
- data/spec/api/scanners_api_spec.rb +169 -0
- data/spec/api/system_api_spec.rb +70 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_1_spec.rb +41 -0
- data/spec/models/action_spec.rb +41 -0
- data/spec/models/admin_job_schedule_obj_spec.rb +47 -0
- data/spec/models/admin_job_schedule_spec.rb +47 -0
- data/spec/models/bad_request_formated_error_spec.rb +41 -0
- data/spec/models/bool_config_item_spec.rb +47 -0
- data/spec/models/chart_api_error_spec.rb +41 -0
- data/spec/models/chart_metadata_spec.rb +101 -0
- data/spec/models/chart_version_spec.rb +131 -0
- data/spec/models/component_health_status_spec.rb +53 -0
- data/spec/models/component_overview_entry_spec.rb +47 -0
- data/spec/models/configurations_response_spec.rb +239 -0
- data/spec/models/configurations_scan_all_policy_parameter_spec.rb +41 -0
- data/spec/models/configurations_scan_all_policy_spec.rb +47 -0
- data/spec/models/configurations_spec.rb +245 -0
- data/spec/models/conflict_formated_error_spec.rb +41 -0
- data/spec/models/cve_allowlist_item_spec.rb +41 -0
- data/spec/models/cve_allowlist_spec.rb +59 -0
- data/spec/models/email_server_setting_spec.rb +71 -0
- data/spec/models/endpoint_spec.rb +47 -0
- data/spec/models/event_type_spec.rb +35 -0
- data/spec/models/filter_style_spec.rb +53 -0
- data/spec/models/forbidden_chart_api_error_spec.rb +41 -0
- data/spec/models/gc_result_spec.rb +89 -0
- data/spec/models/general_info_spec.rb +89 -0
- data/spec/models/input_secret_spec.rb +41 -0
- data/spec/models/insufficient_storage_chart_api_error_spec.rb +41 -0
- data/spec/models/integer_config_item_spec.rb +47 -0
- data/spec/models/internal_chart_api_error_spec.rb +41 -0
- data/spec/models/is_default_spec.rb +41 -0
- data/spec/models/label_spec.rb +89 -0
- data/spec/models/labels_spec.rb +35 -0
- data/spec/models/ldap_conf_spec.rb +83 -0
- data/spec/models/ldap_failed_import_users_spec.rb +47 -0
- data/spec/models/ldap_import_users_spec.rb +41 -0
- data/spec/models/ldap_users_spec.rb +53 -0
- data/spec/models/namespace_spec.rb +47 -0
- data/spec/models/not_found_chart_api_error_spec.rb +41 -0
- data/spec/models/notify_type_spec.rb +35 -0
- data/spec/models/overall_health_status_spec.rb +47 -0
- data/spec/models/password_spec.rb +47 -0
- data/spec/models/permission_spec.rb +47 -0
- data/spec/models/ping_registry_spec.rb +77 -0
- data/spec/models/project_member_entity_spec.rb +77 -0
- data/spec/models/project_member_spec.rb +53 -0
- data/spec/models/project_metadata_spec.rb +71 -0
- data/spec/models/project_req_spec.rb +71 -0
- data/spec/models/project_scanner_spec.rb +41 -0
- data/spec/models/project_spec.rb +125 -0
- data/spec/models/project_summary_quota_spec.rb +47 -0
- data/spec/models/project_summary_spec.rb +83 -0
- data/spec/models/put_registry_spec.rb +77 -0
- data/spec/models/quota_ref_object_spec.rb +35 -0
- data/spec/models/quota_spec.rb +71 -0
- data/spec/models/quota_switcher_spec.rb +41 -0
- data/spec/models/quota_update_req_spec.rb +41 -0
- data/spec/models/registry_credential_spec.rb +53 -0
- data/spec/models/registry_info_spec.rb +59 -0
- data/spec/models/registry_spec.rb +95 -0
- data/spec/models/replication_execution_spec.rb +107 -0
- data/spec/models/replication_filter_spec.rb +47 -0
- data/spec/models/replication_policy_spec.rb +113 -0
- data/spec/models/replication_task_spec.rb +89 -0
- data/spec/models/replication_trigger_spec.rb +47 -0
- data/spec/models/resource_list_spec.rb +35 -0
- data/spec/models/retention_execution_spec.rb +77 -0
- data/spec/models/retention_execution_task_spec.rb +101 -0
- data/spec/models/retention_metadata_spec.rb +53 -0
- data/spec/models/retention_policy_scope_spec.rb +47 -0
- data/spec/models/retention_policy_spec.rb +65 -0
- data/spec/models/retention_rule_metadata_spec.rb +59 -0
- data/spec/models/retention_rule_param_metadata_spec.rb +53 -0
- data/spec/models/retention_rule_spec.rb +83 -0
- data/spec/models/retention_rule_trigger_spec.rb +53 -0
- data/spec/models/retention_selector_metadata_spec.rb +53 -0
- data/spec/models/retention_selector_spec.rb +59 -0
- data/spec/models/robot_account_access_spec.rb +47 -0
- data/spec/models/robot_account_create_spec.rb +59 -0
- data/spec/models/robot_account_post_rep_spec.rb +47 -0
- data/spec/models/robot_account_spec.rb +83 -0
- data/spec/models/robot_account_update_spec.rb +41 -0
- data/spec/models/role_param_spec.rb +47 -0
- data/spec/models/role_request_spec.rb +41 -0
- data/spec/models/role_spec.rb +59 -0
- data/spec/models/scanner_adapter_metadata_spec.rb +53 -0
- data/spec/models/scanner_capability_spec.rb +47 -0
- data/spec/models/scanner_registration_req_spec.rb +83 -0
- data/spec/models/scanner_registration_settings_spec.rb +59 -0
- data/spec/models/scanner_registration_spec.rb +119 -0
- data/spec/models/scanner_spec.rb +53 -0
- data/spec/models/search_repository_spec.rb +71 -0
- data/spec/models/search_result_spec.rb +53 -0
- data/spec/models/search_spec.rb +53 -0
- data/spec/models/statistic_map_spec.rb +71 -0
- data/spec/models/stats_spec.rb +65 -0
- data/spec/models/storage_spec.rb +47 -0
- data/spec/models/string_config_item_spec.rb +47 -0
- data/spec/models/supported_webhook_event_types_spec.rb +47 -0
- data/spec/models/sys_admin_flag_spec.rb +41 -0
- data/spec/models/system_info_spec.rb +41 -0
- data/spec/models/trigger_settings_spec.rb +41 -0
- data/spec/models/unauthorized_chart_api_error_spec.rb +41 -0
- data/spec/models/user_entity_spec.rb +47 -0
- data/spec/models/user_group_spec.rb +59 -0
- data/spec/models/user_profile_spec.rb +53 -0
- data/spec/models/user_search_spec.rb +47 -0
- data/spec/models/user_spec.rb +125 -0
- data/spec/models/webhook_job_spec.rb +83 -0
- data/spec/models/webhook_last_trigger_spec.rb +59 -0
- data/spec/models/webhook_policy_spec.rb +95 -0
- data/spec/models/webhook_target_object_spec.rb +59 -0
- data/spec/spec_helper.rb +111 -0
- metadata +740 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Harbor API
|
|
3
|
+
|
|
4
|
+
#These APIs provide services for manipulating Harbor project.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.17
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Harbor2LegacyClient::SystemApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'SystemApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = Harbor2LegacyClient::SystemApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of SystemApi' do
|
|
30
|
+
it 'should create an instance of SystemApi' do
|
|
31
|
+
expect(@instance).to be_instance_of(Harbor2LegacyClient::SystemApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for system_cve_allowlist_get
|
|
36
|
+
# Get the system level allowlist of CVE.
|
|
37
|
+
# Get the system level allowlist of CVE. This API can be called by all authenticated users.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [CVEAllowlist]
|
|
40
|
+
describe 'system_cve_allowlist_get test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for system_cve_allowlist_put
|
|
47
|
+
# Update the system level allowlist of CVE.
|
|
48
|
+
# This API overwrites the system level allowlist of CVE with the list in request body. Only system Admin has permission to call this API.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @option opts [CVEAllowlist] :allowlist The allowlist with new content
|
|
51
|
+
# @return [nil]
|
|
52
|
+
describe 'system_cve_allowlist_put test' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for system_oidc_ping_post
|
|
59
|
+
# Test the OIDC endpoint.
|
|
60
|
+
# Test the OIDC endpoint, the setting of the endpoint is provided in the request. This API can only be called by system admin.
|
|
61
|
+
# @param endpoint Request body for OIDC endpoint to be tested.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @return [nil]
|
|
64
|
+
describe 'system_oidc_ping_post test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
end
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Harbor API
|
|
3
|
+
|
|
4
|
+
#These APIs provide services for manipulating Harbor project.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.17
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
|
|
15
|
+
describe Harbor2LegacyClient::ApiClient do
|
|
16
|
+
context 'initialization' do
|
|
17
|
+
context 'URL stuff' do
|
|
18
|
+
context 'host' do
|
|
19
|
+
it 'removes http from host' do
|
|
20
|
+
Harbor2LegacyClient.configure { |c| c.host = 'http://example.com' }
|
|
21
|
+
expect(Harbor2LegacyClient::Configuration.default.host).to eq('example.com')
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'removes https from host' do
|
|
25
|
+
Harbor2LegacyClient.configure { |c| c.host = 'https://wookiee.com' }
|
|
26
|
+
expect(Harbor2LegacyClient::ApiClient.default.config.host).to eq('wookiee.com')
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'removes trailing path from host' do
|
|
30
|
+
Harbor2LegacyClient.configure { |c| c.host = 'hobo.com/v4' }
|
|
31
|
+
expect(Harbor2LegacyClient::Configuration.default.host).to eq('hobo.com')
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
context 'base_path' do
|
|
36
|
+
it "prepends a slash to base_path" do
|
|
37
|
+
Harbor2LegacyClient.configure { |c| c.base_path = 'v4/dog' }
|
|
38
|
+
expect(Harbor2LegacyClient::Configuration.default.base_path).to eq('/v4/dog')
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
|
42
|
+
Harbor2LegacyClient.configure { |c| c.base_path = '/v4/dog' }
|
|
43
|
+
expect(Harbor2LegacyClient::Configuration.default.base_path).to eq('/v4/dog')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
it "ends up as a blank string if nil" do
|
|
47
|
+
Harbor2LegacyClient.configure { |c| c.base_path = nil }
|
|
48
|
+
expect(Harbor2LegacyClient::Configuration.default.base_path).to eq('')
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'params_encoding in #build_request' do
|
|
55
|
+
let(:config) { Harbor2LegacyClient::Configuration.new }
|
|
56
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new(config) }
|
|
57
|
+
|
|
58
|
+
it 'defaults to nil' do
|
|
59
|
+
expect(Harbor2LegacyClient::Configuration.default.params_encoding).to eq(nil)
|
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
|
61
|
+
|
|
62
|
+
request = api_client.build_request(:get, '/test')
|
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
it 'can be customized' do
|
|
67
|
+
config.params_encoding = :multi
|
|
68
|
+
request = api_client.build_request(:get, '/test')
|
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
describe 'timeout in #build_request' do
|
|
74
|
+
let(:config) { Harbor2LegacyClient::Configuration.new }
|
|
75
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new(config) }
|
|
76
|
+
|
|
77
|
+
it 'defaults to 0' do
|
|
78
|
+
expect(Harbor2LegacyClient::Configuration.default.timeout).to eq(0)
|
|
79
|
+
expect(config.timeout).to eq(0)
|
|
80
|
+
|
|
81
|
+
request = api_client.build_request(:get, '/test')
|
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
it 'can be customized' do
|
|
86
|
+
config.timeout = 100
|
|
87
|
+
request = api_client.build_request(:get, '/test')
|
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
describe '#build_request' do
|
|
93
|
+
let(:config) { Harbor2LegacyClient::Configuration.new }
|
|
94
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new(config) }
|
|
95
|
+
|
|
96
|
+
it 'does not send multipart to request' do
|
|
97
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_not_including(:multipart))
|
|
98
|
+
api_client.build_request(:get, '/test')
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
context 'when the content type is multipart' do
|
|
102
|
+
it 'sends multipart to request' do
|
|
103
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_including(multipart: true))
|
|
104
|
+
api_client.build_request(:get, '/test', {header_params: { 'Content-Type' => 'multipart/form-data'}})
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
describe '#deserialize' do
|
|
110
|
+
it "handles Array<Integer>" do
|
|
111
|
+
api_client = Harbor2LegacyClient::ApiClient.new
|
|
112
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
113
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
|
114
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
|
115
|
+
expect(data).to be_instance_of(Array)
|
|
116
|
+
expect(data).to eq([12, 34])
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
it 'handles Array<Array<Integer>>' do
|
|
120
|
+
api_client = Harbor2LegacyClient::ApiClient.new
|
|
121
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
122
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
123
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
124
|
+
expect(data).to be_instance_of(Array)
|
|
125
|
+
expect(data).to eq([[12, 34], [56]])
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
it 'handles Hash<String, String>' do
|
|
129
|
+
api_client = Harbor2LegacyClient::ApiClient.new
|
|
130
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
131
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
|
132
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
|
133
|
+
expect(data).to be_instance_of(Hash)
|
|
134
|
+
expect(data).to eq(:message => 'Hello')
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
describe "#object_to_hash" do
|
|
139
|
+
it 'ignores nils and includes empty arrays' do
|
|
140
|
+
# uncomment below to test object_to_hash for model
|
|
141
|
+
# api_client = Harbor2LegacyClient::ApiClient.new
|
|
142
|
+
# _model = Harbor2LegacyClient::ModelName.new
|
|
143
|
+
# update the model attribute below
|
|
144
|
+
# _model.id = 1
|
|
145
|
+
# update the expected value (hash) below
|
|
146
|
+
# expected = {id: 1, name: '', tags: []}
|
|
147
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
describe '#build_collection_param' do
|
|
152
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
|
153
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new }
|
|
154
|
+
|
|
155
|
+
it 'works for csv' do
|
|
156
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
it 'works for ssv' do
|
|
160
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
it 'works for tsv' do
|
|
164
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
it 'works for pipes' do
|
|
168
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
it 'works for multi' do
|
|
172
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
it 'fails for invalid collection format' do
|
|
176
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
describe '#json_mime?' do
|
|
181
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new }
|
|
182
|
+
|
|
183
|
+
it 'works' do
|
|
184
|
+
expect(api_client.json_mime?(nil)).to eq false
|
|
185
|
+
expect(api_client.json_mime?('')).to eq false
|
|
186
|
+
|
|
187
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
|
188
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
|
189
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
|
190
|
+
|
|
191
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
|
192
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
|
193
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
describe '#select_header_accept' do
|
|
198
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new }
|
|
199
|
+
|
|
200
|
+
it 'works' do
|
|
201
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
|
202
|
+
expect(api_client.select_header_accept([])).to be_nil
|
|
203
|
+
|
|
204
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
|
205
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
206
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
207
|
+
|
|
208
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
|
209
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
describe '#select_header_content_type' do
|
|
214
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new }
|
|
215
|
+
|
|
216
|
+
it 'works' do
|
|
217
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
|
218
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
|
219
|
+
|
|
220
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
221
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
222
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
223
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
|
224
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
describe '#sanitize_filename' do
|
|
229
|
+
let(:api_client) { Harbor2LegacyClient::ApiClient.new }
|
|
230
|
+
|
|
231
|
+
it 'works' do
|
|
232
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
233
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
234
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
|
235
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
|
236
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
|
237
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
|
238
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
|
239
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
|
240
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Harbor API
|
|
3
|
+
|
|
4
|
+
#These APIs provide services for manipulating Harbor project.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.17
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
|
|
15
|
+
describe Harbor2LegacyClient::Configuration do
|
|
16
|
+
let(:config) { Harbor2LegacyClient::Configuration.default }
|
|
17
|
+
|
|
18
|
+
before(:each) do
|
|
19
|
+
# uncomment below to setup host and base_path
|
|
20
|
+
# require 'URI'
|
|
21
|
+
# uri = URI.parse("http://localhost/api/v2.0")
|
|
22
|
+
# Harbor2LegacyClient.configure do |c|
|
|
23
|
+
# c.host = uri.host
|
|
24
|
+
# c.base_path = uri.path
|
|
25
|
+
# end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe '#base_url' do
|
|
29
|
+
it 'should have the default value' do
|
|
30
|
+
# uncomment below to test default value of the base path
|
|
31
|
+
# expect(config.base_url).to eq("http://localhost/api/v2.0")
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
it 'should remove trailing slashes' do
|
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
|
36
|
+
config.base_path = base_path
|
|
37
|
+
# uncomment below to test trailing slashes
|
|
38
|
+
# expect(config.base_url).to eq("http://localhost/api/v2.0")
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Harbor API
|
|
3
|
+
|
|
4
|
+
#These APIs provide services for manipulating Harbor project.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.17
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Harbor2LegacyClient::Action1
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Action1' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = Harbor2LegacyClient::Action1.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Action1' do
|
|
31
|
+
it 'should create an instance of Action1' do
|
|
32
|
+
expect(@instance).to be_instance_of(Harbor2LegacyClient::Action1)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "action"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Harbor API
|
|
3
|
+
|
|
4
|
+
#These APIs provide services for manipulating Harbor project.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.17
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Harbor2LegacyClient::Action
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Action' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = Harbor2LegacyClient::Action.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Action' do
|
|
31
|
+
it 'should create an instance of Action' do
|
|
32
|
+
expect(@instance).to be_instance_of(Harbor2LegacyClient::Action)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "dry_run"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Harbor API
|
|
3
|
+
|
|
4
|
+
#These APIs provide services for manipulating Harbor project.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.17
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Harbor2LegacyClient::AdminJobScheduleObj
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AdminJobScheduleObj' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = Harbor2LegacyClient::AdminJobScheduleObj.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AdminJobScheduleObj' do
|
|
31
|
+
it 'should create an instance of AdminJobScheduleObj' do
|
|
32
|
+
expect(@instance).to be_instance_of(Harbor2LegacyClient::AdminJobScheduleObj)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "type"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "cron"' 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
|
+
end
|