mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
feat(marketplace-reporting): emulate AWS Marketplace Reporting API (#3343)
This commit is contained in:
1 parent
ee23e26bc3
commit
3c080e1ea6
11 files changed
+259
-1
No files matched your search
+21
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user