Skip to content

Conversation

@BillyAbildgaard
Copy link

adding snmp for ibms

@@ -0,0 +1,32 @@
{
"title": "smnp-ibm-service",
Copy link
Contributor

Choose a reason for hiding this comment

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

typo? "smnp" > "snmp"
Same for file name

@@ -0,0 +1,32 @@
{
"title": "smnp-ibm-service",
Copy link
Contributor

Choose a reason for hiding this comment

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

smnp > snmp

@JenkinsRHD
Copy link
Contributor

BUILD on-http #3119 : FAILURE

BUILD unit-tests #11144 Error Logs ▼Test Name: Http.Api.Ibms /api/2.0/ibms/definitions should get the ssh IBM schema Error Details: expected 200 "OK", got 404 "Not Found" Response body: { message: '/api/2.0/ibms/definitions/ssh-ibm-service.json Not Found', status: '404', UUID: '9e24f959-ba4d-4cf8-9905-754eaf0ee642' } Error: expected 200 "OK", got 404 "Not Found" at Test._assertStatus (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:247:11) at Test.assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:148:18) at assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:127:12) at /home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build/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:921:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickDomainCallback (node.js:397:17) Stack Trace: Error: expected 200 "OK", got 404 "Not Found" 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:921:12)

Test Name: Http.Api.Ibms /api/2.0/ibms should return a list of IBM instances
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:106:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should put an IBM instance
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:121:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should 400 when put with unloaded schema
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:133:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should 400 when put with missing field
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:145:26)

Test Name: Http.Api.Ibms /api/2.0/ibms/:id "before each" hook for "should get an IBM instance"
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:160:19)

Test Name: Http.Api.Ibms /api/2.0/ibms/:id "after each" hook for "should get an IBM instance"
Error Details: Cannot read property 'needByIdentifier' of undefined
Stack Trace: TypeError: Cannot read property 'needByIdentifier' of undefined
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:166:27)

Test Name: 2.0 Http.Api.Nodes GET /nodes/:identifier/ssh should return a list of the node's ssh settings
Error Details: Cannot read property 'findAllByNode' of undefined
Stack Trace: TypeError: Cannot read property 'findAllByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:383:27)

Test Name: 2.0 Http.Api.Nodes GET /nodes/:identifier/ssh should return a 404 if the node has no ssh settings
Error Details: Cannot read property 'findAllByNode' of undefined
Stack Trace: TypeError: Cannot read property 'findAllByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:400:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should replace existing settings with a new set of ssh settings
Error Details: Cannot read property 'upsertByNode' of undefined
Stack Trace: TypeError: Cannot read property 'upsertByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:436:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should add a new set of ssh settings if none exist
Error Details: Cannot read property 'upsertByNode' of undefined
Stack Trace: TypeError: Cannot read property 'upsertByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:449:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should return a 404 if the node was not found
Error Details: expected 404 "Not Found", got 400 "Bad Request" Response body: { message: '&#34;ssh-ibm-service.json#/definitions/Ibm is not loaded&#34;', status: '400', UUID: '9657111d-7459-44e1-9358-9d8ac255247e' } Error: expected 404 "Not Found", got 400 "Bad Request" at Test._assertStatus (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:247:11) at Test.assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:148:18) at assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:127:12) at /home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build/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:921:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickDomainCallback (node.js:397:17)
Stack Trace: Error: expected 404 "Not Found", 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:921:12)

Test Name: Node Serializable V1 serialize should redact snmpSettings community
Error Details: Cannot set property 'community' of undefined
Stack Trace: TypeError: Cannot set property 'community' of undefined
at SnmpFactory.Snmp.serialize (lib/serializables/v1/snmp.js:9:1071)
at lib/serializables/v1/node.js:9:3356
at bound (domain.js:287:14)
at runBound (domain.js:300:12)
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

