|
|
@@ -168,7 +168,8 @@ describe('TokenAccess', function() {
|
|
|
this.other1,
|
|
|
this.projectId,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -286,7 +287,8 @@ describe('TokenAccess', function() {
|
|
|
this.other1,
|
|
|
this.projectId,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -401,7 +403,8 @@ describe('TokenAccess', function() {
|
|
|
this.projectId,
|
|
|
this.tokens.readOnly,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -518,7 +521,8 @@ describe('TokenAccess', function() {
|
|
|
this.other1,
|
|
|
this.projectId,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -585,7 +589,8 @@ describe('TokenAccess', function() {
|
|
|
this.projectId,
|
|
|
this.tokens.readAndWrite,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -690,7 +695,8 @@ describe('TokenAccess', function() {
|
|
|
this.projectId,
|
|
|
this.tokens.readAndWrite,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -771,7 +777,8 @@ describe('TokenAccess', function() {
|
|
|
this.other2,
|
|
|
this.projectId,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|
|
|
@@ -865,7 +872,8 @@ describe('TokenAccess', function() {
|
|
|
this.other2,
|
|
|
this.projectId,
|
|
|
(response, body) => {
|
|
|
- expect(body.privilegeLevel).to.equal(false)
|
|
|
+ expect(response.statusCode).to.equal(403)
|
|
|
+ expect(body).to.equal('Forbidden')
|
|
|
},
|
|
|
cb
|
|
|
)
|