Files
WPS3Media/vendor/Aws3/Aws/data/cloudfront/2016-08-20/endpoint-tests-1.json.php
Malin 3248cbb029 feat: add S3-compatible storage provider (MinIO, Ceph, R2, etc.)
Adds a new 'S3-Compatible Storage' provider that works with any
S3-API-compatible object storage service, including MinIO, Ceph,
Cloudflare R2, Backblaze B2, and others.

Changes:
- New provider class: classes/providers/storage/s3-compatible-provider.php
  - Provider key: s3compatible
  - Reads user-configured endpoint URL from settings
  - Uses path-style URL access (required by most S3-compatible services)
  - Supports credentials via AS3CF_S3COMPAT_ACCESS_KEY_ID /
    AS3CF_S3COMPAT_SECRET_ACCESS_KEY wp-config.php constants
  - Disables AWS-specific features (Block Public Access, Object Ownership)
- New provider SVG icons (s3compatible.svg, -link.svg, -round.svg)
- Registered provider in main plugin class with endpoint setting support
- Updated StorageProviderSubPage to show endpoint URL input for S3-compatible
- Built pro settings bundle with rollup (Svelte 4.2.19)
- Added package.json and updated rollup.config.mjs for pro-only builds
2026-03-03 12:30:18 +01:00

7 lines
8.1 KiB
PHP

