mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
feat(marketplace-metering): emulate AWS Marketplace Metering API (#3344)
This commit is contained in:
1 parent
f9f90cfc98
commit
efcbc4d993
12 files changed
+652
-3
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
package com.floci.test;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import software.amazon.awssdk.services.marketplacemetering.MarketplaceMeteringClient;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
class MarketplaceMeteringTest {
|
||||
|
||||
@Test
|
||||
void usesAwsSdkWireContract() {
|
||||
try (MarketplaceMeteringClient client = TestFixtures.marketplaceMeteringClient()) {
|
||||
var response = client.resolveCustomer(r -> r.registrationToken("local-registration-token"));
|
||||
assertNotNull(response.customerAWSAccountId());
|
||||
assertNotNull(response.licenseArn());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user