mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
test(compat): run the Marketplace Entitlement and Agreement tests in every region Floci serves (#5050)
Since #5028 Floci serves Entitlement in us-east-1, cn-northwest-1 and eusc-de-east-1, and Agreement in us-east-1, the three ISO regions and eusc-de-east-1. The compat guards still skipped both tests outside us-east-1; they now take the same region sets, so a run in those regions exercises the wider support.
This commit is contained in:
1 parent
3e81b24c9b
commit
7ff3363899
2 files changed
+5
-4
No files matched your search
+3
-2
@@ -11,12 +11,13 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
class MarketplaceAgreementTest {
|
||||
|
||||
private static final List<String> REGIONS = List.of("us-east-1");
|
||||
private static final List<String> REGIONS = List.of(
|
||||
"us-east-1", "us-iso-east-1", "us-isob-east-1", "us-isof-south-1", "eusc-de-east-1");
|
||||
|
||||
@Test
|
||||
void usesAwsSdkWireContract() {
|
||||
assumeTrue(REGIONS.contains(TestFixtures.region().id()),
|
||||
"Floci serves AWS Marketplace Agreement only in us-east-1");
|
||||
"AWS Marketplace Agreement has no endpoint in this region");
|
||||
try (MarketplaceAgreementClient client = TestFixtures.marketplaceAgreementClient()) {
|
||||
SearchAgreementsResponse response = client.searchAgreements(r -> r.filters(
|
||||
f -> f.name("AgreementType").values("PurchaseAgreement")));
|
||||
|
||||
+2
-2
@@ -12,12 +12,12 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
class MarketplaceEntitlementTest {
|
||||
|
||||
private static final List<String> REGIONS = List.of("us-east-1");
|
||||
private static final List<String> REGIONS = List.of("us-east-1", "cn-northwest-1", "eusc-de-east-1");
|
||||
|
||||
@Test
|
||||
void usesAwsSdkWireContract() {
|
||||
assumeTrue(REGIONS.contains(TestFixtures.region().id()),
|
||||
"Floci serves AWS Marketplace Entitlement only in us-east-1");
|
||||
"AWS Marketplace Entitlement has no endpoint in this region");
|
||||
try (MarketplaceEntitlementClient client = TestFixtures.marketplaceEntitlementClient()) {
|
||||
GetEntitlementsResponse response = client.getEntitlements(r -> r.productCode("product-local"));
|
||||
assertNotNull(response.entitlements());
|
||||
|
||||
Reference in new issue
Block a user