<?php
namespace DeliciousBrains\WP_Offload_Media\Aws3;
// This file was auto-generated from sdk-root/src/data/cloudfront/2016-08-20/endpoint-tests-1.json
return ['testCases' => [['documentation' => 'For region aws-global with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['properties' => ['authSchemes' => [['name' => 'sigv4', 'signingName' => 'cloudfront', 'signingRegion' => 'us-east-1']]], 'url' => 'https://cloudfront.amazonaws.com']], 'params' => ['Region' => 'aws-global', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For region aws-global with FIPS enabled and DualStack disabled', 'expect' => ['endpoint' => ['properties' => ['authSchemes' => [['name' => 'sigv4', 'signingName' => 'cloudfront', 'signingRegion' => 'us-east-1']]], 'url' => 'https://cloudfront-fips.amazonaws.com']], 'params' => ['Region' => 'aws-global', 'UseFIPS' => \true, 'UseDualStack' => \false]], ['documentation' => 'For region us-east-1 with FIPS enabled and DualStack enabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.us-east-1.api.aws']], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \true, 'UseDualStack' => \true]], ['documentation' => 'For region us-east-1 with FIPS enabled and DualStack disabled', 'expect' => ['endpoint' => ['properties' => ['authSchemes' => [['name' => 'sigv4', 'signingName' => 'cloudfront', 'signingRegion' => 'us-east-1']]], 'url' => 'https://cloudfront-fips.amazonaws.com']], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \true, 'UseDualStack' => \false]], ['documentation' => 'For region us-east-1 with FIPS disabled and DualStack enabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront.us-east-1.api.aws']], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \false, 'UseDualStack' => \true]], ['documentation' => 'For region us-east-1 with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['properties' => ['authSchemes' => [['name' => 'sigv4', 'signingName' => 'cloudfront', 'signingRegion' => 'us-east-1']]], 'url' => 'https://cloudfront.amazonaws.com']], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For region aws-cn-global with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['properties' => ['authSchemes' => [['name' => 'sigv4', 'signingName' => 'cloudfront', 'signingRegion' => 'cn-northwest-1']]], 'url' => 'https://cloudfront.cn-northwest-1.amazonaws.com.cn']], 'params' => ['Region' => 'aws-cn-global', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For region cn-north-1 with FIPS enabled and DualStack enabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.cn-north-1.api.amazonwebservices.com.cn']], 'params' => ['Region' => 'cn-north-1', 'UseFIPS' => \true, 'UseDualStack' => \true]], ['documentation' => 'For region cn-north-1 with FIPS enabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.cn-north-1.amazonaws.com.cn']], 'params' => ['Region' => 'cn-north-1', 'UseFIPS' => \true, 'UseDualStack' => \false]], ['documentation' => 'For region cn-north-1 with FIPS disabled and DualStack enabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront.cn-north-1.api.amazonwebservices.com.cn']], 'params' => ['Region' => 'cn-north-1', 'UseFIPS' => \false, 'UseDualStack' => \true]], ['documentation' => 'For region cn-north-1 with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['properties' => ['authSchemes' => [['name' => 'sigv4', 'signingName' => 'cloudfront', 'signingRegion' => 'cn-northwest-1']]], 'url' => 'https://cloudfront.cn-northwest-1.amazonaws.com.cn']], 'params' => ['Region' => 'cn-north-1', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For region us-gov-east-1 with FIPS enabled and DualStack enabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.us-gov-east-1.api.aws']], 'params' => ['Region' => 'us-gov-east-1', 'UseFIPS' => \true, 'UseDualStack' => \true]], ['documentation' => 'For region us-gov-east-1 with FIPS enabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.us-gov-east-1.amazonaws.com']], 'params' => ['Region' => 'us-gov-east-1', 'UseFIPS' => \true, 'UseDualStack' => \false]], ['documentation' => 'For region us-gov-east-1 with FIPS disabled and DualStack enabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront.us-gov-east-1.api.aws']], 'params' => ['Region' => 'us-gov-east-1', 'UseFIPS' => \false, 'UseDualStack' => \true]], ['documentation' => 'For region us-gov-east-1 with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront.us-gov-east-1.amazonaws.com']], 'params' => ['Region' => 'us-gov-east-1', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For region us-iso-east-1 with FIPS enabled and DualStack enabled', 'expect' => ['error' => 'FIPS and DualStack are enabled, but this partition does not support one or both'], 'params' => ['Region' => 'us-iso-east-1', 'UseFIPS' => \true, 'UseDualStack' => \true]], ['documentation' => 'For region us-iso-east-1 with FIPS enabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.us-iso-east-1.c2s.ic.gov']], 'params' => ['Region' => 'us-iso-east-1', 'UseFIPS' => \true, 'UseDualStack' => \false]], ['documentation' => 'For region us-iso-east-1 with FIPS disabled and DualStack enabled', 'expect' => ['error' => 'DualStack is enabled but this partition does not support DualStack'], 'params' => ['Region' => 'us-iso-east-1', 'UseFIPS' => \false, 'UseDualStack' => \true]], ['documentation' => 'For region us-iso-east-1 with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront.us-iso-east-1.c2s.ic.gov']], 'params' => ['Region' => 'us-iso-east-1', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For region us-isob-east-1 with FIPS enabled and DualStack enabled', 'expect' => ['error' => 'FIPS and DualStack are enabled, but this partition does not support one or both'], 'params' => ['Region' => 'us-isob-east-1', 'UseFIPS' => \true, 'UseDualStack' => \true]], ['documentation' => 'For region us-isob-east-1 with FIPS enabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront-fips.us-isob-east-1.sc2s.sgov.gov']], 'params' => ['Region' => 'us-isob-east-1', 'UseFIPS' => \true, 'UseDualStack' => \false]], ['documentation' => 'For region us-isob-east-1 with FIPS disabled and DualStack enabled', 'expect' => ['error' => 'DualStack is enabled but this partition does not support DualStack'], 'params' => ['Region' => 'us-isob-east-1', 'UseFIPS' => \false, 'UseDualStack' => \true]], ['documentation' => 'For region us-isob-east-1 with FIPS disabled and DualStack disabled', 'expect' => ['endpoint' => ['url' => 'https://cloudfront.us-isob-east-1.sc2s.sgov.gov']], 'params' => ['Region' => 'us-isob-east-1', 'UseFIPS' => \false, 'UseDualStack' => \false]], ['documentation' => 'For custom endpoint with region set and fips disabled and dualstack disabled', 'expect' => ['endpoint' => ['url' => 'https://example.com']], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \false, 'UseDualStack' => \false, 'Endpoint' => 'https://example.com']], ['documentation' => 'For custom endpoint with region not set and fips disabled and dualstack disabled', 'expect' => ['endpoint' => ['url' => 'https://example.com']], 'params' => ['UseFIPS' => \false, 'UseDualStack' => \false, 'Endpoint' => 'https://example.com']], ['documentation' => 'For custom endpoint with fips enabled and dualstack disabled', 'expect' => ['error' => 'Invalid Configuration: FIPS and custom endpoint are not supported'], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \true, 'UseDualStack' => \false, 'Endpoint' => 'https://example.com']], ['documentation' => 'For custom endpoint with fips disabled and dualstack enabled', 'expect' => ['error' => 'Invalid Configuration: Dualstack and custom endpoint are not supported'], 'params' => ['Region' => 'us-east-1', 'UseFIPS' => \false, 'UseDualStack' => \true, 'Endpoint' => 'https://example.com']], ['documentation' => 'Missing region', 'expect' => ['error' => 'Invalid Configuration: Missing Region']]], 'version' => '1.0'];