Skip to content

Commit

Permalink
Add retry when getting a bootscript
Browse files Browse the repository at this point in the history
  • Loading branch information
rsjostrand-hpe committed Jan 20, 2023
1 parent 0590398 commit b462948
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/ct/api/3-destructive/test_bootscript.tavern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ stages:
status_code: 200

- name: Query bootscript by xname
# Sometimes BSS returns a bootscript to re-attempt getting a bootscript, and this normally
# happens when BSS is syncing with HSM.
# Example:
# #!ipxe
# sleep 10
# chain https://api-gw-service-nmn.local/apis/bss/boot/v1/bootscript?mac=00:40:a6:42:3a:58&retry=1
max_retries: 8
delay_after: 2
request:
url: "{bss_base_url}/boot/v1/bootscript"
method: GET
Expand Down Expand Up @@ -111,6 +119,14 @@ stages:
expression: 'kernel --name .+bss_referral_token='

- name: Query bootscript by MAC address
# Sometimes BSS returns a bootscript to re-attempt getting a bootscript, and this normally
# happens when BSS is syncing with HSM.
# Example:
# #!ipxe
# sleep 10
# chain https://api-gw-service-nmn.local/apis/bss/boot/v1/bootscript?mac=00:40:a6:42:3a:58&retry=1
max_retries: 8
delay_after: 2
request:
url: "{bss_base_url}/boot/v1/bootscript"
method: GET
Expand All @@ -123,6 +139,14 @@ stages:
content-type: text/plain; charset=UTF-8

- name: Query bootscript by NID
# Sometimes BSS returns a bootscript to re-attempt getting a bootscript, and this normally
# happens when BSS is syncing with HSM.
# Example:
# #!ipxe
# sleep 10
# chain https://api-gw-service-nmn.local/apis/bss/boot/v1/bootscript?mac=00:40:a6:42:3a:58&retry=1
max_retries: 8
delay_after: 2
request:
url: "{bss_base_url}/boot/v1/bootscript"
method: GET
Expand Down

0 comments on commit b462948

Please sign in to comment.