Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pserrano committed Aug 29, 2023
1 parent 0e6962a commit 40daac6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jenkins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func TestCreateNodes(t *testing.T) {
//id2 := "node2_test"
id3 := "node3_test"
id4 := "node4_test"
id5 := "node5_test"

jnlp := map[string]string{"method": "JNLPLauncher"}
//ssh := map[string]string{"method": "SSHLauncher"}
Expand All @@ -69,6 +70,9 @@ func TestCreateNodes(t *testing.T) {
assert.Equal(t, id3, node3.GetName())
node4, _ := jenkins.CreateNode(ctx, id4, 1, "Node 4 Description", "/var/lib/jenkins", "jdk7")
assert.Equal(t, id4, node4.GetName())

node5, _ := jenkins.CreateNode(ctx, id4, 1, "Node 5 Description", "/var/lib/jenkins", "jdk7", map[string]string{"method": "JNLPLauncher", "mode": "exclusive"})
assert.Equal(t, id5, node5.GetName())
}

func TestDeleteNodes(t *testing.T) {
Expand Down

0 comments on commit 40daac6

Please sign in to comment.