Search in sources :

Example 1 with Sites

use of com.formkiq.stacks.client.models.Sites in project formkiq-core by formkiq.

the class SitesRequestTest method testSites01.

/**
 * Test GET /version.
 *
 * @throws Exception Exception
 */
@Test(timeout = TEST_TIMEOUT)
public void testSites01() throws Exception {
    // given
    AuthenticationResultType token = login(USER_EMAIL, USER_PASSWORD);
    putParameter("/formkiq/" + getAppenvironment() + "/maildomain", "tryformkiq.com");
    FormKiqClientV1 client = createHttpClient(token);
    // when
    Sites sites = client.getSites();
    // then
    assertEquals(1, sites.sites().size());
    assertNotNull(sites.sites().get(0).siteId());
    assertTrue(sites.sites().get(0).uploadEmail().endsWith("@tryformkiq.com"));
}
Also used : AuthenticationResultType(software.amazon.awssdk.services.cognitoidentityprovider.model.AuthenticationResultType) FormKiqClientV1(com.formkiq.stacks.client.FormKiqClientV1) Sites(com.formkiq.stacks.client.models.Sites) Test(org.junit.Test)

Aggregations

FormKiqClientV1 (com.formkiq.stacks.client.FormKiqClientV1)1 Sites (com.formkiq.stacks.client.models.Sites)1 Test (org.junit.Test)1 AuthenticationResultType (software.amazon.awssdk.services.cognitoidentityprovider.model.AuthenticationResultType)1