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:
Hector Ventura authored and GitHub committed 2026-10-03 23:17:05 -04:00
1 parent 3e81b24c9b
commit 7ff3363899
2 files changed
+5 -4

No files matched your search

@@ -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")));
@@ -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());