Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
REST server: remove expires in JWT payload of unit test (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhut authored Mar 4, 2019
1 parent 659e155 commit f62b1bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rest-server/test/jobExecutionType.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('Job execution type API /api/v1/user/:username/jobs/:jobName/executionT
it('should stop job successfully', (done) => {
chai.request(server)
.put('/api/v1/user/iamadmin/jobs/test1/executionType')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OSwiZXhwIjoxNTUxNjgzODk5fQ.GniwMY_1L5n3crjV3u6G54KmaUv_OW5dHLwHlIt6IxE')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OX0.Dwopr33c_OV6glaN3vbM1Ja_Ox70xABigHzHnEsNsYw')
.send({
'value': 'STOP',
})
Expand All @@ -122,7 +122,7 @@ describe('Job execution type API /api/v1/user/:username/jobs/:jobName/executionT
it('admin should stop other user\'s job successfully', (done) => {
chai.request(server)
.put('/api/v1/user/test2/jobs/test2/executionType')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OSwiZXhwIjoxNTUxNjgzODk5fQ.GniwMY_1L5n3crjV3u6G54KmaUv_OW5dHLwHlIt6IxE')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OX0.Dwopr33c_OV6glaN3vbM1Ja_Ox70xABigHzHnEsNsYw')
.send({
'value': 'STOP',
})
Expand Down Expand Up @@ -151,7 +151,7 @@ describe('Job execution type API /api/v1/user/:username/jobs/:jobName/executionT
it('#909: should check request payload', (done) => {
chai.request(server)
.put('/api/v1/user/iamadmin/jobs/test1/executionType')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OSwiZXhwIjoxNTUxNjgzODk5fQ.GniwMY_1L5n3crjV3u6G54KmaUv_OW5dHLwHlIt6IxE')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OX0.Dwopr33c_OV6glaN3vbM1Ja_Ox70xABigHzHnEsNsYw')
.set('Content-Type', 'text/unknown')
.send('value=STOP')
.end((err, res) => {
Expand Down Expand Up @@ -231,7 +231,7 @@ describe('Job execution type API /api/v1/jobs/:jobName/executionType', () => {
it('can stop job without namespace', (done) => {
chai.request(server)
.put('/api/v1/jobs/test1/executionType')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OSwiZXhwIjoxNTUxNjgzODk5fQ.GniwMY_1L5n3crjV3u6G54KmaUv_OW5dHLwHlIt6IxE')
.set('Authorization', 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImlhbWFkbWluIiwiYWRtaW4iOnRydWUsImlhdCI6MTUyMDU3OTg5OX0.Dwopr33c_OV6glaN3vbM1Ja_Ox70xABigHzHnEsNsYw')
.send({
'value': 'STOP',
})
Expand Down

0 comments on commit f62b1bb

Please sign in to comment.