generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: nuts on circle * test: orb, take 2 * chore: bump core version to get password fix * test: remove call-count checks (core changed) * chore: bump core version lockfile * test: bump orb to re-test 2 * test: iterator to re-run circle * test: run nuts on windows * test: restore linux nut label * test: re-run to try new windows job * test: add windows as os parameter * test: remove parameters * test: verify orb runs without windows * test: nut try 5 * test: nuts without windows * test: nut with windows * chore: bump prettier for windows EOL * test: yarn install 2x for dev-scripts * chore: bump dev-scripts * chore: bump prettier AFTER dev-scripts * chore: bump mocha * test: windows-friendly paths * chore: bump setPassword to feature * test: are homeDir unique? * test: run only one nut (windows home test) * chore: bump testkit for windows fix * chore: reinstall node modules * test: resume skipped tests (check windows parallel) * test: saving artifacts * test: save zip to artifacts relative * test: windows debugging artifacts * test: also debug linux for comparison * test: nut version, debug * test: no env in config * test: test windows path fix in nut * test: artifacts folder in home * test: remove os import * test: revert to artifacts (linux only) * test: with setupCommands * test: try/catch on the zip * test: remove unused import * test: comit to cause a run after PR * test: depend on env to control zips * test: change to trigger run * chore: bumps lockfile * test: environment in job? * test: no env in job * test: with env set on linux * test: clean up * test: don't require nuts on publish job * refactor: typing on NUTs * test: use published orb with nuts * test: add version * test: rerun circle with orb nuts
- Loading branch information
Showing
9 changed files
with
355 additions
and
317 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ import UserCreateCommand from '../../../src/commands/force/user/create'; | |
const username = '[email protected]'; | ||
|
||
describe('force:user:create', () => { | ||
let authInfoStub; | ||
it('will properly merge fields regardless of capitalization', async () => { | ||
// notice the varied capitalization | ||
stubMethod($$.SANDBOX, fs, 'readJson').resolves({ | ||
|
@@ -87,7 +86,7 @@ describe('force:user:create', () => { | |
stubMethod($$.SANDBOX, User.prototype, 'assignPermissionSets').resolves(); | ||
stubMethod($$.SANDBOX, Org.prototype, 'getUsername').returns(username); | ||
stubMethod($$.SANDBOX, Org.prototype, 'getOrgId').returns('abc123'); | ||
authInfoStub = stubMethod($$.SANDBOX, AuthInfo.prototype, 'save').resolves(); | ||
stubMethod($$.SANDBOX, AuthInfo.prototype, 'save').resolves(); | ||
|
||
if (throws.license) { | ||
stubMethod($$.SANDBOX, User.prototype, 'createUser').throws(new Error('LICENSE_LIMIT_EXCEEDED')); | ||
|
@@ -144,7 +143,6 @@ describe('force:user:create', () => { | |
}; | ||
const result = JSON.parse(ctx.stdout).result; | ||
expect(result).to.deep.equal(expected); | ||
expect(authInfoStub.callCount).to.be.equal(2); | ||
}); | ||
|
||
test | ||
|
@@ -184,7 +182,6 @@ describe('force:user:create', () => { | |
}; | ||
const result = JSON.parse(ctx.stdout).result; | ||
expect(result).to.deep.equal(expected); | ||
expect(authInfoStub.callCount).to.be.equal(1); | ||
}); | ||
|
||
test | ||
|
@@ -219,7 +216,6 @@ describe('force:user:create', () => { | |
}; | ||
const result = JSON.parse(ctx.stdout).result; | ||
expect(result).to.deep.equal(expected); | ||
expect(authInfoStub.callCount).to.be.equal(0); | ||
}); | ||
|
||
test | ||
|
@@ -260,7 +256,6 @@ describe('force:user:create', () => { | |
}; | ||
const result = JSON.parse(ctx.stdout).result; | ||
expect(result).to.deep.equal(expected); | ||
expect(authInfoStub.callCount).to.be.equal(0); | ||
}); | ||
|
||
test | ||
|
@@ -307,7 +302,6 @@ describe('force:user:create', () => { | |
}; | ||
const result = JSON.parse(ctx.stdout).result; | ||
expect(result).to.deep.equal(expected); | ||
expect(authInfoStub.callCount).to.be.equal(1); | ||
} | ||
); | ||
|
||
|
@@ -329,7 +323,6 @@ describe('force:user:create', () => { | |
expect(result.status).to.equal(1); | ||
expect(result.message).to.equal('There are no available user licenses for the user profile "testName".'); | ||
expect(result.name).to.equal('licenseLimitExceeded'); | ||
expect(authInfoStub.callCount).to.be.equal(0); | ||
}); | ||
|
||
test | ||
|
@@ -349,7 +342,6 @@ describe('force:user:create', () => { | |
const result = JSON.parse(ctx.stdout); | ||
expect(result.status).to.equal(1); | ||
expect(result.name).to.equal('duplicateUsername'); | ||
expect(authInfoStub.callCount).to.be.equal(0); | ||
expect(result.message).to.equal( | ||
'The username "[email protected]" already exists in this or another Salesforce org. Usernames must be unique across all Salesforce orgs.' | ||
); | ||
|
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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
{ | ||
"orgName": "workshops", | ||
"orgName": "nutPluginUser", | ||
"adminEmail": "[email protected]", | ||
"edition": "Developer", | ||
"description": "app building workshop", | ||
"description": "nuts for plugin-user", | ||
"features": ["EnableSetPasswordInApi"], | ||
"settings": { | ||
"lightningExperienceSettings": { | ||
"enableS1DesktopEnabled": true | ||
}, | ||
"mobileSettings": { | ||
"enableS1EncryptedStoragePref2": false | ||
}, | ||
"securitySettings": { | ||
"passwordPolicies": { | ||
"enableSetPasswordInApi": true | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.