feat(marketplace-reporting): emulate AWS Marketplace Reporting API (#3343)

This commit is contained in:
Franklin G. Mendoza authored and GitHub committed 2026-09-11 09:15:23 -04:00
1 parent ee23e26bc3
commit 3c080e1ea6
11 files changed
+259 -1

No files matched your search

@@ -0,0 +1,21 @@
package com.floci.test;
import org.junit.jupiter.api.Test;
import software.amazon.awssdk.services.marketplacereporting.MarketplaceReportingClient;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
class MarketplaceReportingTest {
@Test
void usesAwsSdkWireContract() {
try (MarketplaceReportingClient client = TestFixtures.marketplaceReportingClient()) {
String arn = "arn:aws:aws-marketplace::000000000000:AWSMarketplace/ReportingData/Agreement_V1/Dashboard/AgreementSummary_V1";
var response = client.getBuyerDashboard(r -> r.dashboardIdentifier(arn).embeddingDomains("https://example.com"));
assertEquals(arn, response.dashboardIdentifier());
assertFalse(response.embedUrl().isBlank());
}
}
}