Test Name: Node Serializable V1 deserialize should encrypt snmpSettings community
Error Details: Cannot read property 'community' of undefined
Stack Trace: TypeError: Cannot read property 'community' of undefined
at SnmpFactory.Snmp.deserialize (lib/serializables/v1/snmp.js:9:1426)
at lib/serializables/v1/node.js:9:4161
at bound (domain.js:287:14)
at runBound (domain.js:300:12)
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

Test Name: Ssh Serializable V1 deserialize should fail on a bad host/community key schema
Error Details: expected promise to be rejected with an error matching /SchemaError/ but it was fulfilled with { Object (config) }
Stack Trace: AssertionError: expected promise to be rejected with an error matching /SchemaError/ but it was fulfilled with { Object (config) }

Test Name: Ssh Serializable V1 deserialize should fail on a bad host/community key schema
Error Details: Not a string or buffer
Stack Trace: TypeError: Not a string or buffer
at TypeError (native)
at Cipheriv.Cipher.update (crypto.js:140:26)
at Encryption.encrypt (node_modules/on-core/lib/common/encryption.js:40:20)
at EncryptionService.encrypt (node_modules/on-core/lib/services/encryption.js:25:36)
at SnmpFactory.Snmp.deserialize (lib/serializables/v1/snmp.js:9:1407)
at Context.<anonymous> (spec/lib/serializables/v1/snpm-spec.js:68:33)

Test Name: Ssh Serializable V1 deserialize should not encrypt publicKey fields
Error Details: Cannot read property 'password' of undefined
Stack Trace: TypeError: Cannot read property 'password' of undefined
at SshFactory.Ssh.deserialize (lib/serializables/v1/ssh.js:9:2029)
at Context.<anonymous> (spec/lib/serializables/v1/ssh-spec.js:154:33)

@JenkinsRHD
Copy link
Contributor

BUILD on-http #3120 : FAILURE

BUILD unit-tests #11145 Error Logs ▼Test Name: 2.0 Http.Api.Nodes GET /nodes/:identifier/ssh should return a list of the node's ssh settings Error Details: Cannot read property 'findAllByNode' of undefined Stack Trace: TypeError: Cannot read property 'findAllByNode' of undefined at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:383:27)

Test Name: 2.0 Http.Api.Nodes GET /nodes/:identifier/ssh should return a 404 if the node has no ssh settings
Error Details: Cannot read property 'findAllByNode' of undefined
Stack Trace: TypeError: Cannot read property 'findAllByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:400:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should replace existing settings with a new set of ssh settings
Error Details: Cannot read property 'upsertByNode' of undefined
Stack Trace: TypeError: Cannot read property 'upsertByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:436:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should add a new set of ssh settings if none exist
Error Details: Cannot read property 'upsertByNode' of undefined
Stack Trace: TypeError: Cannot read property 'upsertByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:449:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should return a 404 if the node was not found
Error Details: expected 404 "Not Found", got 400 "Bad Request" Response body: { message: '&#34;ssh-ibm-service.json#/definitions/Ibm is not loaded&#34;', status: '400', UUID: '4e54aadd-3a03-48a8-9f95-a9d0064ab5ad' } Error: expected 404 "Not Found", got 400 "Bad Request" at Test._assertStatus (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:247:11) at Test.assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:148:18) at assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:127:12) at /home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build/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:921:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickDomainCallback (node.js:397:17)
Stack Trace: Error: expected 404 "Not Found", 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:921:12)

Test Name: Http.Api.Ibms /api/2.0/ibms/definitions should get the ssh IBM schema
Error Details: expected 200 "OK", got 404 "Not Found" Response body: { message: '/api/2.0/ibms/definitions/ssh-ibm-service.json Not Found', status: '404', UUID: 'd918bd06-7836-4337-8f2e-2fa8cfb2f62a' } Error: expected 200 "OK", got 404 "Not Found" at Test._assertStatus (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:232:12) at Test._assertFunction (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:247:11) at Test.assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:148:18) at assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:127:12) at /home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:124:5 at Test.Request.callback (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3) at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build/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:921:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickDomainCallback (node.js:397:17)
Stack Trace: Error: expected 200 "OK", got 404 "Not Found"
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:921:12)

