Skip to content

Commit ce55f92

Browse files
committed
update
1 parent 95a3408 commit ce55f92

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lambda-api/src/integration/java/com/formkiq/stacks/api/awstest/DocumentsDocumentIdUrlRequestTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
package com.formkiq.stacks.api.awstest;
2525

2626
import static com.formkiq.testutils.aws.FkqDocumentService.addDocument;
27-
import static com.formkiq.testutils.aws.FkqDocumentService.waitForDocumentContent;
2827
import static com.formkiq.testutils.aws.FkqDocumentService.waitForDocumentContentType;
2928
import static org.junit.jupiter.api.Assertions.assertEquals;
3029
import java.nio.charset.StandardCharsets;
31-
import java.util.concurrent.TimeUnit;
30+
3231
import org.junit.jupiter.api.Test;
3332
import org.junit.jupiter.api.Timeout;
3433
import com.formkiq.client.invoker.ApiClient;
@@ -50,20 +49,19 @@ public class DocumentsDocumentIdUrlRequestTest extends AbstractAwsIntegrationTes
5049
* @throws Exception Exception
5150
*/
5251
@Test
53-
@Timeout(unit = TimeUnit.SECONDS, value = TEST_TIMEOUT)
52+
@Timeout(value = TEST_TIMEOUT)
5453
public void testGet01() throws Exception {
5554
for (ApiClient client : getApiClients(null)) {
5655
// given
57-
String siteId = null;
5856
String text = "sample content";
5957
byte[] content = text.getBytes(StandardCharsets.UTF_8);
6058

6159
// when
62-
String documentId = addDocument(client, siteId, null, content, "text/plain", null);
60+
String documentId = addDocument(client, null, null, content, "text/plain", null);
6361

6462
// then
6563
GetDocumentContentResponse response =
66-
waitForDocumentContentType(client, siteId, documentId, "text/plain");
64+
waitForDocumentContentType(client, null, documentId, "text/plain");
6765

6866
assertEquals("text/plain", response.getContentType());
6967
assertEquals(text, response.getContent());

0 commit comments

Comments
 (0)