-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 bootflash check should pass on over-50% if image is pre-downloaded…
… onto node (#108) * check maintUpgJob for image downloaded * catch older versions not having dnldStatus * new OldVerPropNotFound exception and usage * Update aci-preupgrade-validation-script.py remove redundant check Co-authored-by: takishida <[email protected]> * Update aci-preupgrade-validation-script.py remove .keys() usage for py2 Co-authored-by: takishida <[email protected]> * Update tests/conftest.py whitespace Co-authored-by: takishida <[email protected]> * Update tests/conftest.py remove .keys() use for py2 best practices Co-authored-by: takishida <[email protected]> --------- Co-authored-by: takishida <[email protected]>
- Loading branch information
Showing
7 changed files
with
95 additions
and
15 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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/switch_bootflash_usage_check/maintUpgJob_not_downloaded.json
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 changes: 10 additions & 0 deletions
10
tests/switch_bootflash_usage_check/maintUpgJob_old_ver_no_prop.json
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 @@ | ||
[ | ||
{ | ||
"error": { | ||
"attributes": { | ||
"code": "121", | ||
"text": "Prop 'dnldStatus' not found in class 'maintUpgJob' property table" | ||
} | ||
} | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
tests/switch_bootflash_usage_check/maintUpgJob_pre_downloaded.json
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,16 @@ | ||
[ | ||
{ | ||
"maintUpgJob": { | ||
"attributes": { | ||
"desiredVersion": "n9000-16.0(2h)", | ||
"dn": "topology/pod-1/node-101/sys/fwstatuscont/upgjob", | ||
"dnldPercent": "100", | ||
"dnldStatus": "downloaded", | ||
"startDate": "2023-11-16T10:15:22.894-08:00", | ||
"status": "", | ||
"upgradeStatus": "scheduled", | ||
"upgradeStatusStr": "Scheduled" | ||
} | ||
} | ||
} | ||
] |
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