Skip to content

Conversation

@brianparry
Copy link
Contributor

This change includes the following methods/routes. @srinia6 will be submitting a follow-on PR with unit tests for these routes.

  • GET /pollers/library
  • GET /pollers/library/{identifier}
  • GET /pollers
  • GET /pollers/{identifier}
  • POST /pollers
  • PATCH /pollers/{identifier}
  • DELETE /pollers/{identifier}
  • PATCH /pollers/{identifier}/pause
  • PATCH /pollers/{identifier}/resume
  • GET /pollers/{identifier}/data
  • GET /pollers/{identifier}/data/current

* GET /pollers/library
* GET /pollers/library/{identifier}
* GET /pollers
* GET /pollers/{identifier}
* POST /pollers
* PATCH /pollers/{identifier}
* DELETE /pollers/{identifier}
* PATCH /pollers/{identifier}/pause
* PATCH /pollers/{identifier}/resume
* GET /pollers/{identifier}/data
* GET /pollers/{identifier}/data/current
body: mockData
};
var res = {};
var mockError = new Error('deserializer error');

Choose a reason for hiding this comment

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

'mockError' is already defined.

Choose a reason for hiding this comment

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

'mockError' is already defined.

@brianparry
Copy link
Contributor Author

Coverage should improve when @srinia6 submits her PR with unit tests.

@brianparry
Copy link
Contributor Author

@RackHD/corecommitters @geoff-reid @srinia6 @dalebremner @abildw

@jlongever
Copy link
Contributor

@brianparry Will there be any functional tests created for these new APIs?

@brianparry
Copy link
Contributor Author

@jlongever Yes. We're planning to start creating functional tests for all of the 2.0 routes soon. We added some test stories to our backlog on Friday. I expect we will start working on them next sprint.

@@ -0,0 +1,79 @@
// Copyright 2015, EMC, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

created on 2015 or 2016 ?

@dalebremner
Copy link
Contributor

👍

1 similar comment
@yyscamper
Copy link
Contributor

👍

body: mockData
};
var res = {};
var mockError = new Error('deserializer error');

Choose a reason for hiding this comment

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

'mockError' is already defined.

@srinia6 srinia6 force-pushed the feature/swagger-pollers-route branch from acb31b4 to 6307b77 Compare February 16, 2016 14:29
@JenkinsRHD
Copy link
Contributor

*** BUILD #384 ***
Test Name: Http.Api.Pollers POST /pollers afterwards "before each" hook for "should contain the new poller in GET /pollers"
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'SchemaError: JSON Schema Violation' } Error: expected 200 "OK", got 400 "Bad Request"     at Test.assert (/var/lib/jenkins/jobs/on-http/workspace/build/node_modules/supertest/lib/test.js:205:15)     at assert (/var/lib/jenkins/jobs/on-http/workspace/build/node_modules/supertest/lib/test.js:132:12)     at /var/lib/jenkins/jobs/on-http/workspace/build/node_modules/supertest/lib/test.js:129:5     at Test.Request.callback (/var/lib/jenkins/jobs/on-http/workspace/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:746:30)     at Test.<anonymous> (/var/lib/jenkins/jobs/on-http/workspace/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:135:10)     at Test.EventEmitter.emit (events.js:95:17)     at IncomingMessage.<anonymous> (/var/lib/jenkins/jobs/on-http/workspace/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:938:12)     at IncomingMessage.EventEmitter.emit (events.js:117:20)     at _stream_readable.js:920:16     at process._tickDomainCallback (node.js:459:13)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
    at Test.assert (node_modules/supertest/lib/test.js:205:15)
    at assert (node_modules/supertest/lib/test.js:132:12)
    at node_modules/supertest/lib/test.js:129:5
    at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:746:30)
    at Test.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:135:10)
    at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:938:12)
    at _stream_readable.js:920:16

@JenkinsRHD
Copy link
Contributor

*** BUILD #385 ***
Test Name: Redfish Chassis Root "before all" hook: start HTTP server
Error Details: timeout of 5000ms exceeded. Ensure the done() callback is being called in this test.
Stack Trace: Error: timeout of 5000ms exceeded. Ensure the done() callback is being called in this test.
    at b (domain.js:183:18)
    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:507:31)
    at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (node_modules/on-core/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
    at Async.drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)

@srinia6
Copy link
Contributor

srinia6 commented Feb 16, 2016

test this please

@jlongever
Copy link
Contributor

+1

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.

8 participants