-
Notifications
You must be signed in to change notification settings - Fork 77
WIP Updating redfish to work with identifier in addition to mongo id #801
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
Conversation
lib/api/redfish-1.0/systems.js
Outdated
| var listBootImage = controller(function(req, res) { | ||
| var identifier = req.swagger.params.identifier.value; | ||
| var options = redfish.makeOptions(req, res, identifier); | ||
| return nodeApi.getNodeByIdentifier(identifer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'identifer' is not defined.
lib/api/redfish-1.0/systems.js
Outdated
| var options = redfish.makeOptions(req, res, identifier); | ||
|
|
||
| return redfish.get('redfish.1.0.0.rackhd.bootimage.json', options) | ||
| return redfish.get('redfish.1.0.0.rackhd.bootimage.json', options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/api/redfish-1.0/systems.js
Outdated
| throw new Errors.NotFoundError('identifier not found'); | ||
| } | ||
| identifier = node.id; | ||
| var options = redfish.makeOptions(req, res, identifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'options' is defined but never used.
lib/api/redfish-1.0/systems.js
Outdated
| return wsman.isDellSystem(identifier) | ||
| .then(function(result){ | ||
| var node = result.node; | ||
| identifier = node.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/api/redfish-1.0/systems.js
Outdated
| .then(function(result){ | ||
| if(result.isDell){ | ||
| identifier = result.node.id; | ||
| var options = redfish.makeOptions(req, res, identifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'options' is defined but never used.
lib/api/redfish-1.0/systems.js
Outdated
| return wsman.isDellSystem(identifier) | ||
| .then(function(result){ | ||
| identifier = result.node.id; | ||
| var options = redfish.makeOptions(req, res, identifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'options' is defined but never used.
lib/api/redfish-1.0/systems.js
Outdated
| return wsman.isDellSystem(identifier) | ||
| .then(function(result){ | ||
| identifier = result.node.id; | ||
| var options = redfish.makeOptions(req, res, identifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'options' is defined but never used.
3abfb83 to
b7b04b2
Compare
|
BUILD on-http #643 : FAILURE BUILD on-http #643 Error Logs ▼Test Name: should get Cisco vendor name by identifier Error Details: waterline.nodes.findByIdentifier is not a function Stack Trace: TypeError: waterline.nodes.findByIdentifier is not a function at NodeApiService.getNodeByIdentifier (lib/services/nodes-api-service.js:9:33460) at RedfishApiService.getVendorNameById (lib/services/redfish-api-service.js:9:10600) at Context.<anonymous> (spec/lib/services/redfish-api-service-spec.js:93:28)Test Name: should get Dell vendor name by identifier Test Name: should get undefined vendor name by Identifier Test Name: should not get vendor name by Identifier Test Name: should return valid chassis and related targets Test Name: should 404 an invalid chassis object Test Name: should return a valid UCS thermal object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should 404 an invalid chassis thermal object Test Name: should return a valid UCS power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid chassis power object Test Name: should 404 an invalid identifier for bios query Test Name: should 404 a non-Dell identifier for bios query Test Name: should return a valid bios block for Dell-based catalog Test Name: should 404 an invalid identifier for bios settings query Test Name: should 404 a non-Dell identifier for bios settings query Test Name: should return a valid bios settings block for Dell-based catalog Test Name: should 404 an invalid system for bios settings patch Test Name: should 404 non-Dell identifier for bios settings patch Test Name: should 202 for a Dell-based bios settings patch Test Name: should 404 an invalid system for Bios.ChangePassword post Test Name: should 404 an invalid system for Bios.ResetBios Test Name: should 404 an non-Dell system for Bios.ChangePassword post Test Name: should 404 non-Dell identifier for Bios.ResetBios Test Name: should 202 for a Dell-based bios change password SysPassword Test Name: should return a 202 for valid Dell identifier for Bios.ResetBios Test Name: should return a 202 for a Dell-based bios change password SetupPassword Test Name: should 404 an invalid identifier for ethernet query Test Name: should 200 a Dell identifier for ethernet query Test Name: should return ip given catalog with no ip and ip from lookup (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-1-1) (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-2-1) (DELL catalogs) Test Name: should 404 a DELL with valid index and invalid ethernet index Test Name: should 200 a non-Dell identifier for ethernet query Test Name: should return a valid ethernet index block for non-Dell catalog with valid index Test Name: should return ip given catalog with ip an ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with ip and no ip from lookup (non-DELL catalogs) Test Name: should return ip given catalog with no ip and ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookupi (non-DELL catalogs) Test Name: should return a valid log service Test Name: should return a valid sel log service Test Name: should return a valid iDRAC sel log service Test Name: should 404 an invalid sel log service Test Name: should return a valid sel log service entry collection Test Name: should return a valid iDRAC sel log service entry collection Test Name: should return an empty sel log service entry collection Test Name: should 404 an invalid sel log service entry list Test Name: should return a valid sel log service entry with Created keyword Test Name: should return a valid sel log service entry without Created keyword Test Name: should return a valid sel log service entry despite no # Test Name: should return a valid iDrac sel log service entry Test Name: should 404 an invalid sel log service entry Test Name: should 404 an invalid iDRAC sel log service entry Test Name: should return a valid reset type list Test Name: should 404 a reset type list on an invalid node Test Name: should perform the specified valid reset Test Name: should 404 a reset on an invalid node Test Name: should return a valid boot image list Test Name: should perform the specified boot image installation with minimum payload Test Name: should perform the specified boot image installation Test Name: should return valid SecureBoot status Test Name: should 501 on unsupported URI command Test Name: should return 202 after setting Secure Boot Test Name: should 500 on failure Test Name: should return a valid lc log service Test Name: should 404 an invalid lc log service Test Name: should return a valid lc log service entry collection Test Name: should 404 an invalid lc log service entry collection Test Name: should return a valid lc log service entry Test Name: should 404 an invalid lc log service entry Test Name: should 501 on lc service not supported Test Name: should 501 on lc entries not supported Test Name: should 501 on lc entry not supported Test Name: should return a valid storage list Test Name: should return a valid storage list for device with DELL catalogs Test Name: should return a valid Redfish storage list Test Name: should 404 an invalid storage Test Name: should return a valid storage device Test Name: should return a valid storage device with DELL catalogs Test Name: should return a valid Redfish storage device Test Name: should 404 an invalid storage device Test Name: should return a valid storage drive with DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs (SATADOM) Test Name: should return a valid volume list for devices with DELL catalogs Test Name: should 404 requests for volumes from devices with non-DELL (wsman) catalogs Test Name: should 404 requests for specific volumes from devices with non-DELL (wsman) catalogs Test Name: should return a valid volume for devices with DELL catalogs Test Name: should return a valid remove volume for devices with DELL catalogs Test Name: should return a valid create volume for devices with DELL catalogs (raid type NonRedundant (default)) Test Name: should return a valid create volume for devices with DELL catalogs (raid type Mirrored) Test Name: should return a valid create volume for devices with DELL catalogs (raid type StripedWithParity) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedMirrors) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedStripesWithParity) Test Name: should return a valid add hot spare for devices with DELL catalogs Test Name: should return a valid UCS processor list Test Name: should return a valid processor list for Dell node Test Name: should return a valid processor list for non-DELL/Ucs nodes Test Name: should 404 an invalid processor list with invalid nodeId Test Name: should 404 an invalid processor list with incorrect catalog Test Name: should return a valid processor for a DELL node Test Name: should throw an invalid socketId for a DELL node Test Name: should return a valid processor for a Cisco node Test Name: should throw an invalid socketId error for Cisco Node Test Name: should return a valid processor for a non-DELL&non-Cisco node Test Name: should return an invalid socketId for a non-DELL&non-Cisco node Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should return a valid Cisco simple storage list Test Name: should return a valid simple storage list for devices with DELL catalogs Test Name: should return a valid simple storage list for non-Dell & non-Cisco catalogs Test Name: should 404 an invalid simple storage for Dell node Test Name: should 404 an invalid simple storage for Cisco node Test Name: should 404 an invalid simple storage for non-Dell & non-Cisco node Test Name: should return a valid simple storage device Test Name: should return a valid simple storage device for devices with DELL catalogs Test Name: should 404 an invalid simple storage device Test Name: should return a valid simple storage device with valid contoller Test Name: should return a invalid simple storage device with undefined controller |
|
BUILD on-http #644 : FAILURE BUILD on-http #644 Error Logs ▼Test Name: should get Cisco vendor name by identifier Error Details: waterline.nodes.findByIdentifier is not a function Stack Trace: TypeError: waterline.nodes.findByIdentifier is not a function at NodeApiService.getNodeByIdentifier (lib/services/nodes-api-service.js:9:33460) at RedfishApiService.getVendorNameById (lib/services/redfish-api-service.js:9:10600) at Context.<anonymous> (spec/lib/services/redfish-api-service-spec.js:93:28)Test Name: should get Dell vendor name by identifier Test Name: should get undefined vendor name by Identifier Test Name: should not get vendor name by Identifier Test Name: should return valid chassis and related targets Test Name: should 404 an invalid chassis object Test Name: should return a valid UCS thermal object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should 404 an invalid chassis thermal object Test Name: should return a valid UCS power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid chassis power object Test Name: should 404 an invalid identifier for bios query Test Name: should 404 a non-Dell identifier for bios query Test Name: should return a valid bios block for Dell-based catalog Test Name: should 404 an invalid identifier for bios settings query Test Name: should 404 a non-Dell identifier for bios settings query Test Name: should return a valid bios settings block for Dell-based catalog Test Name: should 404 an invalid system for bios settings patch Test Name: should 404 non-Dell identifier for bios settings patch Test Name: should 202 for a Dell-based bios settings patch Test Name: should 404 an invalid system for Bios.ChangePassword post Test Name: should 404 an invalid system for Bios.ResetBios Test Name: should 404 an non-Dell system for Bios.ChangePassword post Test Name: should 404 non-Dell identifier for Bios.ResetBios Test Name: should 202 for a Dell-based bios change password SysPassword Test Name: should return a 202 for valid Dell identifier for Bios.ResetBios Test Name: should return a 202 for a Dell-based bios change password SetupPassword Test Name: should 404 an invalid identifier for ethernet query Test Name: should 200 a Dell identifier for ethernet query Test Name: should return ip given catalog with no ip and ip from lookup (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-1-1) (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-2-1) (DELL catalogs) Test Name: should 404 a DELL with valid index and invalid ethernet index Test Name: should 200 a non-Dell identifier for ethernet query Test Name: should return a valid ethernet index block for non-Dell catalog with valid index Test Name: should return ip given catalog with ip an ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with ip and no ip from lookup (non-DELL catalogs) Test Name: should return ip given catalog with no ip and ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookupi (non-DELL catalogs) Test Name: should return a valid log service Test Name: should return a valid sel log service Test Name: should return a valid iDRAC sel log service Test Name: should 404 an invalid sel log service Test Name: should return a valid sel log service entry collection Test Name: should return a valid iDRAC sel log service entry collection Test Name: should return an empty sel log service entry collection Test Name: should 404 an invalid sel log service entry list Test Name: should return a valid sel log service entry with Created keyword Test Name: should return a valid sel log service entry without Created keyword Test Name: should return a valid sel log service entry despite no # Test Name: should return a valid iDrac sel log service entry Test Name: should 404 an invalid sel log service entry Test Name: should 404 an invalid iDRAC sel log service entry Test Name: should return a valid reset type list Test Name: should 404 a reset type list on an invalid node Test Name: should perform the specified valid reset Test Name: should 404 a reset on an invalid node Test Name: should return a valid boot image list Test Name: should perform the specified boot image installation with minimum payload Test Name: should perform the specified boot image installation Test Name: should return valid SecureBoot status Test Name: should 501 on unsupported URI command Test Name: should return 202 after setting Secure Boot Test Name: should 500 on failure Test Name: should return a valid lc log service Test Name: should 404 an invalid lc log service Test Name: should return a valid lc log service entry collection Test Name: should 404 an invalid lc log service entry collection Test Name: should return a valid lc log service entry Test Name: should 404 an invalid lc log service entry Test Name: should 501 on lc service not supported Test Name: should 501 on lc entries not supported Test Name: should 501 on lc entry not supported Test Name: should return a valid storage list Test Name: should return a valid storage list for device with DELL catalogs Test Name: should return a valid Redfish storage list Test Name: should 404 an invalid storage Test Name: should return a valid storage device Test Name: should return a valid storage device with DELL catalogs Test Name: should return a valid Redfish storage device Test Name: should 404 an invalid storage device Test Name: should return a valid storage drive with DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs (SATADOM) Test Name: should return a valid volume list for devices with DELL catalogs Test Name: should 404 requests for volumes from devices with non-DELL (wsman) catalogs Test Name: should 404 requests for specific volumes from devices with non-DELL (wsman) catalogs Test Name: should return a valid volume for devices with DELL catalogs Test Name: should return a valid remove volume for devices with DELL catalogs Test Name: should return a valid create volume for devices with DELL catalogs (raid type NonRedundant (default)) Test Name: should return a valid create volume for devices with DELL catalogs (raid type Mirrored) Test Name: should return a valid create volume for devices with DELL catalogs (raid type StripedWithParity) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedMirrors) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedStripesWithParity) Test Name: should return a valid add hot spare for devices with DELL catalogs Test Name: should return a valid UCS processor list Test Name: should return a valid processor list for Dell node Test Name: should return a valid processor list for non-DELL/Ucs nodes Test Name: should 404 an invalid processor list with invalid nodeId Test Name: should 404 an invalid processor list with incorrect catalog Test Name: should return a valid processor for a DELL node Test Name: should throw an invalid socketId for a DELL node Test Name: should return a valid processor for a Cisco node Test Name: should throw an invalid socketId error for Cisco Node Test Name: should return a valid processor for a non-DELL&non-Cisco node Test Name: should return an invalid socketId for a non-DELL&non-Cisco node Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should return a valid Cisco simple storage list Test Name: should return a valid simple storage list for devices with DELL catalogs Test Name: should return a valid simple storage list for non-Dell & non-Cisco catalogs Test Name: should 404 an invalid simple storage for Dell node Test Name: should 404 an invalid simple storage for Cisco node Test Name: should 404 an invalid simple storage for non-Dell & non-Cisco node Test Name: should return a valid simple storage device Test Name: should return a valid simple storage device for devices with DELL catalogs Test Name: should 404 an invalid simple storage device Test Name: should return a valid simple storage device with valid contoller Test Name: should return a invalid simple storage device with undefined controller |
b7b04b2 to
b0027eb
Compare
| it('should not get vendor name by Identifier', function() { | ||
| var id = "testid"; | ||
| waterline.nodes.getNodeById.resolves(null); | ||
| nodeApi.getNodeByIdentifier.resolves(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
| expect(waterline.nodes.getNodeById).to.be.calledOnce; | ||
| expect(waterline.nodes.getNodeById).to.be.calledWith("5bc58a"); | ||
| expect(nodeApi.getNodeByIdentifier).to.be.calledOnce; | ||
| expect(nodeApi.getNodeByIdentifier).to.be.calledWith("5bc58a"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
| expect(result.node).to.deep.equal(sampleDataInfo); | ||
| expect(waterline.nodes.getNodeById).to.be.calledOnce; | ||
| expect(waterline.nodes.getNodeById).to.be.calledWith("5bc58a"); | ||
| expect(nodeApi.getNodeByIdentifier).to.be.calledOnce; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
| }; | ||
|
|
||
| waterline.nodes.getNodeById.resolves(sampleDataInfo); | ||
| nodeApi.getNodeByIdentifier.resolves(sampleDataInfo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
| expect(waterline.nodes.getNodeById).to.be.calledOnce; | ||
| expect(waterline.nodes.getNodeById).to.be.calledWith("5bc58a"); | ||
| expect(nodeApi.getNodeByIdentifier).to.be.calledOnce; | ||
| expect(nodeApi.getNodeByIdentifier).to.be.calledWith("5bc58a"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
| getNodeById: sinon.stub() | ||
| }; | ||
|
|
||
| sinon.stub(nodeApi, 'getNodeByIdentifier'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
|
|
||
| env = helper.injector.get('Services.Environment'); | ||
| waterline = helper.injector.get('Services.Waterline'); | ||
| nodeApi = helper.injector.get('Http.Services.Api.Nodes'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodeApi' is not defined.
| .withArgs(ucsNodeId, 'UCS').resolves(ucsCatalog); | ||
| waterline.nodes.needByIdentifier.withArgs(ucsNodeId).resolves(ucsNode); | ||
| waterline.nodes.getNodeById.withArgs(ucsNodeId).resolves(ucsNode); | ||
| nodesApi.getNodeByIdentifier.withArgs(ucsNodeId).resolves(ucsNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodesApi' is not defined.
| waterline.nodes.getNodeById.withArgs(node.id).resolves(Promise.resolve(node)); | ||
| waterline.nodes.getNodeById.withArgs(dellNode.id).resolves(Promise.resolve(dellNode)); | ||
| nodesApi.getNodeByIdentifier.withArgs(node.id).resolves(Promise.resolve(node)); | ||
| nodesApi.getNodeByIdentifier.withArgs(dellNode.id).resolves(Promise.resolve(dellNode)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodesApi' is not defined.
|
|
||
| waterline.nodes.getNodeById.withArgs(node.id).resolves(Promise.resolve(node)); | ||
| waterline.nodes.getNodeById.withArgs(dellNode.id).resolves(Promise.resolve(dellNode)); | ||
| nodesApi.getNodeByIdentifier.withArgs(node.id).resolves(Promise.resolve(node)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'nodesApi' is not defined.
b0027eb to
c8b1da4
Compare
|
BUILD on-http #645 : FAILURE BUILD on-http #645 Error Logs ▼Test Name: "before all" hook Error Details: nodeApi is not defined Stack Trace: ReferenceError: nodeApi is not defined at Context.<anonymous> (spec/lib/services/redfish-api-service-spec.js:46:17)Test Name: "after all" hook Test Name: should return valid chassis and related targets Test Name: should 404 an invalid chassis object Test Name: should return a valid UCS thermal object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should 404 an invalid chassis thermal object Test Name: should return a valid UCS power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid chassis power object Test Name: "before each" hook: set up mocks for "should return a valid system root" |
|
BUILD on-http #646 : FAILURE BUILD on-http #646 Error Logs ▼Test Name: "before each" hook: set up mocks for "should return a valid system root" Error Details: nodeApi.getNodeByIdentifier.resolves is not a function Stack Trace: TypeError: nodeApi.getNodeByIdentifier.resolves is not a function at Context.<anonymous> (spec/lib/api/redfish-1.0/system-spec.js:152:37)Test Name: should return valid chassis and related targets Test Name: should 404 an invalid chassis object Test Name: should return a valid UCS thermal object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should 404 an invalid chassis thermal object Test Name: should return a valid UCS power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid chassis power object |
c8b1da4 to
10425e6
Compare
|
BUILD on-http #647 : FAILURE BUILD on-http #647 Error Logs ▼Test Name: should return valid chassis and related targets Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'id' of undefined', status: '400', UUID: 'abe2f327-fc3a-4988-b9a0-e27ee17bad2c' } Error: expected 200 "OK", got 400 "Bad Request" at Test._assertStatus (/RackHD/on-http/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/RackHD/on-http/node_modules/supertest/lib/test.js:247:11) at Test.assert (/RackHD/on-http/node_modules/supertest/lib/test.js:148:18) at assert (/RackHD/on-http/node_modules/supertest/lib/test.js:127:12) at /RackHD/on-http/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/RackHD/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/RackHD/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:923:12) at nextTickCallbackWith2Args (node.js:511:9) at process._tickDomainCallback (node.js:466:17) Stack Trace: Error: expected 200 "OK", got 400 "Bad Request" at Test._assertStatus (node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (node_modules/supertest/lib/test.js:247:11) at Test.assert (node_modules/supertest/lib/test.js:148:18) at assert (node_modules/supertest/lib/test.js:127:12) at node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12) at endReadableNT (_stream_readable.js:923:12)Test Name: should 404 an invalid chassis object Test Name: should return a valid UCS thermal object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should 404 an invalid chassis thermal object Test Name: should return a valid UCS power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid chassis power object Test Name: should 404 an invalid identifier for bios query Test Name: should 404 a non-Dell identifier for bios query Test Name: should return a valid bios block for Dell-based catalog Test Name: should 404 an invalid identifier for bios settings query Test Name: should 404 a non-Dell identifier for bios settings query Test Name: should return a valid bios settings block for Dell-based catalog Test Name: should 404 an invalid system for bios settings patch Test Name: should 404 non-Dell identifier for bios settings patch Test Name: should 202 for a Dell-based bios settings patch Test Name: should 404 an invalid system for Bios.ChangePassword post Test Name: should 404 an invalid system for Bios.ResetBios Test Name: should 404 an non-Dell system for Bios.ChangePassword post Test Name: should 404 non-Dell identifier for Bios.ResetBios Test Name: should 202 for a Dell-based bios change password SysPassword Test Name: should return a 202 for valid Dell identifier for Bios.ResetBios Test Name: should return a 202 for a Dell-based bios change password SetupPassword Test Name: should 404 an invalid identifier for ethernet query Test Name: should 200 a Dell identifier for ethernet query Test Name: should return ip given catalog with no ip and ip from lookup (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-1-1) (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-2-1) (DELL catalogs) Test Name: should 404 a DELL with valid index and invalid ethernet index Test Name: should 200 a non-Dell identifier for ethernet query Test Name: should return a valid ethernet index block for non-Dell catalog with valid index Test Name: should return ip given catalog with ip an ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with ip and no ip from lookup (non-DELL catalogs) Test Name: should return ip given catalog with no ip and ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookupi (non-DELL catalogs) Test Name: should return a valid log service Test Name: should return a valid sel log service Test Name: should return a valid iDRAC sel log service Test Name: should 404 an invalid sel log service Test Name: should return a valid sel log service entry collection Test Name: should return a valid iDRAC sel log service entry collection Test Name: should return an empty sel log service entry collection Test Name: should 404 an invalid sel log service entry list Test Name: should return a valid sel log service entry with Created keyword Test Name: should return a valid sel log service entry without Created keyword Test Name: should return a valid sel log service entry despite no # Test Name: should return a valid iDrac sel log service entry Test Name: should 404 an invalid sel log service entry Test Name: should 404 an invalid iDRAC sel log service entry Test Name: should return a valid reset type list Test Name: should 404 a reset type list on an invalid node Test Name: should perform the specified valid reset Test Name: should 404 a reset on an invalid node Test Name: should return a valid boot image list Test Name: should perform the specified boot image installation with minimum payload Test Name: should perform the specified boot image installation Test Name: should return valid SecureBoot status Test Name: should 501 on unsupported URI command Test Name: should return 202 after setting Secure Boot Test Name: should 500 on failure Test Name: should return a valid lc log service Test Name: should 404 an invalid lc log service Test Name: should return a valid lc log service entry collection Test Name: should 404 an invalid lc log service entry collection Test Name: should return a valid lc log service entry Test Name: should 404 an invalid lc log service entry Test Name: should 501 on lc service not supported Test Name: should 501 on lc entries not supported Test Name: should 501 on lc entry not supported Test Name: should return a valid storage list Test Name: should return a valid storage list for device with DELL catalogs Test Name: should return a valid Redfish storage list Test Name: should 404 an invalid storage Test Name: should return a valid storage device Test Name: should return a valid storage device with DELL catalogs Test Name: should return a valid Redfish storage device Test Name: should 404 an invalid storage device Test Name: should return a valid storage drive with DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs (SATADOM) Test Name: should return a valid volume list for devices with DELL catalogs Test Name: should 404 requests for volumes from devices with non-DELL (wsman) catalogs Test Name: should 404 requests for specific volumes from devices with non-DELL (wsman) catalogs Test Name: should return a valid volume for devices with DELL catalogs Test Name: should return a valid remove volume for devices with DELL catalogs Test Name: should return a valid create volume for devices with DELL catalogs (raid type NonRedundant (default)) Test Name: should return a valid create volume for devices with DELL catalogs (raid type Mirrored) Test Name: should return a valid create volume for devices with DELL catalogs (raid type StripedWithParity) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedMirrors) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedStripesWithParity) Test Name: should return a valid add hot spare for devices with DELL catalogs Test Name: should return a valid system Test Name: should return a valid system for device with DELL catalogs Test Name: should return a valid system with sku Test Name: should return a valid Cisco system Test Name: should 404 an invalid system Test Name: should return a valid UCS processor list Test Name: should return a valid processor list for Dell node Test Name: should return a valid processor list for non-DELL/Ucs nodes Test Name: should 404 an invalid processor list with invalid nodeId Test Name: should 404 an invalid processor list with incorrect catalog Test Name: should return an error when get system vendor fails Test Name: should return a valid processor for a DELL node Test Name: should throw an invalid socketId for a DELL node Test Name: should return a valid processor for a Cisco node Test Name: should throw an invalid socketId error for Cisco Node Test Name: should return a valid processor for a non-DELL&non-Cisco node Test Name: should return an invalid socketId for a non-DELL&non-Cisco node Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should return an error when get system vendor fails Test Name: should return a valid Cisco simple storage list Test Name: should return a valid simple storage list for devices with DELL catalogs Test Name: should return a valid simple storage list for non-Dell & non-Cisco catalogs Test Name: should 404 an invalid simple storage for Dell node Test Name: should 404 an invalid simple storage for Cisco node Test Name: should 404 an invalid simple storage for non-Dell & non-Cisco node Test Name: should return a valid simple storage device Test Name: should return a valid simple storage device for devices with DELL catalogs Test Name: should 404 an invalid simple storage device Test Name: should return a valid simple storage device with valid contoller Test Name: should return a invalid simple storage device with undefined controller |
10425e6 to
d812db7
Compare
|
BUILD on-http #648 : FAILURE BUILD on-http #648 Error Logs ▼Test Name: should return valid chassis and related targets Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'id' of undefined', status: '400', UUID: '0f176aef-c926-4977-a251-c76b3bb18a05' } Error: expected 200 "OK", got 400 "Bad Request" at Test._assertStatus (/RackHD/on-http/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/RackHD/on-http/node_modules/supertest/lib/test.js:247:11) at Test.assert (/RackHD/on-http/node_modules/supertest/lib/test.js:148:18) at assert (/RackHD/on-http/node_modules/supertest/lib/test.js:127:12) at /RackHD/on-http/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/RackHD/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/RackHD/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:923:12) at nextTickCallbackWith2Args (node.js:511:9) at process._tickDomainCallback (node.js:466:17) Stack Trace: Error: expected 200 "OK", got 400 "Bad Request" at Test._assertStatus (node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (node_modules/supertest/lib/test.js:247:11) at Test.assert (node_modules/supertest/lib/test.js:148:18) at assert (node_modules/supertest/lib/test.js:127:12) at node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12) at endReadableNT (_stream_readable.js:923:12)Test Name: should 404 an invalid chassis object Test Name: should return a valid UCS thermal object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should 404 an invalid chassis thermal object Test Name: should return a valid UCS power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid chassis power object Test Name: should 404 an invalid identifier for bios query Test Name: should 404 a non-Dell identifier for bios query Test Name: should return a valid bios block for Dell-based catalog Test Name: should 404 an invalid identifier for bios settings query Test Name: should 404 a non-Dell identifier for bios settings query Test Name: should return a valid bios settings block for Dell-based catalog Test Name: should 404 an invalid system for bios settings patch Test Name: should 404 non-Dell identifier for bios settings patch Test Name: should 202 for a Dell-based bios settings patch Test Name: should 404 an invalid system for Bios.ChangePassword post Test Name: should 404 an invalid system for Bios.ResetBios Test Name: should 404 an non-Dell system for Bios.ChangePassword post Test Name: should 404 non-Dell identifier for Bios.ResetBios Test Name: should 202 for a Dell-based bios change password SysPassword Test Name: should return a 202 for valid Dell identifier for Bios.ResetBios Test Name: should return a 202 for a Dell-based bios change password SetupPassword Test Name: should 404 an invalid identifier for ethernet query Test Name: should 200 a Dell identifier for ethernet query Test Name: should return ip given catalog with no ip and ip from lookup (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-1-1) (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-2-1) (DELL catalogs) Test Name: should 404 a DELL with valid index and invalid ethernet index Test Name: should 200 a non-Dell identifier for ethernet query Test Name: should return a valid ethernet index block for non-Dell catalog with valid index Test Name: should return ip given catalog with ip an ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with ip and no ip from lookup (non-DELL catalogs) Test Name: should return ip given catalog with no ip and ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookupi (non-DELL catalogs) Test Name: should return a valid log service Test Name: should return a valid sel log service Test Name: should return a valid iDRAC sel log service Test Name: should 404 an invalid sel log service Test Name: should return a valid sel log service entry collection Test Name: should return a valid iDRAC sel log service entry collection Test Name: should return an empty sel log service entry collection Test Name: should 404 an invalid sel log service entry list Test Name: should return a valid sel log service entry with Created keyword Test Name: should return a valid sel log service entry without Created keyword Test Name: should return a valid sel log service entry despite no # Test Name: should return a valid iDrac sel log service entry Test Name: should 404 an invalid sel log service entry Test Name: should 404 an invalid iDRAC sel log service entry Test Name: should return a valid reset type list Test Name: should 404 a reset type list on an invalid node Test Name: should perform the specified valid reset Test Name: should 404 a reset on an invalid node Test Name: should return a valid boot image list Test Name: should perform the specified boot image installation with minimum payload Test Name: should perform the specified boot image installation Test Name: should return valid SecureBoot status Test Name: should 501 on unsupported URI command Test Name: should return 202 after setting Secure Boot Test Name: should 500 on failure Test Name: should return a valid lc log service Test Name: should 404 an invalid lc log service Test Name: should return a valid lc log service entry collection Test Name: should 404 an invalid lc log service entry collection Test Name: should return a valid lc log service entry Test Name: should 404 an invalid lc log service entry Test Name: should 501 on lc service not supported Test Name: should 501 on lc entries not supported Test Name: should 501 on lc entry not supported Test Name: should return a valid storage list Test Name: should return a valid storage list for device with DELL catalogs Test Name: should return a valid Redfish storage list Test Name: should 404 an invalid storage Test Name: should return a valid storage device Test Name: should return a valid storage device with DELL catalogs Test Name: should return a valid Redfish storage device Test Name: should 404 an invalid storage device Test Name: should return a valid storage drive with DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs (SATADOM) Test Name: should return a valid volume list for devices with DELL catalogs Test Name: should 404 requests for volumes from devices with non-DELL (wsman) catalogs Test Name: should 404 requests for specific volumes from devices with non-DELL (wsman) catalogs Test Name: should return a valid volume for devices with DELL catalogs Test Name: should return a valid remove volume for devices with DELL catalogs Test Name: should return a valid create volume for devices with DELL catalogs (raid type NonRedundant (default)) Test Name: should return a valid create volume for devices with DELL catalogs (raid type Mirrored) Test Name: should return a valid create volume for devices with DELL catalogs (raid type StripedWithParity) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedMirrors) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedStripesWithParity) Test Name: should return a valid add hot spare for devices with DELL catalogs Test Name: should return a valid system Test Name: should return a valid system for device with DELL catalogs Test Name: should return a valid system with sku Test Name: should return a valid Cisco system Test Name: should 404 an invalid system Test Name: should return a valid UCS processor list Test Name: should return a valid processor list for Dell node Test Name: should return a valid processor list for non-DELL/Ucs nodes Test Name: should 404 an invalid processor list with invalid nodeId Test Name: should 404 an invalid processor list with incorrect catalog Test Name: should return an error when get system vendor fails Test Name: should return a valid processor for a DELL node Test Name: should throw an invalid socketId for a DELL node Test Name: should return a valid processor for a Cisco node Test Name: should throw an invalid socketId error for Cisco Node Test Name: should return a valid processor for a non-DELL&non-Cisco node Test Name: should return an invalid socketId for a non-DELL&non-Cisco node Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should return an error when get system vendor fails Test Name: should return a valid Cisco simple storage list Test Name: should return a valid simple storage list for devices with DELL catalogs Test Name: should return a valid simple storage list for non-Dell & non-Cisco catalogs Test Name: should 404 an invalid simple storage for Dell node Test Name: should 404 an invalid simple storage for Cisco node Test Name: should 404 an invalid simple storage for non-Dell & non-Cisco node Test Name: should return a valid simple storage device Test Name: should return a valid simple storage device for devices with DELL catalogs Test Name: should 404 an invalid simple storage device Test Name: should return a valid simple storage device with valid contoller Test Name: should return a invalid simple storage device with undefined controller |
d812db7 to
fb1216d
Compare
|
BUILD on-http #649 : FAILURE BUILD on-http #649 Error Logs ▼Test Name: should return valid chassis and related targets Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined', status: '400', UUID: 'c4386ca2-a72d-4801-8e8b-d32e7d70c4f2' } Error: expected 200 "OK", got 400 "Bad Request" at Test._assertStatus (/RackHD/on-http/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/RackHD/on-http/node_modules/supertest/lib/test.js:247:11) at Test.assert (/RackHD/on-http/node_modules/supertest/lib/test.js:148:18) at assert (/RackHD/on-http/node_modules/supertest/lib/test.js:127:12) at /RackHD/on-http/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/RackHD/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/RackHD/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:923:12) at nextTickCallbackWith2Args (node.js:511:9) at process._tickDomainCallback (node.js:466:17) Stack Trace: Error: expected 200 "OK", got 400 "Bad Request" at Test._assertStatus (node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (node_modules/supertest/lib/test.js:247:11) at Test.assert (node_modules/supertest/lib/test.js:148:18) at assert (node_modules/supertest/lib/test.js:127:12) at node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12) at endReadableNT (_stream_readable.js:923:12)Test Name: should 404 an invalid chassis object Test Name: should return valid UCS chassis and related targets Test Name: should return a valid thermal object Test Name: should return a valid power object Test Name: should return a valid non-ucs power object Test Name: should 404 an invalid identifier for bios query Test Name: should 404 a non-Dell identifier for bios query Test Name: should return a valid bios block for Dell-based catalog Test Name: should 404 an invalid identifier for bios settings query Test Name: should 404 a non-Dell identifier for bios settings query Test Name: should return a valid bios settings block for Dell-based catalog Test Name: should 404 an invalid system for bios settings patch Test Name: should 404 non-Dell identifier for bios settings patch Test Name: should 202 for a Dell-based bios settings patch Test Name: should 404 an invalid system for Bios.ChangePassword post Test Name: should 404 an invalid system for Bios.ResetBios Test Name: should 404 an non-Dell system for Bios.ChangePassword post Test Name: should 404 non-Dell identifier for Bios.ResetBios Test Name: should 202 for a Dell-based bios change password SysPassword Test Name: should return a 202 for valid Dell identifier for Bios.ResetBios Test Name: should return a 202 for a Dell-based bios change password SetupPassword Test Name: should 404 an invalid identifier for ethernet query Test Name: should 200 a Dell identifier for ethernet query Test Name: should return ip given catalog with no ip and ip from lookup (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-1-1) (DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookup (1-2-1) (DELL catalogs) Test Name: should 404 a DELL with valid index and invalid ethernet index Test Name: should 200 a non-Dell identifier for ethernet query Test Name: should return a valid ethernet index block for non-Dell catalog with valid index Test Name: should return ip given catalog with ip an ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with ip and no ip from lookup (non-DELL catalogs) Test Name: should return ip given catalog with no ip and ip from lookup (non-DELL catalogs) Test Name: should return no ip given catalog with no ip and no ip from lookupi (non-DELL catalogs) Test Name: should return a valid log service Test Name: should return a valid sel log service Test Name: should return a valid iDRAC sel log service Test Name: should 404 an invalid sel log service Test Name: should return a valid sel log service entry collection Test Name: should return a valid iDRAC sel log service entry collection Test Name: should return an empty sel log service entry collection Test Name: should 404 an invalid sel log service entry list Test Name: should return a valid sel log service entry with Created keyword Test Name: should return a valid sel log service entry without Created keyword Test Name: should return a valid sel log service entry despite no # Test Name: should return a valid iDrac sel log service entry Test Name: should 404 an invalid sel log service entry Test Name: should 404 an invalid iDRAC sel log service entry Test Name: should return a valid reset type list Test Name: should 404 a reset type list on an invalid node Test Name: should perform the specified valid reset Test Name: should 404 a reset on an invalid node Test Name: should return a valid boot image list Test Name: should perform the specified boot image installation with minimum payload Test Name: should perform the specified boot image installation Test Name: should return valid SecureBoot status Test Name: should 501 on unsupported URI command Test Name: should return 202 after setting Secure Boot Test Name: should 500 on failure Test Name: should return a valid lc log service Test Name: should 404 an invalid lc log service Test Name: should return a valid lc log service entry collection Test Name: should 404 an invalid lc log service entry collection Test Name: should return a valid lc log service entry Test Name: should 404 an invalid lc log service entry Test Name: should 501 on lc service not supported Test Name: should 501 on lc entries not supported Test Name: should 501 on lc entry not supported Test Name: should return a valid storage list Test Name: should return a valid storage list for device with DELL catalogs Test Name: should return a valid Redfish storage list Test Name: should 404 an invalid storage Test Name: should return a valid storage device Test Name: should return a valid storage device with DELL catalogs Test Name: should return a valid Redfish storage device Test Name: should 404 an invalid storage device Test Name: should return a valid storage drive with DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs Test Name: should return a valid storage drive with non-DELL catalogs (SATADOM) Test Name: should return a valid volume list for devices with DELL catalogs Test Name: should 404 requests for volumes from devices with non-DELL (wsman) catalogs Test Name: should 404 requests for specific volumes from devices with non-DELL (wsman) catalogs Test Name: should return a valid volume for devices with DELL catalogs Test Name: should return a valid remove volume for devices with DELL catalogs Test Name: should return a valid create volume for devices with DELL catalogs (raid type NonRedundant (default)) Test Name: should return a valid create volume for devices with DELL catalogs (raid type Mirrored) Test Name: should return a valid create volume for devices with DELL catalogs (raid type StripedWithParity) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedMirrors) Test Name: should return a valid create volume for devices with DELL catalogs (raid type SpannedStripesWithParity) Test Name: should return a valid add hot spare for devices with DELL catalogs Test Name: should return a valid system Test Name: should return a valid system for device with DELL catalogs Test Name: should return a valid system with sku Test Name: should return a valid Cisco system Test Name: should 404 an invalid system Test Name: should return a valid UCS processor list Test Name: should return a valid processor list for Dell node Test Name: should return a valid processor list for non-DELL/Ucs nodes Test Name: should 404 an invalid processor list with invalid nodeId Test Name: should 404 an invalid processor list with incorrect catalog Test Name: should return an error when get system vendor fails Test Name: should return a valid processor for a DELL node Test Name: should throw an invalid socketId for a DELL node Test Name: should return a valid processor for a Cisco node Test Name: should throw an invalid socketId error for Cisco Node Test Name: should return a valid processor for a non-DELL&non-Cisco node Test Name: should return an invalid socketId for a non-DELL&non-Cisco node Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should 404 an invalid processor Test Name: should return an error when get system vendor fails Test Name: should return a valid Cisco simple storage list Test Name: should return a valid simple storage list for devices with DELL catalogs Test Name: should return a valid simple storage list for non-Dell & non-Cisco catalogs Test Name: should 404 an invalid simple storage for Dell node Test Name: should 404 an invalid simple storage for Cisco node Test Name: should 404 an invalid simple storage for non-Dell & non-Cisco node Test Name: should return a valid simple storage device Test Name: should return a valid simple storage device for devices with DELL catalogs Test Name: should 404 an invalid simple storage device Test Name: should return a valid simple storage device with valid contoller Test Name: should return a invalid simple storage device with undefined controller |
fb1216d to
2695b05
Compare
2695b05 to
1243a19
Compare
@jimturnquist @pathakvaidehi2391