Skip to content

Commit

Permalink
test: working through UTs
Browse files Browse the repository at this point in the history
* test: working through UTs

* test: all UTs passing when run individually

* test: attempt to remove sandbox - before

* test: move TestContext setup into describes

* chore: renable UTs in GHA

* test: remove sinon.createSandbox calls

* test: use 3762.stubConfig instead of push -o

* test: convert 1 ut to new style

* feat: deprecate and remove migrated commands

* refactor: devScripts update (#747)

* chore: updates from devScripts

* test: cheaper ci

* fix(deps): bump all the deps

* chore: lockfile dedupe

---------

Co-authored-by: mshanemc <[email protected]>

* fix(deps): bump jsforce from 2.0.0-beta.19 to 2.0.0-beta.20 (#745)

Bumps [jsforce](https://github.com/jsforce/jsforce) from 2.0.0-beta.19 to 2.0.0-beta.20.
- [Release notes](https://github.com/jsforce/jsforce/releases)
- [Changelog](https://github.com/jsforce/jsforce/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsforce/jsforce/commits)

---
updated-dependencies:
- dependency-name: jsforce
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): 2.5.5 [skip ci]

* chore(dev-deps): bump @typescript-eslint/parser from 5.49.0 to 5.54.0 (#753)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.49.0 to 5.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(dev-deps): bump prettier from 2.8.3 to 2.8.4 (#752)

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.3 to 2.8.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.3...2.8.4)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(dev-deps): bump @oclif/plugin-help from 5.2.2 to 5.2.6 (#751)

Bumps [@oclif/plugin-help](https://github.com/oclif/plugin-help) from 5.2.2 to 5.2.6.
- [Release notes](https://github.com/oclif/plugin-help/releases)
- [Changelog](https://github.com/oclif/plugin-help/blob/main/CHANGELOG.md)
- [Commits](oclif/plugin-help@5.2.2...5.2.6)

---
updated-dependencies:
- dependency-name: "@oclif/plugin-help"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* test: update tracking nuts for e-bikes changes

* test: update tracking nuts for e-bikes changes

* chore(dev-deps): bump @salesforce/plugin-templates from 55.1.0 to 55.4.4 (#750)

Bumps [@salesforce/plugin-templates](https://github.com/salesforcecli/plugin-templates) from 55.1.0 to 55.4.4.
- [Release notes](https://github.com/salesforcecli/plugin-templates/releases)
- [Changelog](https://github.com/salesforcecli/plugin-templates/blob/main/CHANGELOG.md)
- [Commits](https://github.com/salesforcecli/plugin-templates/commits/55.4.4)

---
updated-dependencies:
- dependency-name: "@salesforce/plugin-templates"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: delete everything that's been moved to PDR

* chore: deprecate commands, remove ones moved to PDR

* feat: get types from sdr registry

* feat: get types from sdr registry

* test: only assert require properties

* chore(release): 2.6.0 [skip ci]

* chore(dev-deps): bump @salesforce/cli-plugins-testkit (#761)

Bumps [@salesforce/cli-plugins-testkit](https://github.com/salesforcecli/cli-plugins-testkit) from 3.2.23 to 3.2.24.
- [Release notes](https://github.com/salesforcecli/cli-plugins-testkit/releases)
- [Changelog](https://github.com/salesforcecli/cli-plugins-testkit/blob/main/CHANGELOG.md)
- [Commits](salesforcecli/cli-plugins-testkit@3.2.23...3.2.24)

---
updated-dependencies:
- dependency-name: "@salesforce/cli-plugins-testkit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @sideway/formula in /test/nuts/nestedLWCProject (#763)

Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](hapijs/formula@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: "@sideway/formula"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(dev-deps): bump @salesforce/plugin-info from 2.4.2 to 2.5.1 (#760)

Bumps [@salesforce/plugin-info](https://github.com/salesforcecli/plugin-info) from 2.4.2 to 2.5.1.
- [Release notes](https://github.com/salesforcecli/plugin-info/releases)
- [Changelog](https://github.com/salesforcecli/plugin-info/blob/main/CHANGELOG.md)
- [Commits](salesforcecli/plugin-info@2.4.2...2.5.1)

---
updated-dependencies:
- dependency-name: "@salesforce/plugin-info"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(deps): bump @salesforce/source-deploy-retrieve from 7.11.0 to 7.11.3 (#759)

Bumps [@salesforce/source-deploy-retrieve](https://github.com/forcedotcom/source-deploy-retrieve) from 7.11.0 to 7.11.3.
- [Release notes](https://github.com/forcedotcom/source-deploy-retrieve/releases)
- [Changelog](https://github.com/forcedotcom/source-deploy-retrieve/blob/main/CHANGELOG.md)
- [Commits](forcedotcom/source-deploy-retrieve@7.11.0...7.11.3)

---
updated-dependencies:
- dependency-name: "@salesforce/source-deploy-retrieve"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): 2.6.1 [skip ci]

* fix(deps): bump @salesforce/source-tracking from 2.2.22 to 2.2.24 (#764)

Bumps [@salesforce/source-tracking](https://github.com/forcedotcom/source-tracking) from 2.2.22 to 2.2.24.
- [Release notes](https://github.com/forcedotcom/source-tracking/releases)
- [Changelog](https://github.com/forcedotcom/source-tracking/blob/main/CHANGELOG.md)
- [Commits](forcedotcom/source-tracking@2.2.22...2.2.24)

---
updated-dependencies:
- dependency-name: "@salesforce/source-tracking"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): 2.6.2 [skip ci]

* feat: verbose deploys without progress bar update with each poll (#757)

* chore(release): 2.7.0 [skip ci]

* feat: remove force:source:open command, now in plugin-org

* feat: remove force:source:open command, now in plugin-org

* chore: move mdapi:describemetadata and mdapi:listmetadata to plugin-org

---------

Co-authored-by: mshanemc <[email protected]>

* chore(release): 2.8.0 [skip ci]

* test: align tests with pjson

* test: there are no delete nuts

* test: specify cli for manifest generation

* test: unskip a test

* test: use sfdx for convert

* test: mock project because cwd

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: mshanemc <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>

* refactor: move deprecation warnings to messages

* feat: remove beta aliases

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: mshanemc <[email protected]>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>
  • Loading branch information
6 people authored Mar 17, 2023
1 parent f7afc2d commit c242643
Show file tree
Hide file tree
Showing 93 changed files with 1,241 additions and 5,923 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,29 @@ jobs:
yarn-lockfile-check:
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
# Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs
# linux-unit-tests:
# needs: yarn-lockfile-check
# uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
# windows-unit-tests:
# needs: linux-unit-tests
# uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
linux-unit-tests:
needs: yarn-lockfile-check
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
windows-unit-tests:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
nuts:
# needs: linux-unit-tests
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
secrets: inherit
strategy:
matrix:
os: [ubuntu-20-8core, windows-2022-16core]
os: [ubuntu-latest, windows-latest]
command:
- 'yarn test:nuts:convert'
- 'yarn test:nuts:commands:other'
- 'yarn test:nuts:delete'
- 'yarn test:nuts:deploy'
- 'yarn test:nuts:deploy:async'
- 'yarn test:nuts:deploy:destructive'
- 'yarn test:nuts:deploy:rest'
- 'yarn test:nuts:manifest:create'
- 'yarn test:nuts:mdapi'
- 'yarn test:nuts:retrieve'
- 'yarn test:nuts:specialTypes'
- 'yarn test:nuts:deploy:destructive'
- 'yarn test:nuts:tracking'
- 'yarn test:nuts:mdapi'
fail-fast: false
with:
os: ${{ matrix.os }}
Expand Down
720 changes: 164 additions & 556 deletions CHANGELOG.md

Large diffs are not rendered by default.

83 changes: 6 additions & 77 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"flags": ["json"],
"alias": []
},
{
"command": "force:mdapi:convert",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "json", "loglevel", "manifest", "metadata", "metadatapath", "outputdir", "rootdir"],
"alias": ["force:mdapi:beta:convert"]
},
{
"command": "force:mdapi:deploy",
"plugin": "@salesforce/plugin-source",
Expand All @@ -37,7 +31,7 @@
"wait",
"zipfile"
],
"alias": ["force:mdapi:beta:deploy"]
"alias": []
},
{
"command": "force:mdapi:deploy:cancel",
Expand All @@ -61,7 +55,7 @@
"verbose",
"wait"
],
"alias": ["force:mdapi:beta:deploy:report"]
"alias": []
},
{
"command": "force:mdapi:retrieve",
Expand All @@ -81,7 +75,7 @@
"wait",
"zipfilename"
],
"alias": ["force:mdapi:beta:retrieve"]
"alias": []
},
{
"command": "force:mdapi:retrieve:report",
Expand All @@ -98,42 +92,6 @@
"wait",
"zipfilename"
],
"alias": ["force:mdapi:beta:retrieve:report"]
},
{
"command": "force:source:convert",
"plugin": "@salesforce/plugin-source",
"flags": [
"api-version",
"json",
"loglevel",
"manifest",
"metadata",
"outputdir",
"packagename",
"rootdir",
"sourcepath"
],
"alias": []
},
{
"command": "force:source:delete",
"plugin": "@salesforce/plugin-source",
"flags": [
"api-version",
"checkonly",
"forceoverwrite",
"json",
"loglevel",
"metadata",
"noprompt",
"sourcepath",
"target-org",
"testlevel",
"tracksource",
"verbose",
"wait"
],
"alias": []
},
{
Expand Down Expand Up @@ -196,34 +154,17 @@
"flags": ["json", "sourcepath"],
"alias": []
},
{
"command": "force:source:manifest:create",
"plugin": "@salesforce/plugin-source",
"flags": [
"api-version",
"fromorg",
"includepackages",
"json",
"loglevel",
"manifestname",
"manifesttype",
"metadata",
"outputdir",
"sourcepath"
],
"alias": []
},
{
"command": "force:source:pull",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "forceoverwrite", "json", "loglevel", "target-org", "verbose", "wait"],
"alias": ["force:source:beta:pull"]
"alias": []
},
{
"command": "force:source:push",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "forceoverwrite", "ignorewarnings", "json", "loglevel", "quiet", "target-org", "wait"],
"alias": ["force:source:beta:push"]
"alias": []
},
{
"command": "force:source:retrieve",
Expand All @@ -250,18 +191,6 @@
"command": "force:source:status",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "concise", "json", "local", "loglevel", "remote", "target-org"],
"alias": ["force:source:beta:status"]
},
{
"command": "force:source:tracking:clear",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "json", "loglevel", "noprompt", "target-org"],
"alias": ["force:source:beta:tracking:clear"]
},
{
"command": "force:source:tracking:reset",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "json", "loglevel", "noprompt", "revision", "target-org"],
"alias": ["force:source:beta:tracking:reset"]
"alias": []
}
]
4 changes: 4 additions & 0 deletions messages/cancel.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ Number of minutes to wait for the command to complete and display results to the
# CancelFailed

The cancel command failed due to: %s

# deprecation

The '<%= command.id %>' command will be deprecated. Try using the %s command instead.
60 changes: 0 additions & 60 deletions messages/convert.md

This file was deleted.

61 changes: 0 additions & 61 deletions messages/create.md

This file was deleted.

Loading

0 comments on commit c242643

Please sign in to comment.