Skip to content

Commit

Permalink
Update HttpClientTest.java
Browse files Browse the repository at this point in the history
Updating tests
  • Loading branch information
rustd committed Jan 30, 2023
1 parent a3282e7 commit a4cb1b2
Showing 1 changed file with 0 additions and 203 deletions.
203 changes: 0 additions & 203 deletions src/test/java/io/harness/jhttp/functional/HttpClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,209 +60,6 @@ public void testReflection() throws IOException {
reflections.getSubTypesOf(Object.class);
}

@Test
public void testDirectoryIndex() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/directory1", "/http-server/server-root/directory1/index.html");
}

@Test
public void testStaticFile() throws IOException , InterruptedException {
Thread.sleep(20000); // sleep 20 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile123() throws IOException , InterruptedException{
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile1234() throws IOException , InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile2234() throws IOException , InterruptedException {
Thread.sleep(16000); // sleep 16 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile2341() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile6341() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile6141() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile6121() throws IOException, InterruptedException {
Thread.sleep(12000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile61212() throws IOException, InterruptedException {
Thread.sleep(9000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile61272() throws IOException, InterruptedException {
Thread.sleep(21000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile7777() throws IOException, InterruptedException {
Thread.sleep(4000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile07776() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile01776() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile02776() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile03776() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile04776() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile0576() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}



@Test
public void testStaticFile0676() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile0776() throws IOException, InterruptedException {
Thread.sleep(2000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile0876() throws IOException, InterruptedException {
Thread.sleep(6000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile0976() throws IOException, InterruptedException {
Thread.sleep(1000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile09176() throws IOException, InterruptedException {
Thread.sleep(1000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile09276() throws IOException, InterruptedException {
Thread.sleep(1000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile09376() throws IOException, InterruptedException {
Thread.sleep(1000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


@Test
public void testStaticFile09476() throws IOException, InterruptedException {
Thread.sleep(1000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void testStaticFile09576() throws IOException, InterruptedException {
Thread.sleep(1000);
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

@Test
public void test404() throws IOException {
testRequest("/invalid-file.html", "/http-server/404.html", 404);
}

private void testRequest(String uri, String responsePath) throws ParseException, IOException {
testRequest(uri, responsePath, 200);
Expand Down

0 comments on commit a4cb1b2

Please sign in to comment.