mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
feat(marketplace-entitlement): emulate AWS Marketplace Entitlement API (#3340)
This commit is contained in:
1 parent
3090e333d4
commit
87f2c2d1a8
13 files changed
+425
-4
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
package com.floci.test;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import software.amazon.awssdk.services.marketplaceentitlement.MarketplaceEntitlementClient;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
class MarketplaceEntitlementTest {
|
||||
|
||||
@Test
|
||||
void usesAwsSdkWireContract() {
|
||||
try (MarketplaceEntitlementClient client = TestFixtures.marketplaceEntitlementClient()) {
|
||||
var response = client.getEntitlements(r -> r.productCode("product-local"));
|
||||
assertNotNull(response.entitlements());
|
||||
assertTrue(response.entitlements().isEmpty());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user