forked from tinkerbell/tink
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tinkerbell#257 : Added following test cases:
1. One workflow with one worker where all the actions are successful 2. One workflow with one worker where an action gets failed 3. One workflow with one worker where an action gets timed out Signed-off-by: parauliya <[email protected]>
- Loading branch information
parauliya
committed
Aug 21, 2020
1 parent
7eb10ca
commit 3dc21ff
Showing
6 changed files
with
392 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"id": "ce2e62ed-826f-4485-a39f-a82bb74338e2", | ||
"metadata": { | ||
"facility": { | ||
"facility_code": "onprem" | ||
}, | ||
"instance": {}, | ||
"state": "" | ||
}, | ||
"network": { | ||
"interfaces": [ | ||
{ | ||
"dhcp": { | ||
"arch": "x86_64", | ||
"ip": { | ||
"address": "192.168.1.5", | ||
"gateway": "192.168.1.1", | ||
"netmask": "255.255.255.248" | ||
}, | ||
"mac": "08:00:27:00:00:01", | ||
"uefi": false | ||
}, | ||
"netboot": { | ||
"allow_pxe": true, | ||
"allow_workflow": true | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '0.1' | ||
name: packet_osie_provision | ||
global_timeout: 600 | ||
tasks: | ||
- name: "timeout-task" | ||
worker: "{{.device_1}}" | ||
actions: | ||
- name: "hello_world" | ||
image: hello-world | ||
timeout: 10 | ||
on-timeout: ["echo", "Timeout"] | ||
on-failure: ["echo", "Failure"] | ||
- name: "sleep-till-timeout" | ||
image: bash | ||
command: ["sleepys", "20"] | ||
timeout: 6 | ||
on-timeout: ["echo", "Timeout"] | ||
on-failure: ["echo", "Failure"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "0.1" | ||
name: hello_world_workflow | ||
global_timeout: 600 | ||
tasks: | ||
- name: "hello world" | ||
worker: "{{.device_1}}" | ||
actions: | ||
- name: "hello_world" | ||
image: hello-world | ||
timeout: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '0.1' | ||
name: packet_osie_provision | ||
global_timeout: 600 | ||
tasks: | ||
- name: "timeout-task" | ||
worker: "{{.device_1}}" | ||
actions: | ||
- name: "hello_world" | ||
image: hello-world | ||
timeout: 10 | ||
on-timeout: ["echo", "Timeout"] | ||
on-failure: ["echo", "Failure"] | ||
- name: "sleep-till-timeout" | ||
image: bash | ||
command: ["sleep", "20"] | ||
timeout: 6 | ||
on-timeout: ["echo", "Timeout"] | ||
on-failure: ["echo", "Failure"] |
Oops, something went wrong.