Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Feb 3, 2020
1 parent 6b4e4a4 commit dea27a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ matrix:
packages:
- g++-4.8
- python3-pip
- python3.5
before_script:
- |-
wget -q ${HELM_URL}/${HELM_TGZ}
Expand Down
8 changes: 4 additions & 4 deletions microservices/requestApi/test/v1/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ describe("Requests", function() {
res.body.should.have.property('result');
res.body.result.should.have.property('_id');
activeRequestId = res.body.result._id;
validTopicId = res.body.result.topic_id;
validTopicId = res.body.result.topic;
done();
});
});
Expand All @@ -214,7 +214,7 @@ describe("Requests", function() {
describe('/GET v1 & v1/requestId', function () {
it('it should get requests', function (done) {
chai.request(server)
.get('/v1?limit=1&page=1&name=testName' )
.get('/v1?limit=1&page=1&name=testName&topic_id=' + validTopicId + '&type=export' )
.set("Authorization", "Bearer " + jwt)
.end(function (err, res) {
console.log('GET REQUESTS ', res.body);
Expand Down Expand Up @@ -463,7 +463,7 @@ describe("Requests", function() {
.post('/v1/')
.set("Authorization", "Bearer " + jwt)
.send({
name: "testNameX",
name: "testNameX234",
tags: ["test"],
purpose: "purpose",
phoneNumber: "555-555-5555",
Expand All @@ -489,7 +489,7 @@ describe("Requests", function() {
.set("Authorization", "Bearer " + jwt)
.send({})
.end(function (err2, res2) {
console.log("EXPECTED FAIL", res2.body);
console.log("EXPECTED FAIL", r, res2.body);
res2.should.have.status(403);
res2.body.should.be.a('object');
res2.body.should.have.property('error');
Expand Down

0 comments on commit dea27a1

Please sign in to comment.