Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update connector bad connector #52

Open
wants to merge 61 commits into
base: master-patch_234
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b13ec4b
Merge pull request #2 from keen-software/master-patch_234
nofarb Jul 22, 2021
7ae038e
Update pipeline Hello World Java
nofarblue Jul 28, 2021
7181760
Update pipeline Hello World Java
nofarblue Jul 28, 2021
ad5fa66
Update pipeline Hello World Java
nofarblue Jul 28, 2021
a0e6c4e
Update pipeline Hello World Java
nofarblue Jul 28, 2021
cfe455a
Update pipeline Hello World Java
nofarblue Jul 28, 2021
68c2ba6
Update pipeline Hello World Java
nofarblue Jul 28, 2021
a5274d7
Update pipeline Hello World Java
nofarblue Jul 29, 2021
a861447
Update pipeline Hello World Java
nofarblue Aug 5, 2021
9a22a28
Update README.md
nofarb Aug 5, 2021
a88e617
Update DirectoryListing.java
dgarg-harness Aug 5, 2021
72e89e0
Update pipeline Hello World Java
nofarblue Aug 6, 2021
ff634c5
Update DirectoryListing.java
nofarb Aug 9, 2021
8bfeb2a
Create pipeline demo_1
nofarblue Aug 9, 2021
9975bf2
Delete Pipeline demo_1
nofarblue Aug 10, 2021
07f1921
Update pipeline Hello World Java
nofarblue Aug 10, 2021
f3fdf59
Update DirectoryListing.java
nofarb Aug 10, 2021
fb0b2fd
Merge pull request #22 from keen-software/test1149
nofarb Aug 10, 2021
f28add3
Update pipeline Hello World Java
nofarblue Aug 10, 2021
bd5705f
Update pipeline Hello World Java
nofarblue Aug 10, 2021
faef55d
Update Hello_World_Java.yaml
nofarb Aug 10, 2021
eada212
Update pipeline Hello World Java
nofarblue Aug 10, 2021
3a8cddd
Update DirectoryListing.java
nofarb Aug 10, 2021
9365545
Update pipeline Hello World Java
nofarblue Aug 10, 2021
f10789e
Create pipeline basic piepline
nofarblue Aug 10, 2021
6d96aa2
Update pipeline basic piepline
nofarblue Aug 10, 2021
2b70bff
Update pipeline Hello World Java
nofarblue Aug 11, 2021
365c3d3
Update HttpClientTest.java
nofarb Aug 11, 2021
f0a96d0
fixed exceptions
nofarb Aug 11, 2021
dd7809c
Merge pull request #31 from keen-software/nofarb-patch-4
nofarb Aug 11, 2021
062aac6
updated tests
nofarb Aug 11, 2021
8298ca4
Update HttpClientTest.java
nofarb Aug 11, 2021
8f66798
Merge pull request #32 from keen-software/nofarb-patch-5
nofarb Aug 11, 2021
34a6755
Update HttpClientTest.java
nofarb Aug 11, 2021
78850f1
Update DirectoryListing.java
nofarb Aug 11, 2021
1feb2a1
Update HttpClientTest.java
nofarb Aug 11, 2021
5542087
Update pipeline HTTP Client
nofarblue Aug 11, 2021
c2d831c
Update Hello_World_Java.yaml
nofarb Aug 11, 2021
acd79ac
added a new pipeline
nofarb Aug 11, 2021
e26bc06
Update DirectoryListing.java
nofarb Aug 11, 2021
6ccef55
Update java_http_client.yaml
nofarb Aug 11, 2021
afe5ef5
Update DirectoryListing.java
nofarb Aug 11, 2021
071173d
Update DirectoryListing.java
nofarb Aug 11, 2021
342025e
Merge pull request #34 from keen-software/nofarb-patch-7
nofarb Aug 11, 2021
80204fe
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
ee8547b
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
f379aef
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
ea1d163
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
88879c6
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
a83765c
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
2d19c89
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
9cf45b4
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
26b2f8d
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
99a89d4
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
6951d67
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
7317df0
Update pipeline Java HTTP Server
nofarblue Aug 11, 2021
3a5dc73
Update DirectoryListing.java
nofarb Aug 11, 2021
7cb303a
Update pipeline Hello World
nofarblue Aug 12, 2021
22a408d
Update pipeline Java HTTP Server
nofarblue Aug 17, 2021
6791a75
Create connector bad connector
nofarblue Aug 24, 2021
b87b5b1
Update connector bad connector
nofarblue Aug 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)




68 changes: 41 additions & 27 deletions config/.harness/Hello_World_Java.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline:
name: Hello World Java
name: Hello World
identifier: Hello_World_Java
projectIdentifier: Product_Demos_CIE
orgIdentifier: default
Expand All @@ -9,42 +9,55 @@ pipeline:
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
timeout: 5h
description: simple desc
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
reports:
type: JUnit
spec:
paths:
- "**/*.xml"
resources:
limits:
memory: 1000Mi
postCommand: mvn package -DskipTests
- 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
timeout: 4h
identifier: Build_and_push_image_to_DockerHub
spec:
connectorRef: account.nofar_dockerhub
Expand All @@ -57,7 +70,6 @@ pipeline:
spec:
connectorRef: account.k8scluster
namespace: harness-delegate-pmdemo
serviceDependencies: []
sharedPaths:
- ""
variables:
Expand All @@ -80,8 +92,9 @@ pipeline:
connectorRef: account.nofar_dockerhub
image: curlimages/curl:7.69.1
command: |-
sleep 5
sleep 7
curl localhost:8888
privileged: false
serviceDependencies:
- identifier: runhelloworldserver
name: Run Hello World Server
Expand All @@ -94,6 +107,7 @@ pipeline:
sharedPaths:
- ""
description: running integ tests
variables: []
variables:
- name: pipelineVar
type: String
Expand Down
18 changes: 18 additions & 0 deletions config/.harness/bad_connector.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions config/.harness/basic_piepline.yaml
Original file line number Diff line number Diff line change
@@ -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: harness-delegate-pmdemo
execution:
steps:
- step:
type: Run
name: echo
identifier: echo
spec:
connectorRef: account.nofar_dockerhub
image: alpine
command: echo "hey"
privileged: false
variables: []
104 changes: 104 additions & 0 deletions config/.harness/java_http_client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
pipeline:
name: Java HTTP Server
identifier: java_http_client
projectIdentifier: Product_Demos_CIE
orgIdentifier: default
tags: {}
properties:
ci:
codebase:
connectorRef: account.Keen_jhttp
repoName: 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: run unit tests
name: runTestsWithIntelligence
timeout: 20m
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 5
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public boolean process(HttpRequest request, HttpResponse response) {

private void appendLink(String fileName, String uri, PrintWriter writer) {
// writer.append(String.format("<li>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));
writer.append(String.format("<li style='list-style-type:circle; padding:4px; background:#ff9990;'>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));
writer.append(String.format("<li style='list-style-type:circle; padding:4px; background:#ff9230;'>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));
// writer.append(String.format("<li style='list-style-type:circle; padding:4px; background:yellow;'>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));

}
}
}
}
Loading