Test Name: Http.Api.Ibms /api/2.0/ibms should return a list of IBM instances
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:106:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should put an IBM instance
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:121:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should 400 when put with unloaded schema
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:133:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should 400 when put with missing field
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:145:26)

Test Name: Http.Api.Ibms /api/2.0/ibms/:id "before each" hook for "should get an IBM instance"
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:160:19)

Test Name: Http.Api.Ibms /api/2.0/ibms/:id "after each" hook for "should get an IBM instance"
Error Details: Cannot read property 'needByIdentifier' of undefined
Stack Trace: TypeError: Cannot read property 'needByIdentifier' of undefined
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:166:27)

Test Name: Ssh Serializable V1 deserialize should fail on a bad host/community key schema
Error Details: expected promise to be rejected with an error matching /SchemaError/ but it was fulfilled with { Object (config) }
Stack Trace: AssertionError: expected promise to be rejected with an error matching /SchemaError/ but it was fulfilled with { Object (config) }

Test Name: Ssh Serializable V1 deserialize should fail on a bad host/community key schema
Error Details: Not a string or buffer
Stack Trace: TypeError: Not a string or buffer
at TypeError (native)
at Cipheriv.Cipher.update (crypto.js:140:26)
at Encryption.encrypt (node_modules/on-core/lib/common/encryption.js:40:20)
at EncryptionService.encrypt (node_modules/on-core/lib/services/encryption.js:25:36)
at SnmpFactory.Snmp.deserialize (lib/serializables/v1/snmp.js:9:1407)
at Context.<anonymous> (spec/lib/serializables/v1/snpm-spec.js:68:33)

Test Name: Ssh Serializable V1 deserialize should not encrypt publicKey fields
Error Details: Cannot read property 'password' of undefined
Stack Trace: TypeError: Cannot read property 'password' of undefined
at SshFactory.Ssh.deserialize (lib/serializables/v1/ssh.js:9:2029)
at Context.<anonymous> (spec/lib/serializables/v1/ssh-spec.js:154:33)

Test Name: Node Serializable V1 serialize should redact snmpSettings community
Error Details: Cannot set property 'community' of undefined
Stack Trace: TypeError: Cannot set property 'community' of undefined
at SnmpFactory.Snmp.serialize (lib/serializables/v1/snmp.js:9:1071)
at lib/serializables/v1/node.js:9:3356
at bound (domain.js:287:14)
at runBound (domain.js:300:12)
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

Test Name: Node Serializable V1 deserialize should encrypt snmpSettings community
Error Details: Cannot read property 'community' of undefined
Stack Trace: TypeError: Cannot read property 'community' of undefined
at SnmpFactory.Snmp.deserialize (lib/serializables/v1/snmp.js:9:1426)
at lib/serializables/v1/node.js:9:4161
at bound (domain.js:287:14)
at runBound (domain.js:300:12)
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

@JenkinsRHD
Copy link
Contributor

BUILD on-http #3158 : FAILURE

BUILD unit-tests #11355 Error Logs ▼Test Name: Http.Api.Ibms /api/2.0/ibms should return a list of IBM instances Error Details: Should wrap property of object Stack Trace: TypeError: Should wrap property of object at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23) at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26) at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:106:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should put an IBM instance
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:121:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should 400 when put with unloaded schema
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:133:26)

Test Name: Http.Api.Ibms /api/2.0/ibms should 400 when put with missing field
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:145:26)

Test Name: Http.Api.Ibms /api/2.0/ibms/:id "before each" hook for "should get an IBM instance"
Error Details: Should wrap property of object
Stack Trace: TypeError: Should wrap property of object
at Object.wrapMethod (node_modules/sinon/lib/sinon/util/core.js:67:23)
at Object.stub (node_modules/sinon/lib/sinon/stub.js:61:26)
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:160:19)

