mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
feat(marketplace-discovery): emulate AWS Marketplace Discovery API (#3342)
This commit is contained in:
1 parent
137a39add3
commit
07d6cabd8a
10 files changed
+820
-1
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.marketplacediscovery.MarketplaceDiscoveryClient;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
class MarketplaceDiscoveryTest {
|
||||
|
||||
@Test
|
||||
void usesAwsSdkWireContract() {
|
||||
try (MarketplaceDiscoveryClient client = TestFixtures.marketplaceDiscoveryClient()) {
|
||||
var response = client.searchListings(r -> r.searchText("sdk-compat"));
|
||||
assertTrue(response.totalResults() >= 0);
|
||||
assertNotNull(response.listingSummaries());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user