Skip to content

Commit

Permalink
Fix tests' bug
Browse files Browse the repository at this point in the history
  • Loading branch information
llvieira committed Oct 11, 2017
1 parent 54352bf commit 771292e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/ov-client.js
Expand Up @@ -66,10 +66,10 @@ describe('OVClient', () => {

it('login failure', () => {
nock('https://localhost')
.post('/rest/login-sessions', {userName: 'admin', password: 'password'})
.post('/rest/login-sessions', {"userName": "admin", "password": "password","loginMsgAck": "true"})
.reply(503, {sessionID: ''});
nock('https://localhost2')
.post('/rest/login-sessions', {userName: 'admin', password: 'password'})
.post('/rest/login-sessions', {"userName": "admin", "password": "password","loginMsgAck": "true"})
.reply(503, {sessionID: ''});

return oVClient.login(true).then(() => {
Expand All @@ -82,10 +82,10 @@ describe('OVClient', () => {

it('login success', () => {
nock('https://localhost')
.post('/rest/login-sessions', {userName: 'admin', password: 'password'})
.post('/rest/login-sessions', {"userName": "admin", "password": "password","loginMsgAck": "true"})
.reply(200, {sessionID: 'ASD-1231-asd_Ll'});
nock('https://localhost2')
.post('/rest/login-sessions', {userName: 'admin', password: 'password'})
.post('/rest/login-sessions', {"userName": "admin", "password": "password","loginMsgAck": "true"})
.reply(200, {sessionID: 'ASD-1231-asd_L2'});

return oVClient.login(true).then(() => {
Expand All @@ -96,10 +96,10 @@ describe('OVClient', () => {

it('getAuthToken', () => {
nock('https://localhost')
.post('/rest/login-sessions', {userName: 'admin', password: 'password'})
.post('/rest/login-sessions', {"userName": "admin", "password": "password","loginMsgAck": "true"})
.reply(200, {sessionID: 'ASD-1231-asd_Ll'});
nock('https://localhost2')
.post('/rest/login-sessions', {userName: 'admin', password: 'password'})
.post('/rest/login-sessions', {"userName": "admin", "password": "password","loginMsgAck": "true"})
.reply(200, {sessionID: 'ASD-1231-asd_L2'});

return oVClient.login(true).then(() => {
Expand Down

0 comments on commit 771292e

Please sign in to comment.