Test Name: Http.Api.Ibms /api/2.0/ibms/:id "after each" hook for "should get an IBM instance"
Error Details: Cannot read property 'needByIdentifier' of undefined
Stack Trace: TypeError: Cannot read property 'needByIdentifier' of undefined
at Context.<anonymous> (spec/lib/api/2.0/ibms-spec.js:166:27)

Test Name: 2.0 Http.Api.Nodes GET /nodes/:identifier/ssh should return a list of the node's ssh settings
Error Details: Cannot read property 'findAllByNode' of undefined
Stack Trace: TypeError: Cannot read property 'findAllByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:383:27)

Test Name: 2.0 Http.Api.Nodes GET /nodes/:identifier/ssh should return a 404 if the node has no ssh settings
Error Details: Cannot read property 'findAllByNode' of undefined
Stack Trace: TypeError: Cannot read property 'findAllByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:400:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should replace existing settings with a new set of ssh settings
Error Details: Cannot read property 'upsertByNode' of undefined
Stack Trace: TypeError: Cannot read property 'upsertByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:436:27)

Test Name: 2.0 Http.Api.Nodes POST /nodes/:identifier/ssh should add a new set of ssh settings if none exist
Error Details: Cannot read property 'upsertByNode' of undefined
Stack Trace: TypeError: Cannot read property 'upsertByNode' of undefined
at Context.<anonymous> (spec/lib/api/2.0/nodes-spec.js:449:27)

Test Name: Node Serializable V1 serialize should redact snmpSettings community
Error Details: Cannot set property 'community' of undefined
Stack Trace: TypeError: Cannot set property 'community' of undefined
at SnmpFactory.Snmp.serialize (lib/serializables/v1/snmp.js:9:1071)
at lib/serializables/v1/node.js:9:3356
at bound (domain.js:287:14)
at runBound (domain.js:300:12)
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

Test Name: Node Serializable V1 deserialize should encrypt snmpSettings community
Error Details: Cannot read property 'community' of undefined
Stack Trace: TypeError: Cannot read property 'community' of undefined
at SnmpFactory.Snmp.deserialize (lib/serializables/v1/snmp.js:9:1426)
at lib/serializables/v1/node.js:9:4161
at bound (domain.js:287:14)
at runBound (domain.js:300:12)
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

Test Name: Ssh Serializable V1 deserialize should fail on a bad host/community key schema
Error Details: expected promise to be rejected with an error matching /SchemaError/ but it was fulfilled with { Object (config) }
Stack Trace: AssertionError: expected promise to be rejected with an error matching /SchemaError/ but it was fulfilled with { Object (config) }

Test Name: Ssh Serializable V1 deserialize should fail on a bad host/community key schema
Error Details: Not a string or buffer
Stack Trace: TypeError: Not a string or buffer
at TypeError (native)
at Cipheriv.Cipher.update (crypto.js:140:26)
at Encryption.encrypt (node_modules/on-core/lib/common/encryption.js:40:20)
at EncryptionService.encrypt (node_modules/on-core/lib/services/encryption.js:25:36)
at SnmpFactory.Snmp.deserialize (lib/serializables/v1/snmp.js:9:1407)
at Context.<anonymous> (spec/lib/serializables/v1/snpm-spec.js:68:33)

Test Name: Ssh Serializable V1 deserialize should not encrypt publicKey fields
Error Details: Cannot read property 'password' of undefined
Stack Trace: TypeError: Cannot read property 'password' of undefined
at SshFactory.Ssh.deserialize (lib/serializables/v1/ssh.js:9:2029)
at Context.<anonymous> (spec/lib/serializables/v1/ssh-spec.js:154:33)

Copy link
Contributor

@brianparry brianparry left a comment

Choose a reason for hiding this comment

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

👍

@brianparry brianparry merged commit 6433f56 into RackHD:feature/ibms Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants