Skip to content

Commit

Permalink
modify search item for chassis serial number in generate enclosure job
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiilin committed Jun 21, 2017
1 parent 8dea522 commit e620ea3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/jobs/generate-enclosure.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ function generateEnclosureJobFactory(
snPath: [
{
src: 'ipmi-fru',
entry: 'Builtin FRU Device (ID 0).Product Serial'
entry: 'Builtin FRU Device (ID 0).Chassis Serial'
},
{
src: 'dmi',
entry: 'System Information.Serial Number'
entry: 'Chassis Information.Serial Number'
}]
});
assert.isMongoId(this.nodeId);
Expand Down
18 changes: 9 additions & 9 deletions spec/lib/jobs/generate-enclosure-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ describe(require('path').basename(__filename), function () {
var catalog = {
"data": {
"Basbrd Mgmt Ctlr": {
"Product Serial": "ABC123",
"Product Version": "FFF"
"Chassis Serial": "ABC123",
"Chassis Version": "FFF"
}
},
"id": uuid.v4(),
Expand Down Expand Up @@ -118,7 +118,7 @@ describe(require('path').basename(__filename), function () {
it('Should fail if no serial number item', function(done) {
var catalog = {
"data": {
"System Information": {
"Chassis Information": {
"Part Number": "FFF"
}
},
Expand Down Expand Up @@ -160,8 +160,8 @@ describe(require('path').basename(__filename), function () {
var catalog = {
"data": {
"Builtin FRU Device (ID 0)": {
"Product Serial": "... aa",
"Product Version": "FFF"
"Chassis Serial": "... aa",
"Chassis Version": "FFF"
}
},
"id": uuid.v4(),
Expand Down Expand Up @@ -202,8 +202,8 @@ describe(require('path').basename(__filename), function () {
var catalog = {
"data": {
"Builtin FRU Device (ID 0)": {
"Product Serial": "...-aa",
"Product Version": "FFF"
"Chassis Serial": "...-aa",
"Chassis Version": "FFF"
}
},
"id": uuid.v4(),
Expand All @@ -213,7 +213,7 @@ describe(require('path').basename(__filename), function () {

var snPath = {
src: 'ipmi-fru',
entry: 'Builtin FRU Device (ID 0).Product Serial'
entry: 'Builtin FRU Device (ID 0).Chassis Serial'
};

var findMostRecent = this.sandbox.stub(mockWaterline.catalogs,'findMostRecent');
Expand All @@ -235,7 +235,7 @@ describe(require('path').basename(__filename), function () {
var catalog = {
"data": {
"Builtin FRU Device (ID 0)": {
"Product Serial": "ABC123"
"Chassis Serial": "ABC123"
}
},
"id": uuid.v4(),
Expand Down

0 comments on commit e620ea3

Please sign in to comment.