cloudsmith-api 2.0.29 → 2.0.31
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/Gemfile.lock +1 -1
- data/README.md +30 -4
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +4 -0
- data/docs/AlpinePackageUploadRequest.md +2 -0
- data/docs/CargoPackageUpload.md +4 -0
- data/docs/CargoPackageUploadRequest.md +2 -0
- data/docs/CocoapodsPackageUpload.md +4 -0
- data/docs/CocoapodsPackageUploadRequest.md +2 -0
- data/docs/ComposerPackageUpload.md +4 -0
- data/docs/ComposerPackageUploadRequest.md +2 -0
- data/docs/ConanPackageUpload.md +4 -0
- data/docs/ConanPackageUploadRequest.md +2 -0
- data/docs/CondaPackageUpload.md +4 -0
- data/docs/CondaPackageUploadRequest.md +2 -0
- data/docs/CranPackageUpload.md +4 -0
- data/docs/CranPackageUploadRequest.md +2 -0
- data/docs/DartPackageUpload.md +4 -0
- data/docs/DartPackageUploadRequest.md +2 -0
- data/docs/DebPackageUpload.md +4 -0
- data/docs/DebPackageUploadRequest.md +2 -0
- data/docs/DockerPackageUpload.md +4 -0
- data/docs/DockerPackageUploadRequest.md +2 -0
- data/docs/GenericPackageUpload.md +4 -0
- data/docs/GenericPackageUploadRequest.md +2 -0
- data/docs/GoPackageUpload.md +4 -0
- data/docs/GoPackageUploadRequest.md +2 -0
- data/docs/HelmPackageUpload.md +4 -0
- data/docs/HelmPackageUploadRequest.md +2 -0
- data/docs/HexPackageUpload.md +4 -0
- data/docs/HexPackageUploadRequest.md +2 -0
- data/docs/HuggingfacePackageUpload.md +4 -0
- data/docs/HuggingfacePackageUploadRequest.md +2 -0
- data/docs/InlineResponse200.md +5 -1
- data/docs/InlineResponse2001.md +3 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +8 -0
- data/docs/InlineResponse2004.md +8 -0
- data/docs/LuarocksPackageUpload.md +4 -0
- data/docs/LuarocksPackageUploadRequest.md +2 -0
- data/docs/MavenPackageUpload.md +4 -0
- data/docs/MavenPackageUploadRequest.md +2 -0
- data/docs/McpPackageUpload.md +4 -0
- data/docs/McpPackageUploadRequest.md +2 -0
- data/docs/NixPackageUpload.md +97 -0
- data/docs/NixPackageUploadRequest.md +14 -0
- data/docs/NixUpstream.md +32 -0
- data/docs/NixUpstreamRequest.md +20 -0
- data/docs/NixUpstreamRequestPatch.md +20 -0
- data/docs/NpmPackageUpload.md +4 -0
- data/docs/NpmPackageUploadRequest.md +2 -0
- data/docs/NugetPackageUpload.md +4 -0
- data/docs/NugetPackageUploadRequest.md +2 -0
- data/docs/Oidc.md +7 -0
- data/docs/Oidc1.md +8 -0
- data/docs/OidcRequest.md +9 -0
- data/docs/OpenidApi.md +71 -0
- data/docs/OrganizationUsage.md +11 -0
- data/docs/OrganizationUsageUpdate.md +10 -0
- data/docs/OrganizationUsageUpdateRequestPatch.md +10 -0
- data/docs/OrgsApi.md +120 -0
- data/docs/P2PackageUpload.md +4 -0
- data/docs/P2PackageUploadRequest.md +2 -0
- data/docs/Package.md +4 -0
- data/docs/PackageCopy.md +4 -0
- data/docs/PackageCopyRequest.md +2 -0
- data/docs/PackageDetail.md +100 -0
- data/docs/PackageLicense.md +2 -0
- data/docs/PackageLicenseRequestPatch.md +3 -1
- data/docs/PackageMove.md +4 -0
- data/docs/PackageMoveRequest.md +2 -0
- data/docs/PackageQuarantine.md +4 -0
- data/docs/PackageQuarantineRequest.md +2 -0
- data/docs/PackageResync.md +4 -0
- data/docs/PackageTag.md +4 -0
- data/docs/PackageTagRequest.md +2 -0
- data/docs/PackageVulnerability.md +2 -0
- data/docs/PackagesApi.md +135 -4
- data/docs/PythonPackageUpload.md +4 -0
- data/docs/PythonPackageUploadRequest.md +2 -0
- data/docs/RawPackageUpload.md +4 -0
- data/docs/RawPackageUploadRequest.md +2 -0
- data/docs/RecycleBinPackage.md +2 -0
- data/docs/ReposApi.md +403 -2
- data/docs/RpmPackageUpload.md +4 -0
- data/docs/RpmPackageUploadRequest.md +2 -0
- data/docs/RubyPackageUpload.md +4 -0
- data/docs/RubyPackageUploadRequest.md +2 -0
- data/docs/SwiftPackageUpload.md +4 -0
- data/docs/SwiftPackageUploadRequest.md +2 -0
- data/docs/TerraformPackageUpload.md +4 -0
- data/docs/TerraformPackageUploadRequest.md +2 -0
- data/docs/UserApi.md +2 -2
- data/docs/VagrantPackageUpload.md +4 -0
- data/docs/VagrantPackageUploadRequest.md +2 -0
- data/docs/VsxPackageUpload.md +4 -0
- data/docs/VsxPackageUploadRequest.md +2 -0
- data/docs/WebOSVSeverityCounts.md +14 -0
- data/lib/cloudsmith-api/api/openid_api.rb +79 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +106 -0
- data/lib/cloudsmith-api/api/packages_api.rb +129 -6
- data/lib/cloudsmith-api/api/repos_api.rb +398 -3
- data/lib/cloudsmith-api/api/user_api.rb +3 -3
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/alpine_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/cargo_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/cargo_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/composer_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/composer_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/conan_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/conan_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/conda_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/conda_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/cran_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/cran_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/dart_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/dart_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/deb_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/deb_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/docker_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/docker_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/generic_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/generic_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/go_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/go_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/helm_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/helm_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/hex_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/hex_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/huggingface_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/huggingface_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/inline_response_200.rb +48 -14
- data/lib/cloudsmith-api/models/inline_response_200_1.rb +28 -14
- data/lib/cloudsmith-api/models/inline_response_200_2.rb +1 -1
- data/lib/cloudsmith-api/models/inline_response_200_3.rb +191 -0
- data/lib/cloudsmith-api/models/inline_response_200_4.rb +191 -0
- data/lib/cloudsmith-api/models/luarocks_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/maven_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/maven_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/mcp_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/mcp_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/nix_package_upload.rb +1061 -0
- data/lib/cloudsmith-api/models/nix_package_upload_request.rb +249 -0
- data/lib/cloudsmith-api/models/nix_upstream.rb +496 -0
- data/lib/cloudsmith-api/models/nix_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/nix_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/npm_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/npm_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/nuget_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/oidc.rb +175 -0
- data/lib/cloudsmith-api/models/oidc_1.rb +185 -0
- data/lib/cloudsmith-api/models/oidc_request.rb +205 -0
- data/lib/cloudsmith-api/models/organization_usage.rb +215 -0
- data/lib/cloudsmith-api/models/organization_usage_update.rb +202 -0
- data/lib/cloudsmith-api/models/organization_usage_update_request_patch.rb +202 -0
- data/lib/cloudsmith-api/models/p2_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/p2_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/package.rb +42 -1
- data/lib/cloudsmith-api/models/package_copy.rb +42 -1
- data/lib/cloudsmith-api/models/package_copy_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_detail.rb +1090 -0
- data/lib/cloudsmith-api/models/package_license.rb +23 -4
- data/lib/cloudsmith-api/models/package_license_request_patch.rb +28 -4
- data/lib/cloudsmith-api/models/package_move.rb +42 -1
- data/lib/cloudsmith-api/models/package_move_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_quarantine.rb +42 -1
- data/lib/cloudsmith-api/models/package_quarantine_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_resync.rb +42 -1
- data/lib/cloudsmith-api/models/package_tag.rb +42 -1
- data/lib/cloudsmith-api/models/package_tag_request.rb +23 -4
- data/lib/cloudsmith-api/models/package_vulnerability.rb +23 -4
- data/lib/cloudsmith-api/models/python_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/python_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/raw_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/raw_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/recycle_bin_package.rb +23 -4
- data/lib/cloudsmith-api/models/rpm_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/rpm_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/ruby_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/ruby_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/swift_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/swift_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/terraform_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/terraform_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/vsx_package_upload.rb +42 -1
- data/lib/cloudsmith-api/models/vsx_package_upload_request.rb +23 -4
- data/lib/cloudsmith-api/models/web_osv_severity_counts.rb +239 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +16 -0
- data/spec/api/openid_api_spec.rb +48 -0
- data/spec/api/orgs_api_spec.rb +23 -0
- data/spec/api/packages_api_spec.rb +30 -2
- data/spec/api/repos_api_spec.rb +88 -1
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/models/alpine_package_upload_request_spec.rb +12 -0
- data/spec/models/alpine_package_upload_spec.rb +24 -0
- data/spec/models/cargo_package_upload_request_spec.rb +12 -0
- data/spec/models/cargo_package_upload_spec.rb +24 -0
- data/spec/models/cocoapods_package_upload_request_spec.rb +12 -0
- data/spec/models/cocoapods_package_upload_spec.rb +24 -0
- data/spec/models/composer_package_upload_request_spec.rb +12 -0
- data/spec/models/composer_package_upload_spec.rb +24 -0
- data/spec/models/conan_package_upload_request_spec.rb +12 -0
- data/spec/models/conan_package_upload_spec.rb +24 -0
- data/spec/models/conda_package_upload_request_spec.rb +12 -0
- data/spec/models/conda_package_upload_spec.rb +24 -0
- data/spec/models/cran_package_upload_request_spec.rb +12 -0
- data/spec/models/cran_package_upload_spec.rb +24 -0
- data/spec/models/dart_package_upload_request_spec.rb +12 -0
- data/spec/models/dart_package_upload_spec.rb +24 -0
- data/spec/models/deb_package_upload_request_spec.rb +12 -0
- data/spec/models/deb_package_upload_spec.rb +24 -0
- data/spec/models/docker_package_upload_request_spec.rb +12 -0
- data/spec/models/docker_package_upload_spec.rb +24 -0
- data/spec/models/generic_package_upload_request_spec.rb +12 -0
- data/spec/models/generic_package_upload_spec.rb +24 -0
- data/spec/models/go_package_upload_request_spec.rb +12 -0
- data/spec/models/go_package_upload_spec.rb +24 -0
- data/spec/models/helm_package_upload_request_spec.rb +12 -0
- data/spec/models/helm_package_upload_spec.rb +24 -0
- data/spec/models/hex_package_upload_request_spec.rb +12 -0
- data/spec/models/hex_package_upload_spec.rb +24 -0
- data/spec/models/huggingface_package_upload_request_spec.rb +12 -0
- data/spec/models/huggingface_package_upload_spec.rb +24 -0
- data/spec/models/inline_response_200_1_spec.rb +13 -1
- data/spec/models/inline_response_200_3_spec.rb +41 -0
- data/spec/models/inline_response_200_4_spec.rb +41 -0
- data/spec/models/inline_response_200_spec.rb +25 -1
- data/spec/models/luarocks_package_upload_request_spec.rb +12 -0
- data/spec/models/luarocks_package_upload_spec.rb +24 -0
- data/spec/models/maven_package_upload_request_spec.rb +12 -0
- data/spec/models/maven_package_upload_spec.rb +24 -0
- data/spec/models/mcp_package_upload_request_spec.rb +12 -0
- data/spec/models/mcp_package_upload_spec.rb +24 -0
- data/spec/models/nix_package_upload_request_spec.rb +77 -0
- data/spec/models/nix_package_upload_spec.rb +579 -0
- data/spec/models/nix_upstream_request_patch_spec.rb +121 -0
- data/spec/models/nix_upstream_request_spec.rb +121 -0
- data/spec/models/nix_upstream_spec.rb +197 -0
- data/spec/models/npm_package_upload_request_spec.rb +12 -0
- data/spec/models/npm_package_upload_spec.rb +24 -0
- data/spec/models/nuget_package_upload_request_spec.rb +12 -0
- data/spec/models/nuget_package_upload_spec.rb +24 -0
- data/spec/models/oidc_1_spec.rb +41 -0
- data/spec/models/oidc_request_spec.rb +47 -0
- data/spec/models/oidc_spec.rb +35 -0
- data/spec/models/organization_usage_spec.rb +59 -0
- data/spec/models/organization_usage_update_request_patch_spec.rb +53 -0
- data/spec/models/organization_usage_update_spec.rb +53 -0
- data/spec/models/p2_package_upload_request_spec.rb +12 -0
- data/spec/models/p2_package_upload_spec.rb +24 -0
- data/spec/models/package_copy_request_spec.rb +12 -0
- data/spec/models/package_copy_spec.rb +24 -0
- data/spec/models/package_detail_spec.rb +597 -0
- data/spec/models/package_license_request_patch_spec.rb +12 -0
- data/spec/models/package_license_spec.rb +12 -0
- data/spec/models/package_move_request_spec.rb +12 -0
- data/spec/models/package_move_spec.rb +24 -0
- data/spec/models/package_quarantine_request_spec.rb +12 -0
- data/spec/models/package_quarantine_spec.rb +24 -0
- data/spec/models/package_resync_spec.rb +24 -0
- data/spec/models/package_spec.rb +24 -0
- data/spec/models/package_tag_request_spec.rb +12 -0
- data/spec/models/package_tag_spec.rb +24 -0
- data/spec/models/package_vulnerability_spec.rb +12 -0
- data/spec/models/python_package_upload_request_spec.rb +12 -0
- data/spec/models/python_package_upload_spec.rb +24 -0
- data/spec/models/raw_package_upload_request_spec.rb +12 -0
- data/spec/models/raw_package_upload_spec.rb +24 -0
- data/spec/models/recycle_bin_package_spec.rb +12 -0
- data/spec/models/rpm_package_upload_request_spec.rb +12 -0
- data/spec/models/rpm_package_upload_spec.rb +24 -0
- data/spec/models/ruby_package_upload_request_spec.rb +12 -0
- data/spec/models/ruby_package_upload_spec.rb +24 -0
- data/spec/models/swift_package_upload_request_spec.rb +12 -0
- data/spec/models/swift_package_upload_spec.rb +24 -0
- data/spec/models/terraform_package_upload_request_spec.rb +12 -0
- data/spec/models/terraform_package_upload_spec.rb +24 -0
- data/spec/models/vagrant_package_upload_request_spec.rb +12 -0
- data/spec/models/vagrant_package_upload_spec.rb +24 -0
- data/spec/models/vsx_package_upload_request_spec.rb +12 -0
- data/spec/models/vsx_package_upload_spec.rb +24 -0
- data/spec/models/web_osv_severity_counts_spec.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +69 -5
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::NixUpstreamRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'NixUpstreamRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::NixUpstreamRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of NixUpstreamRequest' do
|
|
31
|
+
it 'should create an instance of NixUpstreamRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::NixUpstreamRequest)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "auth_mode"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"])
|
|
39
|
+
# validator.allowable_values.each do |value|
|
|
40
|
+
# expect { @instance.auth_mode = value }.not_to raise_error
|
|
41
|
+
# end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "auth_secret"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
describe 'test attribute "auth_username"' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe 'test attribute "extra_header_1"' 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
|
+
describe 'test attribute "extra_header_2"' 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
|
+
describe 'test attribute "extra_value_1"' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
describe 'test attribute "extra_value_2"' do
|
|
76
|
+
it 'should work' do
|
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
describe 'test attribute "is_active"' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
describe 'test attribute "mode"' do
|
|
88
|
+
it 'should work' do
|
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
90
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
|
|
91
|
+
# validator.allowable_values.each do |value|
|
|
92
|
+
# expect { @instance.mode = value }.not_to raise_error
|
|
93
|
+
# end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
describe 'test attribute "name"' do
|
|
98
|
+
it 'should work' do
|
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
describe 'test attribute "priority"' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
describe 'test attribute "upstream_url"' do
|
|
110
|
+
it 'should work' do
|
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
describe 'test attribute "verify_ssl"' do
|
|
116
|
+
it 'should work' do
|
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
end
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::NixUpstream
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'NixUpstream' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::NixUpstream.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of NixUpstream' do
|
|
31
|
+
it 'should create an instance of NixUpstream' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::NixUpstream)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "auth_mode"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"])
|
|
39
|
+
# validator.allowable_values.each do |value|
|
|
40
|
+
# expect { @instance.auth_mode = value }.not_to raise_error
|
|
41
|
+
# end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "auth_secret"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
describe 'test attribute "auth_username"' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe 'test attribute "available"' 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
|
+
describe 'test attribute "can_reindex"' 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
|
+
describe 'test attribute "created_at"' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
describe 'test attribute "disable_reason"' do
|
|
76
|
+
it 'should work' do
|
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
78
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["N/A", "Upstream points to its own repository", "Missing upstream source", "RSA key did not verify the upstream's APKINDEX signature", "Upstream was disabled by request of user"])
|
|
79
|
+
# validator.allowable_values.each do |value|
|
|
80
|
+
# expect { @instance.disable_reason = value }.not_to raise_error
|
|
81
|
+
# end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
describe 'test attribute "disable_reason_text"' do
|
|
86
|
+
it 'should work' do
|
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
describe 'test attribute "extra_header_1"' do
|
|
92
|
+
it 'should work' do
|
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
describe 'test attribute "extra_header_2"' do
|
|
98
|
+
it 'should work' do
|
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
describe 'test attribute "extra_value_1"' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
describe 'test attribute "extra_value_2"' do
|
|
110
|
+
it 'should work' do
|
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
describe 'test attribute "has_failed_signature_verification"' do
|
|
116
|
+
it 'should work' do
|
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
describe 'test attribute "index_package_count"' do
|
|
122
|
+
it 'should work' do
|
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
describe 'test attribute "index_status"' do
|
|
128
|
+
it 'should work' do
|
|
129
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
describe 'test attribute "is_active"' do
|
|
134
|
+
it 'should work' do
|
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
describe 'test attribute "last_indexed"' do
|
|
140
|
+
it 'should work' do
|
|
141
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
describe 'test attribute "mode"' do
|
|
146
|
+
it 'should work' do
|
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
148
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only", "Cache and Proxy"])
|
|
149
|
+
# validator.allowable_values.each do |value|
|
|
150
|
+
# expect { @instance.mode = value }.not_to raise_error
|
|
151
|
+
# end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
describe 'test attribute "name"' do
|
|
156
|
+
it 'should work' do
|
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
describe 'test attribute "pending_validation"' do
|
|
162
|
+
it 'should work' do
|
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
describe 'test attribute "priority"' do
|
|
168
|
+
it 'should work' do
|
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
describe 'test attribute "slug_perm"' do
|
|
174
|
+
it 'should work' do
|
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
describe 'test attribute "updated_at"' do
|
|
180
|
+
it 'should work' do
|
|
181
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
describe 'test attribute "upstream_url"' do
|
|
186
|
+
it 'should work' do
|
|
187
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
describe 'test attribute "verify_ssl"' do
|
|
192
|
+
it 'should work' do
|
|
193
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
end
|
|
@@ -32,6 +32,12 @@ describe 'NpmPackageUploadRequest' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(CloudsmithApi::NpmPackageUploadRequest)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
describe 'test attribute "is_malware_detected"' 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
|
+
|
|
35
41
|
describe 'test attribute "npm_dist_tag"' do
|
|
36
42
|
it 'should work' do
|
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -56,4 +62,10 @@ describe 'NpmPackageUploadRequest' do
|
|
|
56
62
|
end
|
|
57
63
|
end
|
|
58
64
|
|
|
65
|
+
describe 'test attribute "vulnerability_counts"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
59
71
|
end
|
|
@@ -206,6 +206,12 @@ describe 'NpmPackageUpload' do
|
|
|
206
206
|
end
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
+
describe 'test attribute "is_malware_detected"' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
209
215
|
describe 'test attribute "is_moveable"' do
|
|
210
216
|
it 'should work' do
|
|
211
217
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -474,6 +480,12 @@ describe 'NpmPackageUpload' do
|
|
|
474
480
|
end
|
|
475
481
|
end
|
|
476
482
|
|
|
483
|
+
describe 'test attribute "store_path"' do
|
|
484
|
+
it 'should work' do
|
|
485
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
477
489
|
describe 'test attribute "subtype"' do
|
|
478
490
|
it 'should work' do
|
|
479
491
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -510,6 +522,12 @@ describe 'NpmPackageUpload' do
|
|
|
510
522
|
end
|
|
511
523
|
end
|
|
512
524
|
|
|
525
|
+
describe 'test attribute "tags_static"' do
|
|
526
|
+
it 'should work' do
|
|
527
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
528
|
+
end
|
|
529
|
+
end
|
|
530
|
+
|
|
513
531
|
describe 'test attribute "type_display"' do
|
|
514
532
|
it 'should work' do
|
|
515
533
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -546,6 +564,12 @@ describe 'NpmPackageUpload' do
|
|
|
546
564
|
end
|
|
547
565
|
end
|
|
548
566
|
|
|
567
|
+
describe 'test attribute "vulnerability_counts"' do
|
|
568
|
+
it 'should work' do
|
|
569
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
|
|
549
573
|
describe 'test attribute "vulnerability_scan_results_url"' do
|
|
550
574
|
it 'should work' do
|
|
551
575
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -32,6 +32,12 @@ describe 'NugetPackageUploadRequest' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(CloudsmithApi::NugetPackageUploadRequest)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
describe 'test attribute "is_malware_detected"' 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
|
+
|
|
35
41
|
describe 'test attribute "package_file"' do
|
|
36
42
|
it 'should work' do
|
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -56,4 +62,10 @@ describe 'NugetPackageUploadRequest' do
|
|
|
56
62
|
end
|
|
57
63
|
end
|
|
58
64
|
|
|
65
|
+
describe 'test attribute "vulnerability_counts"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
59
71
|
end
|
|
@@ -206,6 +206,12 @@ describe 'NugetPackageUpload' do
|
|
|
206
206
|
end
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
+
describe 'test attribute "is_malware_detected"' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
209
215
|
describe 'test attribute "is_moveable"' do
|
|
210
216
|
it 'should work' do
|
|
211
217
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -474,6 +480,12 @@ describe 'NugetPackageUpload' do
|
|
|
474
480
|
end
|
|
475
481
|
end
|
|
476
482
|
|
|
483
|
+
describe 'test attribute "store_path"' do
|
|
484
|
+
it 'should work' do
|
|
485
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
477
489
|
describe 'test attribute "subtype"' do
|
|
478
490
|
it 'should work' do
|
|
479
491
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -510,6 +522,12 @@ describe 'NugetPackageUpload' do
|
|
|
510
522
|
end
|
|
511
523
|
end
|
|
512
524
|
|
|
525
|
+
describe 'test attribute "tags_static"' do
|
|
526
|
+
it 'should work' do
|
|
527
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
528
|
+
end
|
|
529
|
+
end
|
|
530
|
+
|
|
513
531
|
describe 'test attribute "type_display"' do
|
|
514
532
|
it 'should work' do
|
|
515
533
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -546,6 +564,12 @@ describe 'NugetPackageUpload' do
|
|
|
546
564
|
end
|
|
547
565
|
end
|
|
548
566
|
|
|
567
|
+
describe 'test attribute "vulnerability_counts"' do
|
|
568
|
+
it 'should work' do
|
|
569
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
|
|
549
573
|
describe 'test attribute "vulnerability_scan_results_url"' do
|
|
550
574
|
it 'should work' do
|
|
551
575
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::Oidc1
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Oidc1' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::Oidc1.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Oidc1' do
|
|
31
|
+
it 'should create an instance of Oidc1' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::Oidc1)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "token"' 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
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::OidcRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'OidcRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::OidcRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of OidcRequest' do
|
|
31
|
+
it 'should create an instance of OidcRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::OidcRequest)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "oidc_token"' 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 "service_slug"' 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
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::Oidc
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Oidc' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::Oidc.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Oidc' do
|
|
31
|
+
it 'should create an instance of Oidc' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::Oidc)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudsmithApi::OrganizationUsage
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'OrganizationUsage' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudsmithApi::OrganizationUsage.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of OrganizationUsage' do
|
|
31
|
+
it 'should create an instance of OrganizationUsage' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::OrganizationUsage)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "bandwidth_maximum"' 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 "bandwidth_overage_limit"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "storage_maximum"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "storage_overage_limit"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|