From 7ae038ef6849bc4da084c25ee21225c463b2caa8 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 09:07:17 -0500 Subject: [PATCH 01/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 4b0894d..b8d9090 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -18,6 +18,15 @@ pipeline: cloneCodebase: true execution: steps: + - step: + type: Run + name: fail buils + identifier: fail_buils + spec: + connectorRef: account.nofar_dockerhub + image: alpine + command: mvn 348792734 + privileged: false - step: type: RunTests timeout: 5h From 7181760100648650ced787b88f4dc0c079cd7eaf Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 09:18:49 -0500 Subject: [PATCH 02/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index b8d9090..fecd7d0 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -18,15 +18,6 @@ pipeline: cloneCodebase: true execution: steps: - - step: - type: Run - name: fail buils - identifier: fail_buils - spec: - connectorRef: account.nofar_dockerhub - image: alpine - command: mvn 348792734 - privileged: false - step: type: RunTests timeout: 5h @@ -66,7 +57,6 @@ pipeline: spec: connectorRef: account.k8scluster namespace: harness-delegate-pmdemo - serviceDependencies: [] sharedPaths: - "" variables: From ad5fa666796b302e165377d5134203072f61fb2a Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 10:05:09 -0500 Subject: [PATCH 03/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index fecd7d0..a6a16c3 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -20,7 +20,7 @@ pipeline: steps: - step: type: RunTests - timeout: 5h + timeout: 60m description: simple desc name: runTestsWithIntelligence identifier: runTestsWithIntelligence From a0e6c4e563442a5d75ad8130246bb50a624fc5f7 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 10:14:30 -0500 Subject: [PATCH 04/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index a6a16c3..c288aa5 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -44,7 +44,8 @@ pipeline: - step: type: BuildAndPushDockerRegistry name: Build and push image to DockerHub - timeout: 4h + timeout: 6h + description: hello world demo identifier: Build_and_push_image_to_DockerHub spec: connectorRef: account.nofar_dockerhub From cfe455a7832bea13a5f7f165671f455d86f1e276 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 10:19:59 -0500 Subject: [PATCH 05/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index c288aa5..6573909 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -20,7 +20,6 @@ pipeline: steps: - step: type: RunTests - timeout: 60m description: simple desc name: runTestsWithIntelligence identifier: runTestsWithIntelligence @@ -32,6 +31,7 @@ pipeline: language: java packages: io.harness. runOnlySelectedTests: true + postCommand: mvn package -DskipTests reports: type: JUnit spec: @@ -40,7 +40,6 @@ pipeline: resources: limits: memory: 1000Mi - postCommand: mvn package -DskipTests - step: type: BuildAndPushDockerRegistry name: Build and push image to DockerHub From 68c2ba6be77e36924790e1aa11a80f87ac48658d Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 18:52:08 -0500 Subject: [PATCH 06/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 6573909..1c3c08a 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -22,6 +22,7 @@ pipeline: type: RunTests description: simple desc name: runTestsWithIntelligence + timeout: 2h identifier: runTestsWithIntelligence spec: connectorRef: account.nofar_dockerhub From a5274d75e5f045e43a0ad1d698f0c82c5852d880 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 28 Jul 2021 19:01:38 -0500 Subject: [PATCH 07/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 1c3c08a..cda59ff 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -13,6 +13,7 @@ pipeline: - stage: name: Build Test and Push identifier: Test_Build_and_Push + description: hello world java demo type: CI spec: cloneCodebase: true From a861447854db8cb254a2e8d0f94bf2793e095f0a Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Thu, 5 Aug 2021 09:12:15 -0500 Subject: [PATCH 08/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index cda59ff..7b42a56 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -21,16 +21,14 @@ pipeline: steps: - step: type: RunTests - description: simple desc name: runTestsWithIntelligence - timeout: 2h identifier: runTestsWithIntelligence spec: connectorRef: account.nofar_dockerhub image: maven:3.5.2-jdk-8-alpine args: test - buildTool: maven - language: java + buildTool: Bazel + language: Java packages: io.harness. runOnlySelectedTests: true postCommand: mvn package -DskipTests @@ -45,7 +43,6 @@ pipeline: - step: type: BuildAndPushDockerRegistry name: Build and push image to DockerHub - timeout: 6h description: hello world demo identifier: Build_and_push_image_to_DockerHub spec: @@ -95,6 +92,7 @@ pipeline: sharedPaths: - "" description: running integ tests + variables: [] variables: - name: pipelineVar type: String From 9a22a2803ce22e54eac1c32ff53120a472246729 Mon Sep 17 00:00:00 2001 From: nofarb Date: Thu, 5 Aug 2021 10:32:21 -0400 Subject: [PATCH 09/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5abe8f8..e7f7ba5 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,6 @@ It creates a self-contained, executable JAR in the `target` directory. * [Update a test](src/test/java/io/harness/jhttp/server/HeaderListTest.java) * [Update README](README.md) - + From a88e6178eb44547d1327589e2f6237e388521fc1 Mon Sep 17 00:00:00 2001 From: Dinesh Garg Date: Thu, 5 Aug 2021 09:18:11 -0700 Subject: [PATCH 10/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index 1a3e3ae..dc5d15f 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 72e89e06acd61d3e0c922a05725e85b4620db29a Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Fri, 6 Aug 2021 08:51:56 -0500 Subject: [PATCH 11/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 7b42a56..3d4c5b6 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -31,7 +31,6 @@ pipeline: language: Java packages: io.harness. runOnlySelectedTests: true - postCommand: mvn package -DskipTests reports: type: JUnit spec: From ff634c535c62fb8f005c4fccbd1675e13e4cec46 Mon Sep 17 00:00:00 2001 From: nofarb Date: Mon, 9 Aug 2021 10:07:05 -0400 Subject: [PATCH 12/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index dc5d15f..6c073b7 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -48,4 +48,4 @@ private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } -} +} From 8bfeb2a84d76302e7ad5798ada472569c15ce42b Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Mon, 9 Aug 2021 09:29:36 -0500 Subject: [PATCH 13/56] Create pipeline demo_1 --- config/.harness/demo_1.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 config/.harness/demo_1.yaml diff --git a/config/.harness/demo_1.yaml b/config/.harness/demo_1.yaml new file mode 100644 index 0000000..fbc5226 --- /dev/null +++ b/config/.harness/demo_1.yaml @@ -0,0 +1,31 @@ +pipeline: + name: demo_1 + identifier: demo_1 + projectIdentifier: Product_Demos_CIE + orgIdentifier: default + tags: {} + stages: + - stage: + name: basic + identifier: basic + description: "" + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.k8scluster + namespace: aaaaa + execution: + steps: + - step: + type: Run + name: aaa + identifier: aaa + spec: + connectorRef: account.nofar_dockerhub + image: alpine + command: echo "hey" + privileged: false + variables: [] From 9975bf24571e880162c8e2f6e5c1dd5cd9317f77 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 09:47:14 -0500 Subject: [PATCH 14/56] Delete Pipeline demo_1 --- config/.harness/demo_1.yaml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 config/.harness/demo_1.yaml diff --git a/config/.harness/demo_1.yaml b/config/.harness/demo_1.yaml deleted file mode 100644 index fbc5226..0000000 --- a/config/.harness/demo_1.yaml +++ /dev/null @@ -1,31 +0,0 @@ -pipeline: - name: demo_1 - identifier: demo_1 - projectIdentifier: Product_Demos_CIE - orgIdentifier: default - tags: {} - stages: - - stage: - name: basic - identifier: basic - description: "" - type: CI - spec: - cloneCodebase: false - infrastructure: - type: KubernetesDirect - spec: - connectorRef: account.k8scluster - namespace: aaaaa - execution: - steps: - - step: - type: Run - name: aaa - identifier: aaa - spec: - connectorRef: account.nofar_dockerhub - image: alpine - command: echo "hey" - privileged: false - variables: [] From 07f1921444134c03dea908961822de58c092dae9 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 11:49:30 -0500 Subject: [PATCH 15/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 3d4c5b6..3dc623e 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -27,7 +27,7 @@ pipeline: connectorRef: account.nofar_dockerhub image: maven:3.5.2-jdk-8-alpine args: test - buildTool: Bazel + buildTool: Maven language: Java packages: io.harness. runOnlySelectedTests: true From f3fdf59f115f1137f93379f7222c9a2582c207d2 Mon Sep 17 00:00:00 2001 From: nofarb Date: Tue, 10 Aug 2021 12:51:20 -0400 Subject: [PATCH 16/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index 6c073b7..982fbbb 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From f28add319ee1435853340e7061e485f151eb1e71 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 12:06:10 -0500 Subject: [PATCH 17/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 3dc623e..fcdeca9 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -42,7 +42,6 @@ pipeline: - step: type: BuildAndPushDockerRegistry name: Build and push image to DockerHub - description: hello world demo identifier: Build_and_push_image_to_DockerHub spec: connectorRef: account.nofar_dockerhub From bd5705f2d3b9937a772d5d45b864ebe47bafdc2f Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 12:43:46 -0500 Subject: [PATCH 18/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index fcdeca9..85d714d 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -31,6 +31,7 @@ pipeline: language: Java packages: io.harness. runOnlySelectedTests: true + postCommand: mvn package -DskipTests reports: type: JUnit spec: From faef55d35069fb94a5b3472fdda129e7d9bf05bc Mon Sep 17 00:00:00 2001 From: nofarb Date: Tue, 10 Aug 2021 13:44:32 -0400 Subject: [PATCH 19/56] Update Hello_World_Java.yaml --- config/.harness/Hello_World_Java.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 85d714d..57407d1 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -21,6 +21,7 @@ pipeline: steps: - step: type: RunTests + description: test123 name: runTestsWithIntelligence identifier: runTestsWithIntelligence spec: From eada21285ac7f5611c6cd1e16a33768aa2d5e6a7 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 14:19:48 -0500 Subject: [PATCH 20/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 57407d1..80f33c1 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -78,8 +78,9 @@ pipeline: connectorRef: account.nofar_dockerhub image: curlimages/curl:7.69.1 command: |- - sleep 5 + sleep 6 curl localhost:8888 + privileged: false serviceDependencies: - identifier: runhelloworldserver name: Run Hello World Server From 3a8cddd5b0699f797babf715caa44c16108a9497 Mon Sep 17 00:00:00 2001 From: nofarb Date: Tue, 10 Aug 2021 15:20:16 -0400 Subject: [PATCH 21/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index 982fbbb..8e4d307 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -47,5 +47,5 @@ private void appendLink(String fileName, String uri, PrintWriter writer) { writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - } + } } From 936554558870287cd56d985ade4f285d3b4c5090 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 14:22:56 -0500 Subject: [PATCH 22/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 80f33c1..d88f2dc 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -78,7 +78,7 @@ pipeline: connectorRef: account.nofar_dockerhub image: curlimages/curl:7.69.1 command: |- - sleep 6 + sleep 7 curl localhost:8888 privileged: false serviceDependencies: From f10789e4f9015ae42990f213d5b9d77c997d4293 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 14:36:25 -0500 Subject: [PATCH 23/56] Create pipeline basic piepline --- config/.harness/basic_piepline.yaml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 config/.harness/basic_piepline.yaml diff --git a/config/.harness/basic_piepline.yaml b/config/.harness/basic_piepline.yaml new file mode 100644 index 0000000..6ae90f0 --- /dev/null +++ b/config/.harness/basic_piepline.yaml @@ -0,0 +1,31 @@ +pipeline: + name: basic piepline + identifier: basic_piepline + projectIdentifier: Product_Demos_CIE + orgIdentifier: default + tags: {} + stages: + - stage: + name: basic + identifier: basic + description: "" + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.k8scluster + namespace: aaa + execution: + steps: + - step: + type: Run + name: echo + identifier: echo + spec: + connectorRef: account.nofar_dockerhub + image: alpine + command: echo "hey" + privileged: false + variables: [] From 6d96aa29b7ab7c21904f8586fa11f5abb8e81163 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 10 Aug 2021 14:38:05 -0500 Subject: [PATCH 24/56] Update pipeline basic piepline --- config/.harness/basic_piepline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/basic_piepline.yaml b/config/.harness/basic_piepline.yaml index 6ae90f0..eb2885f 100644 --- a/config/.harness/basic_piepline.yaml +++ b/config/.harness/basic_piepline.yaml @@ -16,7 +16,7 @@ pipeline: type: KubernetesDirect spec: connectorRef: account.k8scluster - namespace: aaa + namespace: harness-delegate-pmdemo execution: steps: - step: From 2b70bffb3cd1ad133a1382c9f418217ec30c3fca Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 08:41:31 -0500 Subject: [PATCH 25/56] Update pipeline Hello World Java --- config/.harness/Hello_World_Java.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index d88f2dc..06575eb 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -9,6 +9,8 @@ pipeline: codebase: connectorRef: account.Keen_jhttp build: <+input> + sslVerify: false + prCloneStrategy: MergeCommit stages: - stage: name: Build Test and Push From 365c3d30588bf4233e69f397771bd3e8536f8987 Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 10:27:01 -0400 Subject: [PATCH 26/56] Update HttpClientTest.java --- .../jhttp/functional/HttpClientTest.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java index 80c9042..0951e75 100644 --- a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java +++ b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java @@ -62,15 +62,46 @@ public void testReflection() throws IOException { @Test public void testDirectoryIndex() throws IOException { + Thread.sleep(10000); // sleep 10 sec testRequest("/directory1", "/http-server/server-root/directory1/index.html"); } @Test public void testStaticFile() throws IOException { + 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 testStaticFile123() throws IOException { + 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 { + 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 { + 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 testStaticFile2341() throws IOException { + 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 test404() throws IOException { testRequest("/invalid-file.html", "/http-server/404.html", 404); From f0a96d0709e4a6a37220985abffba4f6f1005f4a Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 10:32:17 -0400 Subject: [PATCH 27/56] fixed exceptions --- .../io/harness/jhttp/functional/HttpClientTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java index 0951e75..ce1b89a 100644 --- a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java +++ b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java @@ -61,34 +61,34 @@ public void testReflection() throws IOException { } @Test - public void testDirectoryIndex() throws IOException { + 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 { + public void testStaticFile() 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 testStaticFile123() throws IOException { + 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 { + 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 { + public void testStaticFile2234() 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"); @@ -96,7 +96,7 @@ public void testStaticFile2234() throws IOException { @Test - public void testStaticFile2341() throws IOException { + 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"); From 062aac62ded0840addb8401839aaa4a0d0a3da4e Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 10:37:45 -0400 Subject: [PATCH 28/56] updated tests --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index 8e4d307..e652cbb 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 8298ca4ae2eb793d6be1b62ce0e32d967e3a085c Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 10:42:57 -0400 Subject: [PATCH 29/56] Update HttpClientTest.java --- src/test/java/io/harness/jhttp/functional/HttpClientTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java index ce1b89a..9e6ed02 100644 --- a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java +++ b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java @@ -68,7 +68,7 @@ public void testDirectoryIndex() throws IOException, InterruptedException { @Test public void testStaticFile() throws IOException , InterruptedException { - Thread.sleep(10000); // sleep 10 sec + Thread.sleep(20000); // sleep 20 sec testRequest("/file1.html", "/http-server/server-root/file1.html"); testRequest("/file2.html", "/http-server/server-root/file2.html"); } @@ -89,7 +89,7 @@ public void testStaticFile1234() throws IOException , InterruptedException { @Test public void testStaticFile2234() throws IOException , InterruptedException { - Thread.sleep(10000); // sleep 10 sec + Thread.sleep(16000); // sleep 16 sec testRequest("/file1.html", "/http-server/server-root/file1.html"); testRequest("/file2.html", "/http-server/server-root/file2.html"); } From 34a6755eceeafdf37515188aa8c2444a4e7fe7cc Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 10:50:34 -0400 Subject: [PATCH 30/56] Update HttpClientTest.java --- .../jhttp/functional/HttpClientTest.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java index 9e6ed02..91b8931 100644 --- a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java +++ b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java @@ -102,6 +102,42 @@ public void testStaticFile2341() throws IOException, InterruptedException { 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 test404() throws IOException { testRequest("/invalid-file.html", "/http-server/404.html", 404); From 78850f17af9b604bf6803ab24337a12d4268297a Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 10:51:15 -0400 Subject: [PATCH 31/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index e652cbb..0e48e3e 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 1feb2a1f08054c5275952413bd4a28647a8cb255 Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 11:00:11 -0400 Subject: [PATCH 32/56] Update HttpClientTest.java --- .../jhttp/functional/HttpClientTest.java | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java index 91b8931..e484c12 100644 --- a/src/test/java/io/harness/jhttp/functional/HttpClientTest.java +++ b/src/test/java/io/harness/jhttp/functional/HttpClientTest.java @@ -138,6 +138,127 @@ public void testStaticFile61272() throws IOException, InterruptedException { 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); From 554208755ac4bea23856e800df48f8f815b6351c Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 10:02:54 -0500 Subject: [PATCH 33/56] Update pipeline HTTP Client --- config/.harness/Hello_World_Java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 06575eb..059758d 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -1,5 +1,5 @@ pipeline: - name: Hello World Java + name: HTTP Client identifier: Hello_World_Java projectIdentifier: Product_Demos_CIE orgIdentifier: default From c2d831c6905c7cc238a569f2d63c3347dac57de6 Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 11:04:21 -0400 Subject: [PATCH 34/56] Update Hello_World_Java.yaml --- config/.harness/Hello_World_Java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index 059758d..b4a33c7 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -1,5 +1,5 @@ pipeline: - name: HTTP Client + name: Hello World identifier: Hello_World_Java projectIdentifier: Product_Demos_CIE orgIdentifier: default From acd79acc383421f6ae7442b8a99567f287f6ac1e Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 11:05:44 -0400 Subject: [PATCH 35/56] added a new pipeline --- config/.harness/java_http_client.yaml | 102 ++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 config/.harness/java_http_client.yaml diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml new file mode 100644 index 0000000..5f5eb43 --- /dev/null +++ b/config/.harness/java_http_client.yaml @@ -0,0 +1,102 @@ +pipeline: + name: Java HTTP Client + identifier: java_http_client + projectIdentifier: Product_Demos_CIE + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: account.Keen_jhttp + build: <+input> + sslVerify: false + prCloneStrategy: MergeCommit + stages: + - stage: + name: Build Test and Push + identifier: Test_Build_and_Push + description: hello world java demo + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: RunTests + description: test123 + name: runTestsWithIntelligence + identifier: runTestsWithIntelligence + spec: + connectorRef: account.nofar_dockerhub + image: maven:3.5.2-jdk-8-alpine + args: test + buildTool: Maven + language: Java + packages: io.harness. + runOnlySelectedTests: true + postCommand: mvn package -DskipTests + reports: + type: JUnit + spec: + paths: + - "**/*.xml" + resources: + limits: + memory: 1000Mi + - step: + type: BuildAndPushDockerRegistry + name: Build and push image to DockerHub + identifier: Build_and_push_image_to_DockerHub + spec: + connectorRef: account.nofar_dockerhub + repo: bluebbb/javademo + tags: + - <+pipeline.sequenceId> + optimize: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.k8scluster + namespace: harness-delegate-pmdemo + sharedPaths: + - "" + variables: + - name: myStageVar + type: String + value: stageVarValue + - stage: + name: Run Integration Test + identifier: Run_Integration_Test + type: CI + spec: + cloneCodebase: false + execution: + steps: + - step: + type: Run + name: test connection to server + identifier: test_connection_to_server + spec: + connectorRef: account.nofar_dockerhub + image: curlimages/curl:7.69.1 + command: |- + sleep 7 + curl localhost:8888 + privileged: false + serviceDependencies: + - identifier: runhelloworldserver + name: Run Hello World Server + type: Service + spec: + connectorRef: account.nofar_dockerhub + image: bluebbb/javademo:<+pipeline.sequenceId> + infrastructure: + useFromStage: Test_Build_and_Push + sharedPaths: + - "" + description: running integ tests + variables: [] + variables: + - name: pipelineVar + type: String + value: pipelineVarValue From e26bc06b91dc9a415a2d69e34a9f50e04fa1f22b Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 11:23:42 -0400 Subject: [PATCH 36/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index 0e48e3e..f158ff1 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 6ccef55b7ab653f9bb7ef1f0fa73e47561b1933e Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 12:41:41 -0400 Subject: [PATCH 37/56] Update java_http_client.yaml --- config/.harness/java_http_client.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 5f5eb43..fac4977 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -80,7 +80,7 @@ pipeline: connectorRef: account.nofar_dockerhub image: curlimages/curl:7.69.1 command: |- - sleep 7 + sleep 5 curl localhost:8888 privileged: false serviceDependencies: From afe5ef5ea4f5ae6867d68af42da9f889273ed9d2 Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 12:49:47 -0400 Subject: [PATCH 38/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index f158ff1..0e48e3e 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 071173d3526216b59d475d38bf6912ca1c8b948a Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 12:50:54 -0400 Subject: [PATCH 39/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index 0e48e3e..ec359f4 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 80204fe75e9f31c3ddf5cbbf375f6e1070d4a461 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 13:53:11 -0500 Subject: [PATCH 40/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index fac4977..32d5396 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -1,5 +1,5 @@ pipeline: - name: Java HTTP Client + name: Java HTTP Server identifier: java_http_client projectIdentifier: Product_Demos_CIE orgIdentifier: default From ee8547b0c169cca929fa1208df24403b954c638a Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 14:22:03 -0500 Subject: [PATCH 41/56] Update pipeline Java HTTP Server From f379aefb5c43e7503a3c7c4bcdce994ba848e38e Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 14:31:54 -0500 Subject: [PATCH 42/56] Update pipeline Java HTTP Server From ea1d1637b34b5c1fd61350833d3e2fc4f866fdf4 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 14:37:13 -0500 Subject: [PATCH 43/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 32d5396..1decdae 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -24,6 +24,7 @@ pipeline: - step: type: RunTests description: test123 + timeout: 20m name: runTestsWithIntelligence identifier: runTestsWithIntelligence spec: From 88879c676cc89359da191f42ca1448514a77ccf8 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 14:55:53 -0500 Subject: [PATCH 44/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 1decdae..32d5396 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -24,7 +24,6 @@ pipeline: - step: type: RunTests description: test123 - timeout: 20m name: runTestsWithIntelligence identifier: runTestsWithIntelligence spec: From a83765c4f6126ba1b50b33365ff6d007f5d27a93 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:01:32 -0500 Subject: [PATCH 45/56] Update pipeline Java HTTP Server From 2d19c89cad4a653f50ec401c2688a0801b657b92 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:27:45 -0500 Subject: [PATCH 46/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 32d5396..2908a20 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -23,7 +23,7 @@ pipeline: steps: - step: type: RunTests - description: test123 + description: run unit tests name: runTestsWithIntelligence identifier: runTestsWithIntelligence spec: From 9cf45b467127e1bfb1bc7303acf701c7e64d9db8 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:44:29 -0500 Subject: [PATCH 47/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 2908a20..0755f33 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -25,6 +25,7 @@ pipeline: type: RunTests description: run unit tests name: runTestsWithIntelligence + timeout: 20m identifier: runTestsWithIntelligence spec: connectorRef: account.nofar_dockerhub From 26b2f8d28e3a600a3b122cc977a11e485799f1d8 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:45:09 -0500 Subject: [PATCH 48/56] Update pipeline Java HTTP Server From 99a89d401428dc58e5d1298f18df36595313a262 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:46:08 -0500 Subject: [PATCH 49/56] Update pipeline Java HTTP Server From 6951d67d050114953ebec1874f7fc0fdfb576232 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:48:41 -0500 Subject: [PATCH 50/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 0755f33..2908a20 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -25,7 +25,6 @@ pipeline: type: RunTests description: run unit tests name: runTestsWithIntelligence - timeout: 20m identifier: runTestsWithIntelligence spec: connectorRef: account.nofar_dockerhub From 7317df02fc482a68797806d84245ec4784921170 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 15:53:23 -0500 Subject: [PATCH 51/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 2908a20..0755f33 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -25,6 +25,7 @@ pipeline: type: RunTests description: run unit tests name: runTestsWithIntelligence + timeout: 20m identifier: runTestsWithIntelligence spec: connectorRef: account.nofar_dockerhub From 3a5dc73bf1bdfaa5bb9d6c4fe9051fcfa0aee71e Mon Sep 17 00:00:00 2001 From: nofarb Date: Wed, 11 Aug 2021 18:30:43 -0400 Subject: [PATCH 52/56] Update DirectoryListing.java --- src/main/java/io/harness/jhttp/processor/DirectoryListing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java index ec359f4..42006a2 100644 --- a/src/main/java/io/harness/jhttp/processor/DirectoryListing.java +++ b/src/main/java/io/harness/jhttp/processor/DirectoryListing.java @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) { private void appendLink(String fileName, String uri, PrintWriter writer) { // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); - writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); + writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); // writer.append(String.format("
  • \n%s\n
  • \n", uri, fileName, fileName)); } From 7cb303ab5024c621df36c61d1c7157640ede145e Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Wed, 11 Aug 2021 19:01:33 -0500 Subject: [PATCH 53/56] Update pipeline Hello World --- config/.harness/Hello_World_Java.yaml | 56 ++++++++++++++++----------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/config/.harness/Hello_World_Java.yaml b/config/.harness/Hello_World_Java.yaml index b4a33c7..d72acd9 100644 --- a/config/.harness/Hello_World_Java.yaml +++ b/config/.harness/Hello_World_Java.yaml @@ -21,28 +21,40 @@ pipeline: cloneCodebase: true execution: steps: - - step: - type: RunTests - description: test123 - name: runTestsWithIntelligence - identifier: runTestsWithIntelligence - spec: - connectorRef: account.nofar_dockerhub - image: maven:3.5.2-jdk-8-alpine - args: test - buildTool: Maven - language: Java - packages: io.harness. - runOnlySelectedTests: true - postCommand: mvn package -DskipTests - reports: - type: JUnit - spec: - paths: - - "**/*.xml" - resources: - limits: - memory: 1000Mi + - parallel: + - step: + type: RunTests + description: test123 + name: runTestsWithIntelligence + identifier: runTestsWithIntelligence + spec: + connectorRef: account.nofar_dockerhub + image: maven:3.5.2-jdk-8-alpine + args: test + buildTool: Maven + language: Java + packages: io.harness. + runOnlySelectedTests: true + postCommand: mvn package -DskipTests + reports: + type: JUnit + spec: + paths: + - "**/*.xml" + resources: + limits: + memory: 1000Mi + - step: + type: Run + name: run tests no TI + identifier: run_tests_no_TI + spec: + connectorRef: account.nofar_dockerhub + image: maven:3.5.2-jdk-8-alpine + command: |- + mvn test + mvn package -DskipTests + privileged: false - step: type: BuildAndPushDockerRegistry name: Build and push image to DockerHub From 22a408d73f3c23460f34614ac805e44ba521d396 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Mon, 16 Aug 2021 21:13:48 -0500 Subject: [PATCH 54/56] Update pipeline Java HTTP Server --- config/.harness/java_http_client.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/.harness/java_http_client.yaml b/config/.harness/java_http_client.yaml index 0755f33..bb019d7 100644 --- a/config/.harness/java_http_client.yaml +++ b/config/.harness/java_http_client.yaml @@ -8,6 +8,7 @@ pipeline: ci: codebase: connectorRef: account.Keen_jhttp + repoName: jhttp build: <+input> sslVerify: false prCloneStrategy: MergeCommit From 6791a75cfb8fdd3752b94c55bac1ea1077d33e8d Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 24 Aug 2021 14:30:10 -0500 Subject: [PATCH 55/56] Create connector bad connector --- config/.harness/bad_connector.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/.harness/bad_connector.yaml diff --git a/config/.harness/bad_connector.yaml b/config/.harness/bad_connector.yaml new file mode 100644 index 0000000..4b1f273 --- /dev/null +++ b/config/.harness/bad_connector.yaml @@ -0,0 +1,18 @@ +connector: + name: bad connector + identifier: bad_connector + description: + orgIdentifier: default + projectIdentifier: Product_Demos_CIE + type: Github + spec: + url: http://skdfjhskdjfh.com + validationRepo: yada + authentication: + type: Http + spec: + type: UsernamePassword + spec: + username: werwe + passwordRef: account.Nofar_bitbucket_cloud + type: Account From b87b5b193a05aeff34fe9e0c632d0263c7d08420 Mon Sep 17 00:00:00 2001 From: "nofar.bluestein@harness.io" Date: Tue, 24 Aug 2021 14:30:49 -0500 Subject: [PATCH 56/56] Update connector bad connector