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

Added test cases related to Firmware Upgrade plugin #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sandeep-vedam
Copy link
Contributor

@sandeep-vedam sandeep-vedam commented Jun 1, 2020

Added below test cases in this PR :
Firmware_Upgrade_Upgrade_001.test.js
Firmware_Upgrade_Upgrade_002.test.js
Firmware_Upgrade_Upgrade_003.test.js

Note: These tests are not to be merged to master until User-prompt feature is implemented as the tests need to be updated

sleep: 5,
test() {
//TODO - Update the test to enter the 'name', 'location', 'type', 'progressinterval', 'hmac' through User prompt
return firmwareUpgrade.call(this, 'name', 'location', 'type', 'progressinterval', 'hmac')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to merge this already or wait for an ability to fill this in with meaningful values?

test() {
//TODO - Update the test to enter the 'name', 'location', 'type', 'progressinterval', 'hmac' through User prompt
firmwareUpgrade.call(this, 'name', 'location', 'type', 'progressinterval', 'hmac')
return firmwareUpgrade.call(this, 'name', 'location', 'type', 'progressinterval', 'hmac')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest to use promise.all to run 2 promises in parallel, for reference:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all

And same here, guess we wait until we can fill in something meaninful to avoid false negative results?

steps: [
{
description:
'Invoke Upgrade firmware when already firmware upgrade in progres and validate the result',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants