-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1290 from contentstack/staging
Sprint 51 Release
- Loading branch information
Showing
70 changed files
with
565 additions
and
734 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ import { authHandler, interactive } from '../../src/utils'; | |
import { CLIError, cliux } from '@contentstack/cli-utilities'; | ||
import { User } from '../../src/interfaces'; | ||
|
||
const user: User = { email: '***REMOVED***', authtoken: 'testtoken' }; | ||
const credentials = { email: '***REMOVED***', password: 'testpassword' }; | ||
const invalidCredentials = { email: '***REMOVED***', password: 'invalidpassword' }; | ||
const user: User = { email: '[email protected]', authtoken: 'testtoken' }; | ||
const credentials = { email: '[email protected]', password: 'testpassword' }; | ||
const invalidCredentials = { email: '[email protected]', password: 'invalidpassword' }; | ||
let TFAEnabled = false; | ||
let TFAChannel = 'authy'; | ||
const TFATestToken = '24563992'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ import { configHandler, cliux } from '@contentstack/cli-utilities'; | |
|
||
const config = configHandler; | ||
|
||
const user = { email: '***REMOVED***', authtoken: 'testtoken' }; | ||
const credentials = { email: '***REMOVED***', password: 'testpassword' }; | ||
const invalidCredentials = { email: '***REMOVED***', password: 'invalidpassword' }; | ||
const user = { email: '[email protected]', authtoken: 'testtoken' }; | ||
const credentials = { email: '[email protected]', password: 'testpassword' }; | ||
const invalidCredentials = { email: '[email protected]', password: 'invalidpassword' }; | ||
const TFATestToken = '24563992'; | ||
|
||
describe('Login Command', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import LogoutCommand from '../../../src/commands/auth/logout'; | |
import { authHandler } from '../../../src/utils'; | ||
import { CLIError, cliux } from '@contentstack/cli-utilities'; | ||
|
||
const user = { email: '***REMOVED***', authtoken: 'testtoken' }; | ||
const user = { email: '[email protected]', authtoken: 'testtoken' }; | ||
const validAuthToken = 'bltadjkjdkjfd'; | ||
|
||
describe('Logout Command', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ describe('Whoami Command', () => { | |
let getEmailStub; | ||
before(function () { | ||
getEmailStub = sinon.stub(WhoamiCommand.prototype, 'email').get(function getterFn() { | ||
return '***REMOVED***'; | ||
return '[email protected]'; | ||
}); | ||
}); | ||
|
||
|
@@ -17,7 +17,7 @@ describe('Whoami Command', () => { | |
|
||
it('Logged in user, displays the username', async function () { | ||
const getEmailStub = sinon.stub(WhoamiCommand.prototype, 'email').get(function getterFn() { | ||
return '***REMOVED***'; | ||
return '[email protected]'; | ||
}); | ||
const successMessageStub = sinon.stub(cliux, 'print').returns(); | ||
await WhoamiCommand.run([]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.