mcdev 9.0.2 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/lib/Builder.d.ts +13 -14
- package/@types/lib/Builder.d.ts.map +1 -1
- package/@types/lib/Deployer.d.ts +16 -17
- package/@types/lib/Deployer.d.ts.map +1 -1
- package/@types/lib/MetadataTypeDefinitions.d.ts +4 -0
- package/@types/lib/MetadataTypeDefinitions.d.ts.map +1 -1
- package/@types/lib/MetadataTypeInfo.d.ts +4 -0
- package/@types/lib/MetadataTypeInfo.d.ts.map +1 -1
- package/@types/lib/Retriever.d.ts +16 -21
- package/@types/lib/Retriever.d.ts.map +1 -1
- package/@types/lib/cli.d.ts.map +1 -1
- package/@types/lib/index.d.ts +64 -36
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts +159 -84
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/AttributeGroup.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Automation.d.ts +2 -12
- package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Campaign.d.ts +1 -0
- package/@types/lib/metadataTypes/Campaign.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtension.d.ts +4 -24
- package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionField.d.ts +25 -0
- package/@types/lib/metadataTypes/DataExtensionField.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtract.d.ts +1 -10
- package/@types/lib/metadataTypes/DataExtract.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataFilter.d.ts +6 -19
- package/@types/lib/metadataTypes/DataFilter.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DeliveryProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DomainVerification.d.ts +1 -0
- package/@types/lib/metadataTypes/DomainVerification.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Email.d.ts +0 -2
- package/@types/lib/metadataTypes/Email.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Event.d.ts +6 -16
- package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileTransfer.d.ts +1 -10
- package/@types/lib/metadataTypes/FileTransfer.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Filter.d.ts +1 -1
- package/@types/lib/metadataTypes/Folder.d.ts +4 -4
- package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
- package/@types/lib/metadataTypes/ImportFile.d.ts +2 -12
- package/@types/lib/metadataTypes/ImportFile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +4 -4
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/List.d.ts +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +33 -36
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileApplication.d.ts +189 -0
- package/@types/lib/metadataTypes/MobileApplication.d.ts.map +1 -0
- package/@types/lib/metadataTypes/MobileCode.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileKeyword.d.ts +1 -11
- package/@types/lib/metadataTypes/MobileKeyword.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileMessage.d.ts +23 -1
- package/@types/lib/metadataTypes/MobileMessage.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobilePush.d.ts +407 -0
- package/@types/lib/metadataTypes/MobilePush.d.ts.map +1 -0
- package/@types/lib/metadataTypes/MobilePushApp.d.ts +189 -0
- package/@types/lib/metadataTypes/MobilePushApp.d.ts.map +1 -0
- package/@types/lib/metadataTypes/Query.d.ts +1 -13
- package/@types/lib/metadataTypes/Query.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Script.d.ts +1 -13
- package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
- package/@types/lib/metadataTypes/SenderProfile.d.ts +7 -2
- package/@types/lib/metadataTypes/SenderProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/User.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/Asset.definition.d.ts +51 -41
- package/@types/lib/metadataTypes/definitions/Campaign.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataExtract.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DomainVerification.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/FileTransfer.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Filter.definition.d.ts +1 -1
- package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +2 -0
- package/@types/lib/metadataTypes/definitions/MobileApplication.definition.d.ts +122 -0
- package/@types/lib/metadataTypes/definitions/MobileApplication.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/MobileMessage.definition.d.ts +6 -0
- package/@types/lib/metadataTypes/definitions/MobilePush.definition.d.ts +467 -0
- package/@types/lib/metadataTypes/definitions/MobilePush.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/MobilePushApp.definition.d.ts +122 -0
- package/@types/lib/metadataTypes/definitions/MobilePushApp.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/Query.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/Script.definition.d.ts +1 -0
- package/@types/lib/util/auth.d.ts +30 -23
- package/@types/lib/util/auth.d.ts.map +1 -1
- package/@types/lib/util/cache.d.ts.map +1 -1
- package/@types/lib/util/cli.d.ts.map +1 -1
- package/@types/lib/util/config.d.ts.map +1 -1
- package/@types/lib/util/devops.d.ts +9 -0
- package/@types/lib/util/devops.d.ts.map +1 -1
- package/@types/lib/util/file.d.ts +32 -18
- package/@types/lib/util/file.d.ts.map +1 -1
- package/@types/lib/util/git.d.ts +155 -0
- package/@types/lib/util/git.d.ts.map +1 -0
- package/@types/lib/util/init.config.d.ts +30 -14
- package/@types/lib/util/init.config.d.ts.map +1 -1
- package/@types/lib/util/init.d.ts.map +1 -1
- package/@types/lib/util/init.git.d.ts +10 -0
- package/@types/lib/util/init.git.d.ts.map +1 -1
- package/@types/lib/util/init.npm.d.ts +9 -14
- package/@types/lib/util/init.npm.d.ts.map +1 -1
- package/@types/lib/util/isDeepEqual.d.ts +9 -0
- package/@types/lib/util/isDeepEqual.d.ts.map +1 -0
- package/@types/lib/util/jsonToTable.d.ts +9 -0
- package/@types/lib/util/jsonToTable.d.ts.map +1 -0
- package/@types/lib/util/migrations/assetV10.d.ts +70 -0
- package/@types/lib/util/migrations/assetV10.d.ts.map +1 -0
- package/@types/lib/util/progress.d.ts +249 -0
- package/@types/lib/util/progress.d.ts.map +1 -0
- package/@types/lib/util/sessionStore.d.ts +25 -0
- package/@types/lib/util/sessionStore.d.ts.map +1 -0
- package/@types/lib/util/topological-sort.d.ts +22 -0
- package/@types/lib/util/topological-sort.d.ts.map +1 -0
- package/@types/lib/util/util.d.ts +124 -83
- package/@types/lib/util/util.d.ts.map +1 -1
- package/@types/lib/util/validations.d.ts +15 -3
- package/@types/lib/util/validations.d.ts.map +1 -1
- package/@types/types/mcdev.d.d.ts +35 -22
- package/@types/types/mcdev.d.d.ts.map +1 -1
- package/README.md +6 -2
- package/boilerplate/files/.prettierignore +7 -0
- package/boilerplate/files/.prettierrc +1 -23
- package/boilerplate/files/.vscode/extensions.json +14 -13
- package/boilerplate/files/.vscode/settings.json +14 -8
- package/boilerplate/files/eslint.config.js +44 -175
- package/boilerplate/forcedUpdates.json +11 -0
- package/boilerplate/npm-dependencies.json +3 -5
- package/boilerplate/npmrc-template +1 -0
- package/lib/Builder.js +4 -12
- package/lib/Deployer.js +32 -29
- package/lib/MetadataTypeDefinitions.js +4 -0
- package/lib/MetadataTypeInfo.js +4 -0
- package/lib/Retriever.js +8 -32
- package/lib/cli.js +101 -82
- package/lib/index.js +225 -166
- package/lib/metadataTypes/Asset.js +958 -307
- package/lib/metadataTypes/AttributeGroup.js +1 -6
- package/lib/metadataTypes/AttributeSet.js +1 -1
- package/lib/metadataTypes/Automation.js +95 -162
- package/lib/metadataTypes/Campaign.js +1 -6
- package/lib/metadataTypes/DataExtension.js +92 -132
- package/lib/metadataTypes/DataExtensionField.js +115 -1
- package/lib/metadataTypes/DataExtract.js +1 -56
- package/lib/metadataTypes/DataExtractType.js +1 -1
- package/lib/metadataTypes/DataFilter.js +23 -9
- package/lib/metadataTypes/DeliveryProfile.js +1 -6
- package/lib/metadataTypes/DomainVerification.js +1 -1
- package/lib/metadataTypes/Email.js +2 -4
- package/lib/metadataTypes/Event.js +7 -66
- package/lib/metadataTypes/FileLocation.js +1 -7
- package/lib/metadataTypes/FileTransfer.js +1 -56
- package/lib/metadataTypes/Filter.js +1 -1
- package/lib/metadataTypes/Folder.js +9 -9
- package/lib/metadataTypes/ImportFile.js +4 -59
- package/lib/metadataTypes/Journey.js +408 -168
- package/lib/metadataTypes/MetadataType.js +180 -182
- package/lib/metadataTypes/MobileCode.js +0 -1
- package/lib/metadataTypes/MobileKeyword.js +6 -39
- package/lib/metadataTypes/MobileMessage.js +111 -13
- package/lib/metadataTypes/MobilePush.js +456 -0
- package/lib/metadataTypes/MobilePushApp.js +118 -0
- package/lib/metadataTypes/Query.js +11 -37
- package/lib/metadataTypes/Script.js +1 -20
- package/lib/metadataTypes/SenderProfile.js +27 -23
- package/lib/metadataTypes/TransactionalMessage.js +1 -1
- package/lib/metadataTypes/TransactionalSMS.js +1 -1
- package/lib/metadataTypes/TriggeredSend.js +1 -1
- package/lib/metadataTypes/User.js +27 -23
- package/lib/metadataTypes/Verification.js +2 -2
- package/lib/metadataTypes/definitions/Asset.definition.js +94 -61
- package/lib/metadataTypes/definitions/Campaign.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataExtract.definition.js +1 -0
- package/lib/metadataTypes/definitions/DomainVerification.definition.js +1 -0
- package/lib/metadataTypes/definitions/EmailSend.definition.js +2 -2
- package/lib/metadataTypes/definitions/FileTransfer.definition.js +1 -0
- package/lib/metadataTypes/definitions/Filter.definition.js +2 -3
- package/lib/metadataTypes/definitions/Journey.definition.js +7 -3
- package/lib/metadataTypes/definitions/MobileMessage.definition.js +6 -0
- package/lib/metadataTypes/definitions/MobilePush.definition.js +308 -0
- package/lib/metadataTypes/definitions/MobilePushApp.definition.js +121 -0
- package/lib/metadataTypes/definitions/Query.definition.js +1 -0
- package/lib/metadataTypes/definitions/Script.definition.js +1 -0
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +1 -1
- package/lib/metadataTypes/definitions/TransactionalPush.definition.js +1 -1
- package/lib/metadataTypes/definitions/TriggeredSend.definition.js +2 -2
- package/lib/retrieveChangelog.js +28 -26
- package/lib/util/auth.js +127 -83
- package/lib/util/businessUnit.js +1 -1
- package/lib/util/cache.js +4 -6
- package/lib/util/cli.js +19 -19
- package/lib/util/config.js +22 -21
- package/lib/util/devops.js +162 -77
- package/lib/util/file.js +213 -199
- package/lib/util/git.js +278 -0
- package/lib/util/init.config.js +149 -169
- package/lib/util/init.git.js +37 -13
- package/lib/util/init.js +24 -15
- package/lib/util/init.npm.js +103 -120
- package/lib/util/isDeepEqual.js +48 -0
- package/lib/util/jsonToTable.js +76 -0
- package/lib/util/migrations/assetV10.js +367 -0
- package/lib/util/progress.js +609 -0
- package/lib/util/sessionStore.js +219 -0
- package/lib/util/topological-sort.js +114 -0
- package/lib/util/util.js +203 -118
- package/lib/util/validations.js +17 -11
- package/package.json +121 -126
- package/scripts/verify-packed-package.mjs +90 -0
- package/scripts/verify-progress-fixture.mjs +362 -0
- package/types/init-declarations.type-test.js +10 -0
- package/types/mcdev.d.js +18 -12
- package/.beautyamp.json +0 -13
- package/.bitbucket/PULL_REQUEST_TEMPLATE.md +0 -19
- package/.coverage-comment-template.svelte +0 -194
- package/.editorconfig +0 -9
- package/.fork/.prettierrc +0 -6
- package/.fork/custom-commands.json +0 -140
- package/.gitattributes +0 -7
- package/.github/ISSUE_TEMPLATE/bug.yml +0 -149
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/ISSUE_TEMPLATE/task.md +0 -10
- package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +0 -28
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -16
- package/.github/dependabot.yml +0 -23
- package/.github/pr-labeler.yml +0 -3
- package/.github/workflows/close_issues_on_merge.yml +0 -23
- package/.github/workflows/code-test.yml +0 -41
- package/.github/workflows/coverage-base-update.yml +0 -61
- package/.github/workflows/coverage-develop-branch.yml +0 -42
- package/.github/workflows/coverage-main-branch.yml +0 -42
- package/.github/workflows/coverage.yml +0 -82
- package/.github/workflows/npm-publish.yml +0 -36
- package/.github/workflows/pr-labeler.yml +0 -19
- package/.husky/commit-msg +0 -8
- package/.husky/post-checkout +0 -38
- package/.husky/post-merge +0 -24
- package/.husky/pre-commit +0 -8
- package/.issuetracker +0 -15
- package/.markdownlint.json +0 -16
- package/.markdownlint.md +0 -4
- package/.nycrc.json +0 -5
- package/.prettierignore +0 -3
- package/.prettierrc +0 -33
- package/.vscode/extensions.json +0 -28
- package/.vscode/launch.json +0 -15
- package/.vscode/settings.json +0 -92
- package/.vsls.json +0 -6
- package/CONTRIBUTING.md +0 -22
- package/boilerplate/files/.beautyamp.json +0 -13
- package/docs/dist/considerations.md +0 -66
- package/eslint.config.js +0 -144
- package/img/README.md/cdp-1.jpg +0 -0
- package/img/README.md/troubleshoot-authentication.jpg +0 -0
- package/img/README.md/troubleshoot-execution_policy-2.png +0 -0
- package/img/README.md/troubleshoot-execution_policy.jpg +0 -0
- package/img/README.md/troubleshoot-mac-sudo.png +0 -0
- package/img/README.md/troubleshoot-nodejs-index.jpg +0 -0
- package/img/README.md/troubleshoot-nodejs-permission.jpg +0 -0
- package/img/README.md/troubleshoot-ssh.jpg +0 -0
- package/img/README.md/vscode-eslint-allow_everywhere.jpg +0 -0
- package/img/README.md/vscode-recommendations-1.png +0 -0
- package/img/README.md/vscode-recommendations-2.png +0 -0
- package/prepare-release.js +0 -37
- package/test/general.test.js +0 -2709
- package/test/mockRoot/.mcdev-auth.json +0 -8
- package/test/mockRoot/.mcdev-validations.js +0 -93
- package/test/mockRoot/.mcdevrc.json +0 -182
- package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testExisting_dataExtensionShared.dataExtension-meta.json +0 -58
- package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testNew_dataExtensionShared.dataExtension-meta.json +0 -20
- package/test/mockRoot/deploy/testInstance/_ParentBU_/query/testNew_query.query-meta.json +0 -11
- package/test/mockRoot/deploy/testInstance/_ParentBU_/query/testNew_query.query-meta.sql +0 -4
- package/test/mockRoot/deploy/testInstance/_ParentBU_/user/testBlocked_user.user-meta.json +0 -23
- package/test/mockRoot/deploy/testInstance/_ParentBU_/user/testExisting_user.user-meta.json +0 -31
- package/test/mockRoot/deploy/testInstance/_ParentBU_/user/testNew_user.user-meta.json +0 -27
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNamFail.asset-block-meta.html +0 -23
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNamFail.asset-block-meta.json +0 -41
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchName.asset-block-meta.html +0 -23
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchName.asset-block-meta.json +0 -41
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNameAdd.asset-block-meta.html +0 -23
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNameAdd.asset-block-meta.json +0 -41
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset.asset-block-meta.html +0 -12
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset.asset-block-meta.json +0 -39
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_htmlblock.asset-block-meta.html +0 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_htmlblock.asset-block-meta.json +0 -39
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_notexisting.asset-block-meta.html +0 -4
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_notexisting.asset-block-meta.json +0 -39
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_preexisting.asset-block-meta.html +0 -4
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_preexisting.asset-block-meta.json +0 -39
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/test_slash.asset-block-meta.html +0 -12
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/test_slash.asset-block-meta.json +0 -29
- package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_assetMessage/testNew_assetMessage.asset-message-meta.json +0 -435
- package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_assetMessage/views.html.content.asset-message-meta.html +0 -150
- package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_asset_templatebasedemail/testNew_asset_templatebasedemail.asset-message-meta.json +0 -305
- package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_asset_templatebasedemail/views.html.content.asset-message-meta.html +0 -150
- package/test/mockRoot/deploy/testInstance/testBU/asset/template/testNew_asset_template/content.asset-template-meta.html +0 -150
- package/test/mockRoot/deploy/testInstance/testBU/asset/template/testNew_asset_template/testNew_asset_template.asset-template-meta.json +0 -116
- package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +0 -52
- package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +0 -49
- package/test/mockRoot/deploy/testInstance/testBU/dataExtension/testExisting_dataExtension.dataExtension-meta.json +0 -59
- package/test/mockRoot/deploy/testInstance/testBU/dataExtension/testNew_dataExtension.dataExtension-meta.json +0 -20
- package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testExisting_dataExtract.dataExtract-meta.json +0 -35
- package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testNew_dataExtract.dataExtract-meta.json +0 -35
- package/test/mockRoot/deploy/testInstance/testBU/dataFilter/testExisting_dataFilter.dataFilter-meta.json +0 -19
- package/test/mockRoot/deploy/testInstance/testBU/dataFilter/testNew_dataFilter.dataFilter-meta.json +0 -19
- package/test/mockRoot/deploy/testInstance/testBU/domainVerification/joern.berkefeld.New@accenture.com.domainVerification-meta.json +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/domainVerification/joern.berkefeld@accenture.com.domainVerification-meta.json +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/domainVerification/mcdev.accenture.com.domainVerification-meta.json +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/emailSend/testExisting_emailSend.emailSend-meta.json +0 -36
- package/test/mockRoot/deploy/testInstance/testBU/emailSend/testNew_emailSend.emailSend-meta.json +0 -36
- package/test/mockRoot/deploy/testInstance/testBU/event/testExisting_event.event-meta.json +0 -201
- package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withExistingDE.event-meta.json +0 -233
- package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json +0 -194
- package/test/mockRoot/deploy/testInstance/testBU/fileLocation/ExactTarget Enhanced FTP.fileLocation-meta.json +0 -5
- package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_aws.fileLocation-meta.json +0 -14
- package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_exsftp.fileLocation-meta.json +0 -12
- package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testExisting_fileTransfer.fileTransfer-meta.json +0 -17
- package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testNew_fileTransfer.fileTransfer-meta.json +0 -17
- package/test/mockRoot/deploy/testInstance/testBU/filter/testExisting_filter.filter-meta.json +0 -10
- package/test/mockRoot/deploy/testInstance/testBU/filter/testNew_filter.filter-meta.json +0 -11
- package/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json +0 -36
- package/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json +0 -34
- package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_Multistep.journey-meta.json +0 -418
- package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_Quicksend.journey-meta.json +0 -232
- package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_updatecontact.journey-meta.json +0 -108
- package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_temail.journey-meta.json +0 -212
- package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_temail_notPublished.journey-meta.json +0 -217
- package/test/mockRoot/deploy/testInstance/testBU/journey/testNew_temail_notPublished.journey-meta.json +0 -213
- package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.amp +0 -2
- package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.json +0 -8
- package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.amp +0 -2
- package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.json +0 -8
- package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/NTIzOjc4OjA.mobileMessage-meta.amp +0 -1
- package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/NTIzOjc4OjA.mobileMessage-meta.json +0 -59
- package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/new.mobileMessage-meta.amp +0 -1
- package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/new.mobileMessage-meta.json +0 -58
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query.query-meta.json +0 -11
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query.query-meta.sql +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.json +0 -11
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.sql +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/query/testNew_query.query-meta.json +0 -11
- package/test/mockRoot/deploy/testInstance/testBU/query/testNew_query.query-meta.sql +0 -4
- package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.json +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.ssjs +0 -1
- package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.json +0 -6
- package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.ssjs +0 -1
- package/test/mockRoot/deploy/testInstance/testBU/sendClassification/testExisting_sendClassification.sendClassification-meta.json +0 -8
- package/test/mockRoot/deploy/testInstance/testBU/sendClassification/testNew_sendClassification.sendClassification-meta.json +0 -8
- package/test/mockRoot/deploy/testInstance/testBU/senderProfile/testExisting_senderProfile.senderProfile-meta.json +0 -15
- package/test/mockRoot/deploy/testInstance/testBU/senderProfile/testNew_senderProfile.senderProfile-meta.json +0 -15
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testExisting_temail.transactionalEmail-meta.json +0 -20
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testNew_temail.transactionalEmail-meta.json +0 -19
- package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testExisting_tpush.transactionalPush-meta.json +0 -16
- package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testNew_tpush.transactionalPush-meta.json +0 -16
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.amp +0 -4
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.json +0 -14
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.amp +0 -4
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.json +0 -14
- package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testExisting_triggeredSend.triggeredSend-meta.json +0 -27
- package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testNew_triggeredSend.triggeredSend-meta.json +0 -27
- package/test/mockRoot/deploy/testInstance/testBU/verification/testExisting_automation__s1.7.verification-meta.json +0 -11
- package/test/mockRoot/deploy/testInstance/testBU/verification/testNew_automation__s1.7.verification-meta.json +0 -11
- package/test/resourceFactory.js +0 -494
- package/test/resources/1111111/accountUser/configure-response.xml +0 -70
- package/test/resources/1111111/accountUser/create-response.xml +0 -97
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-QAA-response.xml +0 -27
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDEmaillike@-QAA-response.xml +0 -156
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-QAA-response.xml +0 -156
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-QAA-response.xml +0 -87
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmaillike@-QAA-response.xml +0 -156
- package/test/resources/1111111/accountUser/update-response.xml +0 -111
- package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserID=700301950-response.xml +0 -60
- package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml +0 -77
- package/test/resources/1111111/automation/v1/queries/get-response.json +0 -6
- package/test/resources/1111111/automation/v1/queries/post-response.json +0 -18
- package/test/resources/1111111/businessUnit/retrieve-ID=1111111-QAA-response.xml +0 -33
- package/test/resources/1111111/data/v1/customobjectdata/key/testExisting_dataExtensionShared/rowset/get-response.json +0 -13
- package/test/resources/1111111/dataExtension/create-expected.json +0 -20
- package/test/resources/1111111/dataExtension/create-response.xml +0 -59
- package/test/resources/1111111/dataExtension/retrieve-expected.json +0 -53
- package/test/resources/1111111/dataExtension/retrieve-expected.md +0 -23
- package/test/resources/1111111/dataExtension/retrieve-response.xml +0 -52
- package/test/resources/1111111/dataExtension/update-expected.json +0 -55
- package/test/resources/1111111/dataExtension/update-response.xml +0 -59
- package/test/resources/1111111/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtensionShared].[TriggerUpdate_randomNumber_]-response.xml +0 -45
- package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +0 -98
- package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionSharedORDataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +0 -98
- package/test/resources/1111111/dataExtensionField/retrieve-response.xml +0 -98
- package/test/resources/1111111/dataExtensionTemplate/retrieve-response.xml +0 -303
- package/test/resources/1111111/dataFolder/retrieve-ContentType=queryactivity-response.xml +0 -48
- package/test/resources/1111111/dataFolder/retrieve-ContentTypeINdataextension,hidden,queryactivity,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -26
- package/test/resources/1111111/dataFolder/retrieve-ContentTypeINdataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -387
- package/test/resources/1111111/dataFolder/retrieve-ContentTypeINshared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -364
- package/test/resources/1111111/dataFolder/retrieve-response-.xml +0 -387
- package/test/resources/1111111/list/retrieve-CustomerKey=All SubscribersORListName=All Subscribers-response.xml +0 -39
- package/test/resources/1111111/platform/v1/setup/quickflow/data/get-response.json +0 -455
- package/test/resources/1111111/query/patch_keySuffix-expected.json +0 -11
- package/test/resources/1111111/query/patch_keySuffix-expected.sql +0 -4
- package/test/resources/1111111/role/retrieve-IsPrivate=false-response.xml +0 -76
- package/test/resources/1111111/user/build-expected.json +0 -16
- package/test/resources/1111111/user/create-expected.json +0 -21
- package/test/resources/1111111/user/retrieve-expected.json +0 -24
- package/test/resources/1111111/user/retrieve-expected.md +0 -21
- package/test/resources/1111111/user/template-expected.json +0 -16
- package/test/resources/1111111/user/update-expected.json +0 -21
- package/test/resources/9999999/accountUser/retrieve-response.xml +0 -104
- package/test/resources/9999999/asset/build-asset_htmlblock-expected.html +0 -23
- package/test/resources/9999999/asset/build-asset_htmlblock-expected.json +0 -29
- package/test/resources/9999999/asset/build-templatebasedemail-expected.json +0 -145
- package/test/resources/9999999/asset/build-templatebasedemail-html-expected.html +0 -20
- package/test/resources/9999999/asset/build-templatebasedemail-preheader-expected.amp +0 -1
- package/test/resources/9999999/asset/create-expected.json +0 -18
- package/test/resources/9999999/asset/resolveId-1234-notFound-expected.json +0 -1
- package/test/resources/9999999/asset/resolveId-1295064-noPath-expected.json +0 -8
- package/test/resources/9999999/asset/resolveId-1295064-withPath-expected.json +0 -8
- package/test/resources/9999999/asset/retrieve-templatebasedemail-expected.json +0 -148
- package/test/resources/9999999/asset/retrieve-templatebasedemail-html-expected.html +0 -20
- package/test/resources/9999999/asset/retrieve-templatebasedemail-preheader-expected.amp +0 -1
- package/test/resources/9999999/asset/template-emailTemplate-expected.json +0 -20
- package/test/resources/9999999/asset/template-templatebasedemail-expected.json +0 -145
- package/test/resources/9999999/asset/template-templatebasedemail-html-expected.html +0 -20
- package/test/resources/9999999/asset/template-templatebasedemail-preheader-expected.amp +0 -1
- package/test/resources/9999999/asset/template-testExisting_asset_htmlblock-expected.json +0 -29
- package/test/resources/9999999/asset/testExisting_asset_htmlblock-retrieve-expected.html +0 -23
- package/test/resources/9999999/asset/testExisting_asset_htmlblock-retrieve-expected.json +0 -41
- package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-id-expected.html +0 -33
- package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-key-expected.html +0 -33
- package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-name-expected.html +0 -35
- package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-id-expected.amp +0 -4
- package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-key-expected.amp +0 -4
- package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-name-expected.amp +0 -4
- package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-id-expected.amp +0 -4
- package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-key-expected.amp +0 -4
- package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-name-expected.amp +0 -4
- package/test/resources/9999999/asset/test_coderesource_js-retrieve-expected.js +0 -1
- package/test/resources/9999999/asset/test_coderesource_js-retrieve-expected.json +0 -45
- package/test/resources/9999999/asset/test_coderesource_json-retrieve-expected.json +0 -45
- package/test/resources/9999999/asset/test_coderesource_json-retrieve-expected.jsonc +0 -1
- package/test/resources/9999999/asset/test_coderesource_xml-retrieve-expected.json +0 -44
- package/test/resources/9999999/asset/test_coderesource_xml-retrieve-expected.xml +0 -1
- package/test/resources/9999999/asset/test_interactivecontent-retrieve-expected.json +0 -41
- package/test/resources/9999999/asset/test_landingpage-retrieve-expected.json +0 -40
- package/test/resources/9999999/asset/test_microsite-retrieve-expected.json +0 -41
- package/test/resources/9999999/asset/v1/content/assets/1209971/get-response.json +0 -61
- package/test/resources/9999999/asset/v1/content/assets/1295064/get-response.json +0 -60
- package/test/resources/9999999/asset/v1/content/assets/1295064/patch-response.json +0 -59
- package/test/resources/9999999/asset/v1/content/assets/1295065/get-response.json +0 -60
- package/test/resources/9999999/asset/v1/content/assets/1295066/get-response.json +0 -60
- package/test/resources/9999999/asset/v1/content/assets/1295067/get-response.json +0 -60
- package/test/resources/9999999/asset/v1/content/assets/16992/get-response.json +0 -60
- package/test/resources/9999999/asset/v1/content/assets/5286/get-response.json +0 -48
- package/test/resources/9999999/asset/v1/content/assets/5289/get-response.json +0 -273
- package/test/resources/9999999/asset/v1/content/assets/808714/get-response.json +0 -185
- package/test/resources/9999999/asset/v1/content/assets/9451/get-response.json +0 -61
- package/test/resources/9999999/asset/v1/content/assets/9456/get-response.json +0 -56
- package/test/resources/9999999/asset/v1/content/assets/9458/get-response.json +0 -56
- package/test/resources/9999999/asset/v1/content/assets/9460/get-response.json +0 -59
- package/test/resources/9999999/asset/v1/content/assets/9463/get-response.json +0 -61
- package/test/resources/9999999/asset/v1/content/assets/9465/get-response.json +0 -54
- package/test/resources/9999999/asset/v1/content/assets/950143/delete-response.txt +0 -1
- package/test/resources/9999999/asset/v1/content/assets/950143/get-response.json +0 -97
- package/test/resources/9999999/asset/v1/content/assets/get-response-customerKey=testExisting_asset.json +0 -105
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_assetMessage.json +0 -441
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_htmlblock.json +0 -59
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_template.json +0 -147
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_templatebasedemail.json +0 -322
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_withCBBK_notexisting.json +0 -59
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_withCBBK_preexisting.json +0 -59
- package/test/resources/9999999/asset/v1/content/assets/post-response-key=test_slash.json +0 -60
- package/test/resources/9999999/asset/v1/content/assets/post-response.json +0 -59
- package/test/resources/9999999/asset/v1/content/assets/query/+post-response-assetType.idIN3,195,196,197,198,199,200,201,202,203,210,211,212,213-slashfolder.json +0 -198
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,205,206,230,232.json +0 -129
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,210,211,212,213,215,216,217,218,219,220,221,222,223,224.json +0 -257
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,4,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,210,211,212,213,214,215,216,217,218,219,220,221,222.json +0 -377
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,4,5,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,207,208,209,210,211,212,213,214,215,216,217,218.json +0 -460
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,5,205,206,207,208,209,230,232.json +0 -229
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN14,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192.json +0 -7
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN15,193,194.json +0 -7
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN215,216,217,218,219,220,221,222,223,224,225,226,227,228.json +0 -7
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN219,220,221,222,223,224,225,226,227,228,230,232,240,241,242,243,244,245.json +0 -168
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228,230,232.json +0 -32
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN225,226,227,228,230,232.json +0 -7
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN240,241,242,243,244,245.json +0 -144
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN246,247,248,249.json +0 -132
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN3,195,196,197,198,199,200,201,202,203,210,211,212,213.json +0 -160
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN4,214.json +0 -35
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN5,207,208,209.json +0 -108
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-customerKey=testExisting_asset_htmlblock.json +0 -46
- package/test/resources/9999999/asset/v1/content/categories/post-response.json +0 -9
- package/test/resources/9999999/asset-deploy/block/testNew_asset_badExtension.bad-type-extension.json +0 -39
- package/test/resources/9999999/asset-deploy/block/testNew_asset_badName_bad.asset-block-meta.json +0 -39
- package/test/resources/9999999/asset-deploy2/block/testBlacklist_asset_htmlblock.asset-block-meta.html +0 -1
- package/test/resources/9999999/asset-deploy2/block/testBlacklist_asset_htmlblock.asset-block-meta.json +0 -39
- package/test/resources/9999999/asset-slashfolder-deploy/block/test_slash.asset-block-meta.html +0 -12
- package/test/resources/9999999/asset-slashfolder-deploy/block/test_slash.asset-block-meta.json +0 -29
- package/test/resources/9999999/attributeGroup/retrieve-expected.json +0 -25
- package/test/resources/9999999/attributeSet/retrieve-expected.json +0 -143
- package/test/resources/9999999/automation/build-expected.json +0 -61
- package/test/resources/9999999/automation/clone-expected.json +0 -61
- package/test/resources/9999999/automation/create-callout-expected.json +0 -66
- package/test/resources/9999999/automation/create-expected.json +0 -50
- package/test/resources/9999999/automation/create-testNew_automation-expected.md +0 -29
- package/test/resources/9999999/automation/delete-response.xml +0 -40
- package/test/resources/9999999/automation/patch_fixKeys-pause-expected.json +0 -44
- package/test/resources/9999999/automation/patch_fixKeys-schedule-expected.json +0 -44
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +0 -42
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_pause-response.xml +0 -42
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +0 -42
- package/test/resources/9999999/automation/perform-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +0 -42
- package/test/resources/9999999/automation/retrieve-expected.json +0 -67
- package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +0 -31
- package/test/resources/9999999/automation/retrieve-wait-expected.json +0 -81
- package/test/resources/9999999/automation/retrieve-wait-expected.md +0 -18
- package/test/resources/9999999/automation/template-expected.json +0 -61
- package/test/resources/9999999/automation/update-callout-expected.json +0 -68
- package/test/resources/9999999/automation/update-expected.json +0 -67
- package/test/resources/9999999/automation/update-testExisting_automation-expected.md +0 -31
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +0 -92
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/patch-response.json +0 -85
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/get-response.json +0 -85
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/patch-response.json +0 -85
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/get-response.json +0 -85
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/patch-response.json +0 -86
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/get-response.json +0 -85
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/patch-response.json +0 -86
- package/test/resources/9999999/automation/v1/automations/0fc2ac96-14ba-495a-8db9-3ddd4f8ac444-wait/get-response.json +0 -114
- package/test/resources/9999999/automation/v1/automations/8f82c2a7-0bae-45a9-bdee-e631ab25c0d5/get-response.json +0 -44
- package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +0 -85
- package/test/resources/9999999/automation/v1/automations/post-response.json +0 -93
- package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/delete-response.txt +0 -1
- package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/get-response.json +0 -38
- package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/patch-response.json +0 -38
- package/test/resources/9999999/automation/v1/dataextracts/get-response.json +0 -20
- package/test/resources/9999999/automation/v1/dataextracts/post-response.json +0 -38
- package/test/resources/9999999/automation/v1/dataextracttypes/get-response.json +0 -50
- package/test/resources/9999999/automation/v1/dataverifications/post-response.json +0 -12
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/delete-response.json +0 -0
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/get-response.json +0 -12
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/patch-response.json +0 -12
- package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/delete-response.json +0 -1
- package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/get-response.json +0 -18
- package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/patch-response.json +0 -18
- package/test/resources/9999999/automation/v1/filetransfers/get-response.json +0 -15
- package/test/resources/9999999/automation/v1/filetransfers/post-response.json +0 -18
- package/test/resources/9999999/automation/v1/filters/a0f1a1bc-4ea1-44b3-8fe1-ce40ef35c1c0/patch-response.json +0 -18
- package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/delete-response.txt +0 -0
- package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/get-response.json +0 -15
- package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/patch-response.json +0 -15
- package/test/resources/9999999/automation/v1/filters/get-response.json +0 -22
- package/test/resources/9999999/automation/v1/ftplocations/get-response.json +0 -43
- package/test/resources/9999999/automation/v1/imports/1ebf557b-372e-eb11-b81b-48df37d1dbd7/get-response.json +0 -78
- package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/delete-response.txt +0 -0
- package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/get-response.json +0 -35
- package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/patch-response.json +0 -35
- package/test/resources/9999999/automation/v1/imports/d2474efb-a449-ef11-b876-f40343c95928/get-response.json +0 -37
- package/test/resources/9999999/automation/v1/imports/get-response.json +0 -146
- package/test/resources/9999999/automation/v1/imports/post-response.json +0 -30
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dae/actions/start/post-response.txt +0 -1
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/actions/start/post-response.txt +0 -1
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/delete-response.json +0 -1
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/get-response.json +0 -17
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/patch-response.json +0 -18
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/get-response.json +0 -17
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/patch-response.json +0 -18
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeysSuffix/get-response.json +0 -17
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeysSuffix/patch-response.json +0 -18
- package/test/resources/9999999/automation/v1/queries/abcde-607c-4940-afef-437965094dat/get-response.json +0 -17
- package/test/resources/9999999/automation/v1/queries/get-response-Name=testExisting_query.json +0 -24
- package/test/resources/9999999/automation/v1/queries/get-response.json +0 -75
- package/test/resources/9999999/automation/v1/queries/post-response.json +0 -18
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/delete-response.txt +0 -1
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/get-response.json +0 -10
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +0 -10
- package/test/resources/9999999/automation/v1/scripts/get-response-name=testExisting_script.json +0 -17
- package/test/resources/9999999/automation/v1/scripts/get-response.json +0 -57
- package/test/resources/9999999/automation/v1/scripts/post-response.json +0 -10
- package/test/resources/9999999/data/v1/customobjectdata/key/testExisting_dataExtension/rowset/get-response.json +0 -13
- package/test/resources/9999999/data/v1/filetransferlocation/Salesforce%20Objects%20%26%20Reports/get-response.json +0 -4
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_aws/patch-response.json +0 -18
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/delete-response.json +0 -4
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/get-response.json +0 -18
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_exsftp/patch-response.json +0 -16
- package/test/resources/9999999/data/v1/filetransferlocations/get-response.json +0 -59
- package/test/resources/9999999/dataExtension/build-expected.json +0 -66
- package/test/resources/9999999/dataExtension/create-expected.json +0 -20
- package/test/resources/9999999/dataExtension/create-response.xml +0 -59
- package/test/resources/9999999/dataExtension/delete-response.xml +0 -42
- package/test/resources/9999999/dataExtension/retrieve-CustomerKey=testExisting_dataExtension-response.xml +0 -52
- package/test/resources/9999999/dataExtension/retrieve-CustomerKey=testNew_event_withSchema-response.xml +0 -50
- package/test/resources/9999999/dataExtension/retrieve-Name=testExisting_dataExtension-response.xml +0 -52
- package/test/resources/9999999/dataExtension/retrieve-createdViaEvent-response.xml +0 -50
- package/test/resources/9999999/dataExtension/retrieve-expected.json +0 -66
- package/test/resources/9999999/dataExtension/retrieve-expected.md +0 -25
- package/test/resources/9999999/dataExtension/retrieve-response.xml +0 -224
- package/test/resources/9999999/dataExtension/retrieve_event_withSchema-expected.json +0 -219
- package/test/resources/9999999/dataExtension/template-expected.json +0 -66
- package/test/resources/9999999/dataExtension/update-afterCreatedViaEvent-response.xml +0 -55
- package/test/resources/9999999/dataExtension/update-callout-afterCreatedViaEvent-expected.xml +0 -1
- package/test/resources/9999999/dataExtension/update-expected.json +0 -72
- package/test/resources/9999999/dataExtension/update-response.xml +0 -59
- package/test/resources/9999999/dataExtension-deploy/testBlacklist_dataExtension.dataExtension-meta.json +0 -20
- package/test/resources/9999999/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtension].[LastName]-response.xml +0 -44
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtension-response.xml +0 -133
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionORDataExtension.CustomerKey=testExisting_dataExtension-response.xml +0 -99
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_event_withSchema-response.xml +0 -461
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKeyINtestExisting_dataExtension,testNew_dataExtension-response.xml +0 -133
- package/test/resources/9999999/dataExtensionField/retrieve-Name=FirstName-response.xml +0 -78
- package/test/resources/9999999/dataExtensionField/retrieve-Name=LastName-response.xml +0 -78
- package/test/resources/9999999/dataExtensionField/retrieve-response.xml +0 -1075
- package/test/resources/9999999/dataExtensionTemplate/retrieve-response.xml +0 -303
- package/test/resources/9999999/dataExtract/build-expected.json +0 -35
- package/test/resources/9999999/dataExtract/get-expected.json +0 -39
- package/test/resources/9999999/dataExtract/patch-expected.json +0 -39
- package/test/resources/9999999/dataExtract/post-expected.json +0 -37
- package/test/resources/9999999/dataExtract/template-expected.json +0 -35
- package/test/resources/9999999/dataFilter/build-expected.json +0 -19
- package/test/resources/9999999/dataFilter/get-expected.json +0 -23
- package/test/resources/9999999/dataFilter/patch-expected.json +0 -20
- package/test/resources/9999999/dataFilter/post-expected.json +0 -20
- package/test/resources/9999999/dataFilter/template-expected.json +0 -19
- package/test/resources/9999999/dataFolder/+retrieve-ContentTypeINasset,asset-shared,cloudpages-slashfolder-response.xml +0 -136
- package/test/resources/9999999/dataFolder/create-ContentType=asset,Name=testFolder_samePath,ParentFolderID=89397-response.xml +0 -33
- package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=my,ParentFolderID=2-response.xml +0 -33
- package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=path,ParentFolderID=862002-response.xml +0 -33
- package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=sub,ParentFolderID=862001-response.xml +0 -33
- package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=subpath,ParentFolderID=862003-response.xml +0 -33
- package/test/resources/9999999/dataFolder/create-response.xml +0 -33
- package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-shared-QAA-response.xml +0 -70
- package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-shared-response.xml +0 -70
- package/test/resources/9999999/dataFolder/retrieve-ContentType=automations-response.xml +0 -48
- package/test/resources/9999999/dataFolder/retrieve-ContentType=journey-response.xml +0 -48
- package/test/resources/9999999/dataFolder/retrieve-ContentType=queryactivity-response.xml +0 -48
- package/test/resources/9999999/dataFolder/retrieve-ContentType=ssjsactivity-response.xml +0 -48
- package/test/resources/9999999/dataFolder/retrieve-ContentType=userinitiatedsends-response.xml +0 -48
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,filteract,filterdef,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,useriniti-response.xml +0 -765
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,triggered,triggered,useriniti-response.xml +0 -562
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,useriniti-response.xml +0 -335
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,dataexten,salesforc,shared_da,shared_da,shared_sa,synchroni,automatio,useriniti,journey,mysubs,list,publicati,queryacti,ssjsactiv,triggered,triggered-response.xml +0 -519
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages,dataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -181
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages,journey-response.xml +0 -136
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages,ssjsactivity-response.xml +0 -136
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages-response.xml +0 -114
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -115
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared-QAA-response.xml +0 -70
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared-response.xml +0 -70
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset-shared,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -431
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINautomations,queryactivity-response.xml +0 -70
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINcontextual_suppression_list,hidden,list,mysubs,publication,suppression_list,triggered_send,triggered_send_journeybuilder-response.xml +0 -385
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINcontextual_suppression_list,list,mysubs,publication,suppression_list-response.xml +0 -136
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,hidden,queryactivity,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -138
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -117
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -117
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINfilteractivity,hidden-response.xml +0 -139
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINfilterdefinition,hidden-response.xml +0 -116
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINhidden,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -46
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINhidden,triggered_send,triggered_send_journeybuilder-response.xml +0 -276
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINshared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -251
- package/test/resources/9999999/dataFolder/retrieve-QAA-response.xml +0 -387
- package/test/resources/9999999/dataFolder/retrieve-response.xml +0 -542
- package/test/resources/9999999/dataFolder/retrieve-samePathOtherBU-response.xml +0 -564
- package/test/resources/9999999/dataFolder/update-response.xml +0 -31
- package/test/resources/9999999/deliveryProfile/get-expected.json +0 -7
- package/test/resources/9999999/domainVerification/create-expected.json +0 -3
- package/test/resources/9999999/domainVerification/get-sap-expected.json +0 -6
- package/test/resources/9999999/domainVerification/update-expected.json +0 -6
- package/test/resources/9999999/email/retrieve-response.xml +0 -203
- package/test/resources/9999999/email/v1/category/post-response-parentCatId=290937,name=my,catType=automations.json +0 -7
- package/test/resources/9999999/email/v1/category/post-response-parentCatId=862100,name=sub,catType=automations.json +0 -7
- package/test/resources/9999999/email/v1/category/post-response-parentCatId=862101,name=path,catType=automations.json +0 -7
- package/test/resources/9999999/email/v1/category/post-response-parentCatId=862102,name=subpath,catType=automations.json +0 -7
- package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/delete-response.txt +0 -1
- package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/get-response.json +0 -19
- package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/patch-response.json +0 -15
- package/test/resources/9999999/email/v1/filters/filterdefinition/category/5318/get-response.json +0 -27
- package/test/resources/9999999/email/v1/filters/filterdefinition/category/8502/get-response.json +0 -7
- package/test/resources/9999999/email/v1/filters/filterdefinition/category/8503/get-response.json +0 -7
- package/test/resources/9999999/email/v1/filters/filterdefinition/post-response.json +0 -15
- package/test/resources/9999999/emailSend/build-expected.json +0 -43
- package/test/resources/9999999/emailSend/get-expected.json +0 -43
- package/test/resources/9999999/emailSend/patch-expected.json +0 -41
- package/test/resources/9999999/emailSend/post-expected.json +0 -41
- package/test/resources/9999999/emailSend/template-expected.json +0 -43
- package/test/resources/9999999/emailSendDefinition/create-response.xml +0 -98
- package/test/resources/9999999/emailSendDefinition/delete-response.xml +0 -36
- package/test/resources/9999999/emailSendDefinition/retrieve-IsPlatformObject=falseANDDescriptionnotEqualsSFSendDefinition-response.xml +0 -95
- package/test/resources/9999999/emailSendDefinition/update-response.xml +0 -97
- package/test/resources/9999999/event/build-expected.json +0 -226
- package/test/resources/9999999/event/get-automation-expected.json +0 -41
- package/test/resources/9999999/event/get-expected.json +0 -232
- package/test/resources/9999999/event/get-published-expected.json +0 -28
- package/test/resources/9999999/event/post_withExistingDE-callout-expected.json +0 -231
- package/test/resources/9999999/event/post_withExistingDE-expected.json +0 -21
- package/test/resources/9999999/event/post_withSchema-callout-expected.json +0 -202
- package/test/resources/9999999/event/post_withSchema-expected.json +0 -232
- package/test/resources/9999999/event/put-callout-expected.json +0 -207
- package/test/resources/9999999/event/put-expected.json +0 -232
- package/test/resources/9999999/event/template-expected.json +0 -226
- package/test/resources/9999999/event-deploy/testNew_event_badExtension.bad-type-extension.json +0 -200
- package/test/resources/9999999/event-deploy/testNew_event_badName_bad.event-meta.json +0 -200
- package/test/resources/9999999/eventDefinition/get-expected.json +0 -34
- package/test/resources/9999999/fileLocation/build-expected.json +0 -14
- package/test/resources/9999999/fileLocation/get-aws-expected.json +0 -14
- package/test/resources/9999999/fileLocation/get-azure-expected.json +0 -14
- package/test/resources/9999999/fileLocation/get-eftp-expected.json +0 -5
- package/test/resources/9999999/fileLocation/get-exsftp-expected.json +0 -12
- package/test/resources/9999999/fileLocation/get-gcp-expected.json +0 -10
- package/test/resources/9999999/fileLocation/get-sor-expected.json +0 -5
- package/test/resources/9999999/fileLocation/patch-aws-expected.json +0 -14
- package/test/resources/9999999/fileLocation/patch-exsftp-expected.json +0 -12
- package/test/resources/9999999/fileLocation/template-expected.json +0 -14
- package/test/resources/9999999/fileTransfer/build-expected.json +0 -15
- package/test/resources/9999999/fileTransfer/get-expected.json +0 -17
- package/test/resources/9999999/fileTransfer/patch-expected.json +0 -17
- package/test/resources/9999999/fileTransfer/post-expected.json +0 -17
- package/test/resources/9999999/fileTransfer/template-expected.json +0 -15
- package/test/resources/9999999/filter/build-expected.json +0 -10
- package/test/resources/9999999/filter/get-expected.json +0 -11
- package/test/resources/9999999/filter/patch-expected.json +0 -11
- package/test/resources/9999999/filter/post-expected.json +0 -11
- package/test/resources/9999999/filter/template-expected.json +0 -10
- package/test/resources/9999999/filterActivity/create-response.xml +0 -46
- package/test/resources/9999999/filterActivity/retrieve-CustomerKey=testExisting_filter-response.xml +0 -30
- package/test/resources/9999999/filterDefinition/retrieve-CustomerKey=testExisting_dataFilter-response.xml +0 -30
- package/test/resources/9999999/folder-deploy/Data Extensions/my/sub/path/subpath.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/Data Extensions/my/sub/path.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/Data Extensions/my/sub.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/Data Extensions/my.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/Data Extensions/testExisting_folder.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/my automations/my/sub/path/subpath.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/my automations/my/sub/path.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/my automations/my/sub.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy/my automations/my.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy-samepath/Content Builder/testFolder_samePath.folder-meta.json +0 -9
- package/test/resources/9999999/folder-deploy-slash/Content Builder/Headers%2FFolders.folder-meta.json +0 -9
- package/test/resources/9999999/hub/v1/contacts/schema/attributeGroups/get-response.json +0 -628
- package/test/resources/9999999/hub/v1/contacts/schema/setDefinitions/get-response.json +0 -20194
- package/test/resources/9999999/importDefinition/retrieve-CustomerKey=testExisting_importFile-response.xml +0 -30
- package/test/resources/9999999/importDefinition/retrieve-Name=testExisting_importFile-response.xml +0 -30
- package/test/resources/9999999/importFile/build-expected.json +0 -30
- package/test/resources/9999999/importFile/get-dataImport-expected.json +0 -36
- package/test/resources/9999999/importFile/get-expected.json +0 -36
- package/test/resources/9999999/importFile/get-sms-expected.json +0 -80
- package/test/resources/9999999/importFile/patch-expected.json +0 -32
- package/test/resources/9999999/importFile/post-expected.json +0 -30
- package/test/resources/9999999/importFile/template-expected.json +0 -30
- package/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json +0 -426
- package/test/resources/9999999/interaction/v1/eventDefinitions/key_DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e/get-response.json +0 -39
- package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/delete-response.txt +0 -0
- package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/put-response.json +0 -242
- package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event_automation/get-response.json +0 -52
- package/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json +0 -28
- package/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json +0 -243
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/audit/all/get-response-versionNumber=1.json +0 -86
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/audit/all/get-response-versionNumber=2.json +0 -101
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/audit/all/get-response-versionNumber=3.json +0 -86
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response-versionNumber=1.txt +0 -1
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt +0 -1
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/get-response-versionNumber=1.json +0 -461
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/get-response-versionNumber=3.json +0 -461
- package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/get-response.json +0 -461
- package/test/resources/9999999/interaction/v1/interactions/3c3f4112-9b43-43ca-8a89-aa0375b2c1a2/delete-response.txt +0 -1
- package/test/resources/9999999/interaction/v1/interactions/3c3f4112-9b43-43ca-8a89-aa0375b2c1a2/get-response.json +0 -253
- package/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/audit/all/get-response-versionNumber=1.json +0 -38
- package/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/audit/all/get-response-versionNumber=2.json +0 -53
- package/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/delete-response.txt +0 -1
- package/test/resources/9999999/interaction/v1/interactions/get-response-status=Published.json +0 -40
- package/test/resources/9999999/interaction/v1/interactions/get-response.json +0 -211
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/get-response-versionNumber=1.json +0 -461
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/get-response.json +0 -461
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/put-response.json +0 -461
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Quicksend/get-response-versionNumber=1.json +0 -253
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Quicksend/get-response.json +0 -253
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact/get-response.json +0 -119
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact/put-response.json +0 -106
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/get-response-versionNumber=1.json +0 -219
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/get-response.json +0 -219
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/put-response-paused.json +0 -219
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/put-response.json +0 -219
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/get-response-versionNumber=1.json +0 -226
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/get-response.json +0 -226
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/put-response.json +0 -226
- package/test/resources/9999999/interaction/v1/interactions/key_testNew_temail_notPublished/get-response.json +0 -218
- package/test/resources/9999999/interaction/v1/interactions/post-response.json +0 -216
- package/test/resources/9999999/interaction/v1/interactions/publishAsync/0175b971-71a3-4d8e-98ac-48121f3fbf4f/post-response-versionNumber=1.json +0 -4
- package/test/resources/9999999/interaction/v1/interactions/publishAsync/0175b971-71a3-4d8e-98ac-48121f3fbf4f/post-response-versionNumber=3.json +0 -4
- package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json +0 -34
- package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json +0 -5
- package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-successWarnings.json +0 -36
- package/test/resources/9999999/interaction/v1/interactions/transactional/create/post-response.json +0 -3
- package/test/resources/9999999/interaction/v1/interactions/transactional/pause/post-response.json +0 -3
- package/test/resources/9999999/interaction/v1/interactions/transactional/resume/post-response.json +0 -3
- package/test/resources/9999999/interaction/v1/interactions/validateAsync/0175b971-71a3-4d8e-98ac-48121f3fbf4f/post-response.json +0 -4
- package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json +0 -34
- package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json +0 -5
- package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-successWarnings.json +0 -36
- package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json +0 -0
- package/test/resources/9999999/journey/build-expected.json +0 -229
- package/test/resources/9999999/journey/create-transactionaEmail-publish-expected.json +0 -216
- package/test/resources/9999999/journey/get-multistep-expected.json +0 -414
- package/test/resources/9999999/journey/get-published-expected.json +0 -216
- package/test/resources/9999999/journey/get-quicksend-expected.json +0 -234
- package/test/resources/9999999/journey/get-quicksend-rcb-id-expected.json +0 -232
- package/test/resources/9999999/journey/get-quicksend-rcb-key-expected.json +0 -232
- package/test/resources/9999999/journey/get-quicksend-rcb-name-expected.json +0 -236
- package/test/resources/9999999/journey/get-transactionalEmail-expected.json +0 -211
- package/test/resources/9999999/journey/get-updatecontact-expected.json +0 -108
- package/test/resources/9999999/journey/post-expected.json +0 -264
- package/test/resources/9999999/journey/publish-callout-expected.json +0 -1
- package/test/resources/9999999/journey/put-expected.json +0 -576
- package/test/resources/9999999/journey/put-updatecontact-expected.json +0 -108
- package/test/resources/9999999/journey/template-expected.json +0 -229
- package/test/resources/9999999/journey/validate-callout-expected.json +0 -1
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +0 -21
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/post-response.json +0 -0
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED/get-response.json +0 -3
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/bHF6Q0Q3b1VXa21OdVQzZFQ0ckVSQToyNTow/get-response.json +0 -3
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/cDhLQ2o2NExxVVc5N3VZeHF5WEExUToyNTow/get-response.json +0 -3
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/NewRkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +0 -29
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +0 -50
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED/get-response.json +0 -51
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/bHF6Q0Q3b1VXa21OdVQzZFQ0ckVSQToyNTow/get-response.json +0 -216
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/cDhLQ2o2NExxVVc5N3VZeHF5WEExUToyNTow/get-response.json +0 -79
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +0 -286
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/post-response-pauseSchedule.json +0 -1
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/post-response-schedule.json +0 -1
- package/test/resources/9999999/legacy/v1/beta/messaging/deliverypolicy/get-response.json +0 -15
- package/test/resources/9999999/legacy/v1/beta/mobile/code/get-response.json +0 -32
- package/test/resources/9999999/legacy/v1/beta/mobile/imports/get-response.json +0 -112
- package/test/resources/9999999/legacy/v1/beta/mobile/keyword/NXV4ZFMwTEFwRVczd3RaLUF5X3p5dzo4Njow/get-response.json +0 -42
- package/test/resources/9999999/legacy/v1/beta/mobile/keyword/cTVJaG5oSDJPVUNHcUh6Z3pQT2tVdzo4Njow/delete-response.json +0 -0
- package/test/resources/9999999/legacy/v1/beta/mobile/keyword/get-response.json +0 -47
- package/test/resources/9999999/legacy/v1/beta/mobile/keyword/post-response.json +0 -3
- package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/delete-response.json +0 -0
- package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/get-response.json +0 -106
- package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/post-response.json +0 -0
- package/test/resources/9999999/legacy/v1/beta/mobile/message/NTQ3Ojc4OjA/get-response.json +0 -127
- package/test/resources/9999999/legacy/v1/beta/mobile/message/get-response.json +0 -129
- package/test/resources/9999999/legacy/v1/beta/mobile/message/post-response.json +0 -3
- package/test/resources/9999999/legacy/v1/beta/object/NWQwdnhEU3dFZWVBekJRQzdISWl0QTo0NTow/get-response.json +0 -12
- package/test/resources/9999999/legacy/v1/beta2/data/campaign/get-response.json +0 -29
- package/test/resources/9999999/list/retrieve-response.xml +0 -91
- package/test/resources/9999999/messaging/v1/domainverification/delete/post-response.txt +0 -1
- package/test/resources/9999999/messaging/v1/domainverification/get-response.json +0 -52
- package/test/resources/9999999/messaging/v1/domainverification/post-response.txt +0 -1
- package/test/resources/9999999/messaging/v1/domainverification/update/post-response.txt +0 -1
- package/test/resources/9999999/messaging/v1/email/definitions/get-response.json +0 -29
- package/test/resources/9999999/messaging/v1/email/definitions/post-response.json +0 -19
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/delete-response.json +0 -6
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/get-response.json +0 -26
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/patch-response.json +0 -26
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail_notPublished/get-response.json +0 -26
- package/test/resources/9999999/messaging/v1/email/definitions/testNew_temail_notPublished/get-response.json +0 -26
- package/test/resources/9999999/messaging/v1/push/definitions/get-response.json +0 -15
- package/test/resources/9999999/messaging/v1/push/definitions/post-response.json +0 -13
- package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/get-response.json +0 -13
- package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/patch-response.json +0 -13
- package/test/resources/9999999/messaging/v1/sms/definitions/get-response.json +0 -15
- package/test/resources/9999999/messaging/v1/sms/definitions/post-response.json +0 -19
- package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/get-response.json +0 -20
- package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/patch-response.json +0 -20
- package/test/resources/9999999/mobileKeyword/build-expected.amp +0 -6
- package/test/resources/9999999/mobileKeyword/build-expected.json +0 -7
- package/test/resources/9999999/mobileKeyword/get-expected.amp +0 -6
- package/test/resources/9999999/mobileKeyword/get-expected.json +0 -13
- package/test/resources/9999999/mobileKeyword/post-create-expected.amp +0 -2
- package/test/resources/9999999/mobileKeyword/post-create-expected.json +0 -15
- package/test/resources/9999999/mobileKeyword/template-expected.amp +0 -6
- package/test/resources/9999999/mobileKeyword/template-expected.json +0 -7
- package/test/resources/9999999/mobileMessage/build-expected.amp +0 -6
- package/test/resources/9999999/mobileMessage/build-expected.json +0 -57
- package/test/resources/9999999/mobileMessage/get-expected.amp +0 -6
- package/test/resources/9999999/mobileMessage/get-expected.json +0 -58
- package/test/resources/9999999/mobileMessage/post-create-expected.amp +0 -1
- package/test/resources/9999999/mobileMessage/post-create-expected.json +0 -61
- package/test/resources/9999999/mobileMessage/post-update-expected.amp +0 -1
- package/test/resources/9999999/mobileMessage/post-update-expected.json +0 -58
- package/test/resources/9999999/mobileMessage/template-expected.amp +0 -6
- package/test/resources/9999999/mobileMessage/template-expected.json +0 -57
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation-response.xml +0 -30
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_pause-response.xml +0 -32
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_schedule-response.xml +0 -32
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_paused-response.xml +0 -32
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_scheduled-response.xml +0 -32
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_pause-response.xml +0 -30
- package/test/resources/9999999/program/retrieve-CustomerKey=testNew_automation-response.xml +0 -30
- package/test/resources/9999999/program/retrieve-Name=testExisting_automation-response.xml +0 -31
- package/test/resources/9999999/program/retrieve-response.xml +0 -62
- package/test/resources/9999999/query/build-expected.json +0 -8
- package/test/resources/9999999/query/build-expected.sql +0 -7
- package/test/resources/9999999/query/clone-expected.json +0 -8
- package/test/resources/9999999/query/clone-expected.sql +0 -7
- package/test/resources/9999999/query/get-expected.json +0 -11
- package/test/resources/9999999/query/get-expected.sql +0 -7
- package/test/resources/9999999/query/get2-expected.json +0 -11
- package/test/resources/9999999/query/patch-expected.json +0 -11
- package/test/resources/9999999/query/patch-expected.sql +0 -6
- package/test/resources/9999999/query/patch_fixKeys-expected.json +0 -11
- package/test/resources/9999999/query/patch_fixKeys-expected.sql +0 -6
- package/test/resources/9999999/query/patch_fixKeysSuffix-expected.json +0 -11
- package/test/resources/9999999/query/patch_fixKeysSuffix-expected.sql +0 -6
- package/test/resources/9999999/query/post-expected.json +0 -11
- package/test/resources/9999999/query/post-expected.sql +0 -4
- package/test/resources/9999999/query/template-expected.json +0 -8
- package/test/resources/9999999/query/template-expected.sql +0 -7
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=badANDStatus=Active-response.xml +0 -26
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query2ANDStatus=Active-response.xml +0 -30
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_queryANDStatus=Active-response.xml +0 -30
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysANDStatus=Active-response.xml +0 -30
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysSuffixANDStatus=Active-response.xml +0 -30
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixedKeysANDStatus=Active-response.xml +0 -30
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testNew_queryANDStatus=Active-response.xml +0 -30
- package/test/resources/9999999/script/build-expected.json +0 -6
- package/test/resources/9999999/script/build-expected.ssjs +0 -1
- package/test/resources/9999999/script/get-expected.json +0 -8
- package/test/resources/9999999/script/get-expected.ssjs +0 -1
- package/test/resources/9999999/script/get_ampincluded-expected.html +0 -5
- package/test/resources/9999999/script/get_ampincluded-expected.json +0 -8
- package/test/resources/9999999/script/get_ampincluded-rcb-id-expected.html +0 -5
- package/test/resources/9999999/script/get_ampincluded-rcb-key-expected.html +0 -5
- package/test/resources/9999999/script/get_ampincluded-rcb-name-expected.html +0 -5
- package/test/resources/9999999/script/get_ampscript-expected.html +0 -11
- package/test/resources/9999999/script/get_ampscript-expected.json +0 -8
- package/test/resources/9999999/script/get_ampscript-rcb-id-expected.html +0 -9
- package/test/resources/9999999/script/get_ampscript-rcb-key-expected.html +0 -9
- package/test/resources/9999999/script/get_ampscript-rcb-name-expected.html +0 -13
- package/test/resources/9999999/script/get_mixed-expected.html +0 -12
- package/test/resources/9999999/script/get_mixed-expected.json +0 -8
- package/test/resources/9999999/script/get_mixed-rcb-id-expected.html +0 -12
- package/test/resources/9999999/script/get_mixed-rcb-key-expected.html +0 -12
- package/test/resources/9999999/script/get_mixed-rcb-name-expected.html +0 -14
- package/test/resources/9999999/script/get_noScriptTag-expected.html +0 -1
- package/test/resources/9999999/script/get_noScriptTag-expected.json +0 -8
- package/test/resources/9999999/script/patch-expected.json +0 -8
- package/test/resources/9999999/script/patch-expected.ssjs +0 -2
- package/test/resources/9999999/script/post-expected.json +0 -8
- package/test/resources/9999999/script/post-expected.ssjs +0 -1
- package/test/resources/9999999/script/template-expected.json +0 -6
- package/test/resources/9999999/script/template-expected.ssjs +0 -1
- package/test/resources/9999999/sendClassification/build-expected.json +0 -8
- package/test/resources/9999999/sendClassification/create-response.xml +0 -51
- package/test/resources/9999999/sendClassification/delete-response.xml +0 -36
- package/test/resources/9999999/sendClassification/get-expected.json +0 -10
- package/test/resources/9999999/sendClassification/patch-expected.json +0 -10
- package/test/resources/9999999/sendClassification/post-expected.json +0 -8
- package/test/resources/9999999/sendClassification/retrieve-response.xml +0 -86
- package/test/resources/9999999/sendClassification/template-expected.json +0 -8
- package/test/resources/9999999/sendClassification/update-response.xml +0 -49
- package/test/resources/9999999/senderProfile/build-expected.json +0 -15
- package/test/resources/9999999/senderProfile/create-response.xml +0 -50
- package/test/resources/9999999/senderProfile/delete-response.xml +0 -36
- package/test/resources/9999999/senderProfile/get-expected.json +0 -19
- package/test/resources/9999999/senderProfile/get-rcb-id-expected.json +0 -19
- package/test/resources/9999999/senderProfile/get-rcb-key-expected.json +0 -19
- package/test/resources/9999999/senderProfile/get-rcb-name-expected.json +0 -19
- package/test/resources/9999999/senderProfile/patch-expected.json +0 -19
- package/test/resources/9999999/senderProfile/post-expected.json +0 -15
- package/test/resources/9999999/senderProfile/retrieve-CustomerKey=Default-response.xml +0 -49
- package/test/resources/9999999/senderProfile/retrieve-CustomerKey=wrong-key-response.xml +0 -26
- package/test/resources/9999999/senderProfile/retrieve-response.xml +0 -95
- package/test/resources/9999999/senderProfile/template-expected.json +0 -15
- package/test/resources/9999999/senderProfile/update-response.xml +0 -48
- package/test/resources/9999999/transactionalEmail/build-expected.json +0 -18
- package/test/resources/9999999/transactionalEmail/create-publish-expected.json +0 -20
- package/test/resources/9999999/transactionalEmail/get-expected.json +0 -20
- package/test/resources/9999999/transactionalEmail/get-published-expected.json +0 -20
- package/test/resources/9999999/transactionalEmail/patch-expected.json +0 -20
- package/test/resources/9999999/transactionalEmail/post-expected.json +0 -20
- package/test/resources/9999999/transactionalEmail/template-expected.json +0 -18
- package/test/resources/9999999/transactionalPush/build-expected.json +0 -8
- package/test/resources/9999999/transactionalPush/get-expected.json +0 -11
- package/test/resources/9999999/transactionalPush/patch-expected.json +0 -14
- package/test/resources/9999999/transactionalPush/post-expected.json +0 -14
- package/test/resources/9999999/transactionalPush/template-expected.json +0 -8
- package/test/resources/9999999/transactionalSMS/build-expected.amp +0 -108
- package/test/resources/9999999/transactionalSMS/build-expected.json +0 -12
- package/test/resources/9999999/transactionalSMS/get-expected.amp +0 -108
- package/test/resources/9999999/transactionalSMS/get-expected.json +0 -14
- package/test/resources/9999999/transactionalSMS/patch-expected.amp +0 -102
- package/test/resources/9999999/transactionalSMS/patch-expected.json +0 -14
- package/test/resources/9999999/transactionalSMS/post-expected.amp +0 -102
- package/test/resources/9999999/transactionalSMS/post-expected.json +0 -14
- package/test/resources/9999999/transactionalSMS/template-expected.amp +0 -108
- package/test/resources/9999999/transactionalSMS/template-expected.json +0 -12
- package/test/resources/9999999/triggeredSend/build-expected.json +0 -28
- package/test/resources/9999999/triggeredSend/get-expected.json +0 -28
- package/test/resources/9999999/triggeredSend/get-rcb-id-expected.json +0 -28
- package/test/resources/9999999/triggeredSend/get-rcb-key-expected.json +0 -28
- package/test/resources/9999999/triggeredSend/get-rcb-name-expected.json +0 -28
- package/test/resources/9999999/triggeredSend/patch-expected.json +0 -27
- package/test/resources/9999999/triggeredSend/post-expected.json +0 -27
- package/test/resources/9999999/triggeredSend/template-expected.json +0 -28
- package/test/resources/9999999/triggeredSendDefinition/create-response.xml +0 -79
- package/test/resources/9999999/triggeredSendDefinition/delete-response.xml +0 -36
- package/test/resources/9999999/triggeredSendDefinition/retrieve-CustomerKey=testExisting_triggeredSend-response.xml +0 -72
- package/test/resources/9999999/triggeredSendDefinition/retrieve-CustomerKey=testExisting_triggeredSend_rcb-response.xml +0 -72
- package/test/resources/9999999/triggeredSendDefinition/retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml +0 -118
- package/test/resources/9999999/triggeredSendDefinition/retrieve-TriggeredSendStatusINdummy,Active-response.xml +0 -118
- package/test/resources/9999999/triggeredSendDefinition/update-response.xml +0 -78
- package/test/resources/9999999/triggeredSendSummary/get-expected.json +0 -24
- package/test/resources/9999999/triggeredSendSummary/retrieve-response.xml +0 -49
- package/test/resources/9999999/verification/build-expected.json +0 -11
- package/test/resources/9999999/verification/get-expected.json +0 -12
- package/test/resources/9999999/verification/patch-expected.json +0 -12
- package/test/resources/9999999/verification/post-expected.json +0 -12
- package/test/resources/9999999/verification/template-expected.json +0 -11
- package/test/resources/auth.json +0 -32
- package/test/resources/rest404-response.json +0 -5
- package/test/resources/retrieve-response.xml +0 -21
- package/test/type.asset.test.js +0 -1432
- package/test/type.attributeGroup.test.js +0 -56
- package/test/type.attributeSet.test.js +0 -56
- package/test/type.automation.test.js +0 -1003
- package/test/type.dataExtension.test.js +0 -419
- package/test/type.dataExtensionField.test.js +0 -81
- package/test/type.dataExtract.test.js +0 -186
- package/test/type.dataFilter.test.js +0 -182
- package/test/type.deliveryProfile.test.js +0 -45
- package/test/type.domainVerification.test.js +0 -169
- package/test/type.emailSend.test.js +0 -144
- package/test/type.event.test.js +0 -346
- package/test/type.fileLocation.test.js +0 -279
- package/test/type.fileTransfer.test.js +0 -183
- package/test/type.filter.test.js +0 -177
- package/test/type.folder.test.js +0 -264
- package/test/type.importFile.test.js +0 -223
- package/test/type.journey.test.js +0 -1547
- package/test/type.mobileKeyword.test.js +0 -279
- package/test/type.mobileMessage.test.js +0 -206
- package/test/type.query.test.js +0 -934
- package/test/type.script.test.js +0 -674
- package/test/type.sendClassification.test.js +0 -156
- package/test/type.senderProfile.test.js +0 -320
- package/test/type.transactionalEmail.test.js +0 -162
- package/test/type.transactionalPush.test.js +0 -160
- package/test/type.transactionalSMS.test.js +0 -222
- package/test/type.triggeredSend.test.js +0 -397
- package/test/type.triggeredSendSummary.test.js +0 -45
- package/test/type.user.test.js +0 -221
- package/test/type.verification.test.js +0 -169
- package/test/utils.js +0 -426
- package/tsconfig.json +0 -26
- package/tsconfig.npmScripts.json +0 -12
- package/tsconfig.precommit.json +0 -26
package/test/general.test.js
DELETED
|
@@ -1,2709 +0,0 @@
|
|
|
1
|
-
import * as chai from 'chai';
|
|
2
|
-
const assert = chai.assert;
|
|
3
|
-
const expect = chai.expect;
|
|
4
|
-
|
|
5
|
-
import chaiFiles from 'chai-files';
|
|
6
|
-
import * as testUtils from './utils.js';
|
|
7
|
-
import handler from '../lib/index.js';
|
|
8
|
-
chai.use(chaiFiles);
|
|
9
|
-
|
|
10
|
-
describe('GENERAL', () => {
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
testUtils.mockSetup();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
afterEach(() => {
|
|
16
|
-
testUtils.mockReset();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
describe('ReplaceContentBlockByX ================', () => {
|
|
20
|
-
describe('with types specified ================', () => {
|
|
21
|
-
it('Should replace references with ContentBlockByName w/o deploy', async () => {
|
|
22
|
-
handler.setOptions({ skipDeploy: true });
|
|
23
|
-
|
|
24
|
-
// WHEN
|
|
25
|
-
const replace = await handler.replaceCbReference(
|
|
26
|
-
'testInstance/testBU',
|
|
27
|
-
{
|
|
28
|
-
journey: null,
|
|
29
|
-
senderProfile: null,
|
|
30
|
-
},
|
|
31
|
-
'name'
|
|
32
|
-
);
|
|
33
|
-
// THEN
|
|
34
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
35
|
-
// retrieve result
|
|
36
|
-
assert.deepEqual(
|
|
37
|
-
replace['testInstance/testBU'].journey,
|
|
38
|
-
['testExisting_journey_Quicksend'],
|
|
39
|
-
'should have found the right journeys that need updating'
|
|
40
|
-
);
|
|
41
|
-
assert.deepEqual(
|
|
42
|
-
replace['testInstance/testBU'].senderProfile,
|
|
43
|
-
['testExisting_senderProfile_rcb'],
|
|
44
|
-
'should have found the right senderProfiles that need updating'
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
// check if conversions happened
|
|
48
|
-
assert.deepEqual(
|
|
49
|
-
await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
|
|
50
|
-
await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-name'),
|
|
51
|
-
'returned JSON was not equal expected'
|
|
52
|
-
);
|
|
53
|
-
assert.deepEqual(
|
|
54
|
-
await testUtils.getActualJson(
|
|
55
|
-
'testExisting_senderProfile_rcb',
|
|
56
|
-
'senderProfile'
|
|
57
|
-
),
|
|
58
|
-
await testUtils.getExpectedJson('9999999', 'senderProfile', 'get-rcb-name'),
|
|
59
|
-
'returned JSON was not equal expected'
|
|
60
|
-
);
|
|
61
|
-
assert.equal(
|
|
62
|
-
testUtils.getAPIHistoryLength(),
|
|
63
|
-
46,
|
|
64
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
65
|
-
);
|
|
66
|
-
return;
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
it('Should replace references with ContentBlockById w/o deploy', async () => {
|
|
70
|
-
handler.setOptions({ skipDeploy: true });
|
|
71
|
-
|
|
72
|
-
// WHEN
|
|
73
|
-
const replace = await handler.replaceCbReference(
|
|
74
|
-
'testInstance/testBU',
|
|
75
|
-
{
|
|
76
|
-
journey: null,
|
|
77
|
-
senderProfile: null,
|
|
78
|
-
},
|
|
79
|
-
'id'
|
|
80
|
-
);
|
|
81
|
-
// THEN
|
|
82
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
83
|
-
// retrieve result
|
|
84
|
-
assert.deepEqual(
|
|
85
|
-
replace['testInstance/testBU'].journey,
|
|
86
|
-
['testExisting_journey_Quicksend'],
|
|
87
|
-
'should have found the right journeys that need updating'
|
|
88
|
-
);
|
|
89
|
-
assert.deepEqual(
|
|
90
|
-
replace['testInstance/testBU'].senderProfile,
|
|
91
|
-
['testExisting_senderProfile_rcb'],
|
|
92
|
-
'should have found the right senderProfiles that need updating'
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
// check if conversions happened
|
|
96
|
-
assert.deepEqual(
|
|
97
|
-
await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
|
|
98
|
-
await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-id'),
|
|
99
|
-
'returned JSON was not equal expected'
|
|
100
|
-
);
|
|
101
|
-
assert.deepEqual(
|
|
102
|
-
await testUtils.getActualJson(
|
|
103
|
-
'testExisting_senderProfile_rcb',
|
|
104
|
-
'senderProfile'
|
|
105
|
-
),
|
|
106
|
-
await testUtils.getExpectedJson('9999999', 'senderProfile', 'get-rcb-id'),
|
|
107
|
-
'returned JSON was not equal expected'
|
|
108
|
-
);
|
|
109
|
-
assert.equal(
|
|
110
|
-
testUtils.getAPIHistoryLength(),
|
|
111
|
-
46,
|
|
112
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
113
|
-
);
|
|
114
|
-
return;
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
it('Should replace references with ContentBlockByKey w/o deploy', async () => {
|
|
118
|
-
handler.setOptions({ skipDeploy: true });
|
|
119
|
-
|
|
120
|
-
// WHEN
|
|
121
|
-
const replace = await handler.replaceCbReference(
|
|
122
|
-
'testInstance/testBU',
|
|
123
|
-
{
|
|
124
|
-
journey: null,
|
|
125
|
-
senderProfile: null,
|
|
126
|
-
},
|
|
127
|
-
'key'
|
|
128
|
-
);
|
|
129
|
-
// THEN
|
|
130
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
131
|
-
// retrieve result
|
|
132
|
-
assert.deepEqual(
|
|
133
|
-
replace['testInstance/testBU'].journey,
|
|
134
|
-
['testExisting_journey_Quicksend'],
|
|
135
|
-
'should have found the right assets that need updating'
|
|
136
|
-
);
|
|
137
|
-
assert.deepEqual(
|
|
138
|
-
replace['testInstance/testBU'].senderProfile,
|
|
139
|
-
['testExisting_senderProfile_rcb'],
|
|
140
|
-
'should have found the right senderProfiles that need updating'
|
|
141
|
-
);
|
|
142
|
-
|
|
143
|
-
// check if conversions happened
|
|
144
|
-
assert.deepEqual(
|
|
145
|
-
await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
|
|
146
|
-
await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-key'),
|
|
147
|
-
'returned JSON was not equal expected'
|
|
148
|
-
);
|
|
149
|
-
assert.deepEqual(
|
|
150
|
-
await testUtils.getActualJson(
|
|
151
|
-
'testExisting_senderProfile_rcb',
|
|
152
|
-
'senderProfile'
|
|
153
|
-
),
|
|
154
|
-
await testUtils.getExpectedJson('9999999', 'senderProfile', 'get-rcb-key'),
|
|
155
|
-
'returned JSON was not equal expected'
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
assert.equal(
|
|
159
|
-
testUtils.getAPIHistoryLength(),
|
|
160
|
-
46,
|
|
161
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
162
|
-
);
|
|
163
|
-
return;
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
describe('without types specified ================', () => {
|
|
168
|
-
it('Should replace references with ContentBlockByName w/o deploy', async () => {
|
|
169
|
-
handler.setOptions({ skipDeploy: true });
|
|
170
|
-
|
|
171
|
-
// WHEN
|
|
172
|
-
const replace = await handler.replaceCbReference(
|
|
173
|
-
'testInstance/testBU',
|
|
174
|
-
undefined,
|
|
175
|
-
'name'
|
|
176
|
-
);
|
|
177
|
-
// THEN
|
|
178
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
179
|
-
// retrieve result
|
|
180
|
-
assert.deepEqual(
|
|
181
|
-
replace['testInstance/testBU'].asset,
|
|
182
|
-
[
|
|
183
|
-
'testExisting_asset_htmlblock',
|
|
184
|
-
'testExisting_htmlblock1',
|
|
185
|
-
'testExisting_htmlblock 3 spaces',
|
|
186
|
-
'testExisting_asset_message',
|
|
187
|
-
],
|
|
188
|
-
'should have found the right assets that need updating'
|
|
189
|
-
);
|
|
190
|
-
assert.deepEqual(
|
|
191
|
-
replace['testInstance/testBU'].journey,
|
|
192
|
-
['testExisting_journey_Quicksend'],
|
|
193
|
-
'should have found the right assets that need updating'
|
|
194
|
-
);
|
|
195
|
-
assert.deepEqual(
|
|
196
|
-
replace['testInstance/testBU'].script,
|
|
197
|
-
[
|
|
198
|
-
'testExisting_script_ampscript',
|
|
199
|
-
'testExisting_script_ampincluded',
|
|
200
|
-
'testExisting_script_mixed',
|
|
201
|
-
],
|
|
202
|
-
'should have found the right scripts that need updating'
|
|
203
|
-
);
|
|
204
|
-
assert.deepEqual(
|
|
205
|
-
replace['testInstance/testBU'].senderProfile,
|
|
206
|
-
['testExisting_senderProfile_rcb'],
|
|
207
|
-
'should have found the right senderProfiles that need updating'
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
// check if conversions happened
|
|
211
|
-
assert.deepEqual(
|
|
212
|
-
await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
|
|
213
|
-
await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-name'),
|
|
214
|
-
'returned JSON was not equal expected'
|
|
215
|
-
);
|
|
216
|
-
assert.deepEqual(
|
|
217
|
-
await testUtils.getActualJson(
|
|
218
|
-
'testExisting_senderProfile_rcb',
|
|
219
|
-
'senderProfile'
|
|
220
|
-
),
|
|
221
|
-
await testUtils.getExpectedJson('9999999', 'senderProfile', 'get-rcb-name'),
|
|
222
|
-
'returned JSON was not equal expected'
|
|
223
|
-
);
|
|
224
|
-
|
|
225
|
-
assert.equal(
|
|
226
|
-
testUtils.getAPIHistoryLength(),
|
|
227
|
-
82,
|
|
228
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
229
|
-
);
|
|
230
|
-
return;
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
it('Should replace references with ContentBlockById w/o deploy', async () => {
|
|
234
|
-
handler.setOptions({ skipDeploy: true });
|
|
235
|
-
|
|
236
|
-
// WHEN
|
|
237
|
-
const replace = await handler.replaceCbReference(
|
|
238
|
-
'testInstance/testBU',
|
|
239
|
-
undefined,
|
|
240
|
-
'id'
|
|
241
|
-
);
|
|
242
|
-
// THEN
|
|
243
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
244
|
-
// retrieve result
|
|
245
|
-
assert.deepEqual(
|
|
246
|
-
replace['testInstance/testBU'].asset,
|
|
247
|
-
[
|
|
248
|
-
'testExisting_htmlblock1',
|
|
249
|
-
'testExisting_htmlblock 3 spaces',
|
|
250
|
-
'testExisting_asset_message',
|
|
251
|
-
],
|
|
252
|
-
'should have found the right assets that need updating'
|
|
253
|
-
);
|
|
254
|
-
assert.deepEqual(
|
|
255
|
-
replace['testInstance/testBU'].journey,
|
|
256
|
-
['testExisting_journey_Quicksend'],
|
|
257
|
-
'should have found the right assets that need updating'
|
|
258
|
-
);
|
|
259
|
-
assert.deepEqual(
|
|
260
|
-
replace['testInstance/testBU'].script,
|
|
261
|
-
['testExisting_script_ampscript', 'testExisting_script_mixed'],
|
|
262
|
-
'should have found the right scripts that need updating'
|
|
263
|
-
);
|
|
264
|
-
assert.deepEqual(
|
|
265
|
-
replace['testInstance/testBU'].senderProfile,
|
|
266
|
-
['testExisting_senderProfile_rcb'],
|
|
267
|
-
'should have found the right senderProfiles that need updating'
|
|
268
|
-
);
|
|
269
|
-
|
|
270
|
-
// check if conversions happened
|
|
271
|
-
assert.deepEqual(
|
|
272
|
-
await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
|
|
273
|
-
await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-id'),
|
|
274
|
-
'returned JSON was not equal expected'
|
|
275
|
-
);
|
|
276
|
-
assert.deepEqual(
|
|
277
|
-
await testUtils.getActualJson(
|
|
278
|
-
'testExisting_senderProfile_rcb',
|
|
279
|
-
'senderProfile'
|
|
280
|
-
),
|
|
281
|
-
await testUtils.getExpectedJson('9999999', 'senderProfile', 'get-rcb-id'),
|
|
282
|
-
'returned JSON was not equal expected'
|
|
283
|
-
);
|
|
284
|
-
|
|
285
|
-
assert.equal(
|
|
286
|
-
testUtils.getAPIHistoryLength(),
|
|
287
|
-
82,
|
|
288
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
289
|
-
);
|
|
290
|
-
return;
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
it('Should replace references with ContentBlockByKey w/o deploy', async () => {
|
|
294
|
-
handler.setOptions({ skipDeploy: true });
|
|
295
|
-
|
|
296
|
-
// WHEN
|
|
297
|
-
const replace = await handler.replaceCbReference(
|
|
298
|
-
'testInstance/testBU',
|
|
299
|
-
undefined,
|
|
300
|
-
'key'
|
|
301
|
-
);
|
|
302
|
-
// THEN
|
|
303
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
304
|
-
// retrieve result
|
|
305
|
-
assert.deepEqual(
|
|
306
|
-
replace['testInstance/testBU'].asset,
|
|
307
|
-
[
|
|
308
|
-
'testExisting_asset_htmlblock',
|
|
309
|
-
'testExisting_htmlblock1',
|
|
310
|
-
'testExisting_asset_message',
|
|
311
|
-
],
|
|
312
|
-
'should have found the right assets that need updating'
|
|
313
|
-
);
|
|
314
|
-
assert.deepEqual(
|
|
315
|
-
replace['testInstance/testBU'].journey,
|
|
316
|
-
['testExisting_journey_Quicksend'],
|
|
317
|
-
'should have found the right assets that need updating'
|
|
318
|
-
);
|
|
319
|
-
assert.deepEqual(
|
|
320
|
-
replace['testInstance/testBU'].script,
|
|
321
|
-
['testExisting_script_ampscript', 'testExisting_script_ampincluded'],
|
|
322
|
-
'should have found the right scripts that need updating'
|
|
323
|
-
);
|
|
324
|
-
assert.deepEqual(
|
|
325
|
-
replace['testInstance/testBU'].senderProfile,
|
|
326
|
-
['testExisting_senderProfile_rcb'],
|
|
327
|
-
'should have found the right senderProfiles that need updating'
|
|
328
|
-
);
|
|
329
|
-
|
|
330
|
-
// check if conversions happened
|
|
331
|
-
assert.deepEqual(
|
|
332
|
-
await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
|
|
333
|
-
await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-key'),
|
|
334
|
-
'returned JSON was not equal expected'
|
|
335
|
-
);
|
|
336
|
-
assert.deepEqual(
|
|
337
|
-
await testUtils.getActualJson(
|
|
338
|
-
'testExisting_senderProfile_rcb',
|
|
339
|
-
'senderProfile'
|
|
340
|
-
),
|
|
341
|
-
await testUtils.getExpectedJson('9999999', 'senderProfile', 'get-rcb-key'),
|
|
342
|
-
'returned JSON was not equal expected'
|
|
343
|
-
);
|
|
344
|
-
|
|
345
|
-
assert.equal(
|
|
346
|
-
testUtils.getAPIHistoryLength(),
|
|
347
|
-
82,
|
|
348
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
349
|
-
);
|
|
350
|
-
return;
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
describe('with --metadata ================', () => {
|
|
356
|
-
describe('retrieve --metadata ~~~', () => {
|
|
357
|
-
it('retrieve single type without keys', async () => {
|
|
358
|
-
const argvMetadata = ['dataExtract'];
|
|
359
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
360
|
-
assert.notEqual(
|
|
361
|
-
typeof typeKeyCombo,
|
|
362
|
-
'undefined',
|
|
363
|
-
'typeKeyCombo should not be undefined'
|
|
364
|
-
);
|
|
365
|
-
const buName = 'testInstance/testBU';
|
|
366
|
-
const result = await handler.retrieve(buName, typeKeyCombo);
|
|
367
|
-
// THEN
|
|
368
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
369
|
-
|
|
370
|
-
const retrievedTypes = Object.keys(result[buName]);
|
|
371
|
-
assert.equal(retrievedTypes.length, 1, 'retrieve should have returned 1 type');
|
|
372
|
-
assert.equal(
|
|
373
|
-
retrievedTypes[0],
|
|
374
|
-
'dataExtract',
|
|
375
|
-
'retrieve should have returned 1 type'
|
|
376
|
-
);
|
|
377
|
-
assert.equal(
|
|
378
|
-
testUtils.getAPIHistoryLength(),
|
|
379
|
-
9,
|
|
380
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
381
|
-
);
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
it('retrieve multiple type without keys', async () => {
|
|
385
|
-
const argvMetadata = ['dataExtension', 'senderProfile'];
|
|
386
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
387
|
-
assert.notEqual(
|
|
388
|
-
typeof typeKeyCombo,
|
|
389
|
-
'undefined',
|
|
390
|
-
'typeKeyCombo should not be undefined'
|
|
391
|
-
);
|
|
392
|
-
const buName = 'testInstance/testBU';
|
|
393
|
-
const result = await handler.retrieve(buName, typeKeyCombo);
|
|
394
|
-
// THEN
|
|
395
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
396
|
-
|
|
397
|
-
const retrievedTypes = Object.keys(result[buName]);
|
|
398
|
-
assert.equal(retrievedTypes.length, 2, 'retrieve should have returned 2 types');
|
|
399
|
-
assert.equal(
|
|
400
|
-
retrievedTypes[0],
|
|
401
|
-
'dataExtension',
|
|
402
|
-
'retrieve should have returned dataExtension'
|
|
403
|
-
);
|
|
404
|
-
assert.equal(
|
|
405
|
-
retrievedTypes[1],
|
|
406
|
-
'senderProfile',
|
|
407
|
-
'retrieve should have returned senderProfile'
|
|
408
|
-
);
|
|
409
|
-
assert.equal(
|
|
410
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
411
|
-
3,
|
|
412
|
-
'retrieve should have returned 3 senderProfile'
|
|
413
|
-
);
|
|
414
|
-
assert.equal(
|
|
415
|
-
testUtils.getAPIHistoryLength(),
|
|
416
|
-
10,
|
|
417
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
418
|
-
);
|
|
419
|
-
});
|
|
420
|
-
|
|
421
|
-
it('retrieve multiple type with keys', async () => {
|
|
422
|
-
const argvMetadata = [
|
|
423
|
-
'dataExtension',
|
|
424
|
-
'dataExtract:wrong-key',
|
|
425
|
-
'senderProfile:Default',
|
|
426
|
-
'query:testExisting_query',
|
|
427
|
-
'query:key:testExisting_query2',
|
|
428
|
-
];
|
|
429
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
430
|
-
assert.notEqual(
|
|
431
|
-
typeof typeKeyCombo,
|
|
432
|
-
'undefined',
|
|
433
|
-
'typeKeyCombo should not be undefined'
|
|
434
|
-
);
|
|
435
|
-
const buName = 'testInstance/testBU';
|
|
436
|
-
const result = await handler.retrieve(buName, typeKeyCombo);
|
|
437
|
-
// THEN
|
|
438
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
439
|
-
|
|
440
|
-
const retrievedTypes = Object.keys(result[buName]);
|
|
441
|
-
assert.equal(retrievedTypes.length, 4, 'retrieve should have returned 4 types');
|
|
442
|
-
assert.equal(
|
|
443
|
-
retrievedTypes.includes('dataExtension'),
|
|
444
|
-
true,
|
|
445
|
-
'retrieve should have returned dataExtension'
|
|
446
|
-
);
|
|
447
|
-
assert.equal(
|
|
448
|
-
retrievedTypes.includes('dataExtract'),
|
|
449
|
-
true,
|
|
450
|
-
'retrieve should have returned dataExtract'
|
|
451
|
-
);
|
|
452
|
-
assert.equal(
|
|
453
|
-
retrievedTypes.includes('senderProfile'),
|
|
454
|
-
true,
|
|
455
|
-
'retrieve should have returned senderProfile'
|
|
456
|
-
);
|
|
457
|
-
assert.equal(
|
|
458
|
-
retrievedTypes.includes('query'),
|
|
459
|
-
true,
|
|
460
|
-
'retrieve should have returned query'
|
|
461
|
-
);
|
|
462
|
-
assert.equal(
|
|
463
|
-
Object.keys(result[buName]['dataExtension']).length,
|
|
464
|
-
8,
|
|
465
|
-
'retrieve should have returned 7 dataExtension'
|
|
466
|
-
);
|
|
467
|
-
assert.equal(
|
|
468
|
-
Object.keys(result[buName]['dataExtract']).length,
|
|
469
|
-
0,
|
|
470
|
-
'retrieve should have returned 0 dataExtracts'
|
|
471
|
-
);
|
|
472
|
-
assert.equal(
|
|
473
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
474
|
-
1,
|
|
475
|
-
'retrieve should have returned 1 senderProfile'
|
|
476
|
-
);
|
|
477
|
-
assert.equal(
|
|
478
|
-
Object.keys(result[buName]['query']).length,
|
|
479
|
-
2,
|
|
480
|
-
'retrieve should have returned 2 query'
|
|
481
|
-
);
|
|
482
|
-
assert.equal(
|
|
483
|
-
testUtils.getAPIHistoryLength(),
|
|
484
|
-
18,
|
|
485
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
486
|
-
);
|
|
487
|
-
});
|
|
488
|
-
});
|
|
489
|
-
|
|
490
|
-
describe('deploy --metadata ~~~', () => {
|
|
491
|
-
beforeEach(() => {
|
|
492
|
-
testUtils.mockSetup(true);
|
|
493
|
-
});
|
|
494
|
-
|
|
495
|
-
it('deploy single type without keys', async () => {
|
|
496
|
-
const argvMetadata = ['dataExtract'];
|
|
497
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
498
|
-
assert.notEqual(
|
|
499
|
-
typeof typeKeyCombo,
|
|
500
|
-
'undefined',
|
|
501
|
-
'typeKeyCombo should not be undefined'
|
|
502
|
-
);
|
|
503
|
-
const buName = 'testInstance/testBU';
|
|
504
|
-
const result = await handler.deploy(buName, typeKeyCombo);
|
|
505
|
-
// THEN
|
|
506
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
507
|
-
|
|
508
|
-
const deployedTypes = Object.keys(result[buName]);
|
|
509
|
-
assert.equal(deployedTypes.length, 1, 'deploy should have returned 1 type');
|
|
510
|
-
assert.equal(deployedTypes[0], 'dataExtract', 'deploy should have returned 1 type');
|
|
511
|
-
assert.equal(
|
|
512
|
-
testUtils.getAPIHistoryLength(),
|
|
513
|
-
13,
|
|
514
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
515
|
-
);
|
|
516
|
-
});
|
|
517
|
-
|
|
518
|
-
it('deploy multiple type without keys', async () => {
|
|
519
|
-
const argvMetadata = ['dataExtension', 'senderProfile'];
|
|
520
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
521
|
-
assert.notEqual(
|
|
522
|
-
typeof typeKeyCombo,
|
|
523
|
-
'undefined',
|
|
524
|
-
'typeKeyCombo should not be undefined'
|
|
525
|
-
);
|
|
526
|
-
const buName = 'testInstance/testBU';
|
|
527
|
-
const result = await handler.deploy(buName, typeKeyCombo);
|
|
528
|
-
// THEN
|
|
529
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
530
|
-
|
|
531
|
-
const deployedTypes = Object.keys(result[buName]);
|
|
532
|
-
assert.equal(deployedTypes.length, 2, 'deploy should have returned 2 types');
|
|
533
|
-
assert.equal(
|
|
534
|
-
deployedTypes[0],
|
|
535
|
-
'dataExtension',
|
|
536
|
-
'deploy should have returned dataExtension'
|
|
537
|
-
);
|
|
538
|
-
assert.equal(
|
|
539
|
-
deployedTypes[1],
|
|
540
|
-
'senderProfile',
|
|
541
|
-
'deploy should have returned senderProfile'
|
|
542
|
-
);
|
|
543
|
-
assert.equal(
|
|
544
|
-
Object.keys(result[buName]['dataExtension']).length,
|
|
545
|
-
2,
|
|
546
|
-
'deploy should have returned 2 dataExtension'
|
|
547
|
-
);
|
|
548
|
-
assert.equal(
|
|
549
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
550
|
-
2,
|
|
551
|
-
'deploy should have returned 2 senderProfile'
|
|
552
|
-
);
|
|
553
|
-
assert.equal(
|
|
554
|
-
testUtils.getAPIHistoryLength(),
|
|
555
|
-
20,
|
|
556
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
557
|
-
);
|
|
558
|
-
});
|
|
559
|
-
|
|
560
|
-
it('deploy multiple type with keys', async () => {
|
|
561
|
-
const argvMetadata = [
|
|
562
|
-
'dataExtension',
|
|
563
|
-
'dataExtract:wrong-key',
|
|
564
|
-
'senderProfile:testExisting_senderProfile',
|
|
565
|
-
'query:testExisting_query',
|
|
566
|
-
'query:key:wrong-key2',
|
|
567
|
-
];
|
|
568
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
569
|
-
assert.notEqual(
|
|
570
|
-
typeof typeKeyCombo,
|
|
571
|
-
'undefined',
|
|
572
|
-
'typeKeyCombo should not be undefined'
|
|
573
|
-
);
|
|
574
|
-
const buName = 'testInstance/testBU';
|
|
575
|
-
const result = await handler.deploy(buName, typeKeyCombo);
|
|
576
|
-
// THEN
|
|
577
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
578
|
-
|
|
579
|
-
const deployedTypes = Object.keys(result[buName]);
|
|
580
|
-
assert.equal(deployedTypes.length, 3, 'deploy should have returned 3 types');
|
|
581
|
-
assert.equal(
|
|
582
|
-
deployedTypes.includes('dataExtension'),
|
|
583
|
-
true,
|
|
584
|
-
'deploy should have returned dataExtension'
|
|
585
|
-
);
|
|
586
|
-
assert.equal(
|
|
587
|
-
deployedTypes.includes('dataExtract'),
|
|
588
|
-
false,
|
|
589
|
-
'deploy should have returned dataExtract'
|
|
590
|
-
);
|
|
591
|
-
assert.equal(
|
|
592
|
-
deployedTypes.includes('senderProfile'),
|
|
593
|
-
true,
|
|
594
|
-
'deploy should have returned senderProfile'
|
|
595
|
-
);
|
|
596
|
-
assert.equal(
|
|
597
|
-
deployedTypes.includes('query'),
|
|
598
|
-
true,
|
|
599
|
-
'deploy should have returned query'
|
|
600
|
-
);
|
|
601
|
-
assert.equal(
|
|
602
|
-
Object.keys(result[buName]['dataExtension']).length,
|
|
603
|
-
2,
|
|
604
|
-
'deploy should have returned 2 dataExtension'
|
|
605
|
-
);
|
|
606
|
-
assert.equal(
|
|
607
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
608
|
-
1,
|
|
609
|
-
'deploy should have returned 1 senderProfile'
|
|
610
|
-
);
|
|
611
|
-
assert.equal(
|
|
612
|
-
Object.keys(result[buName]['query']).length,
|
|
613
|
-
1,
|
|
614
|
-
'deploy should have returned 1 query'
|
|
615
|
-
);
|
|
616
|
-
assert.equal(
|
|
617
|
-
testUtils.getAPIHistoryLength(),
|
|
618
|
-
19,
|
|
619
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
620
|
-
);
|
|
621
|
-
});
|
|
622
|
-
|
|
623
|
-
it('deploy multiple type with keys and --noUpdate', async () => {
|
|
624
|
-
handler.setOptions({ noUpdate: true });
|
|
625
|
-
|
|
626
|
-
const argvMetadata = [
|
|
627
|
-
'dataExtension',
|
|
628
|
-
'dataExtract:wrong-key',
|
|
629
|
-
'senderProfile:testExisting_senderProfile',
|
|
630
|
-
'query:testExisting_query',
|
|
631
|
-
'query:key:wrong-key2',
|
|
632
|
-
];
|
|
633
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
634
|
-
assert.notEqual(
|
|
635
|
-
typeof typeKeyCombo,
|
|
636
|
-
'undefined',
|
|
637
|
-
'typeKeyCombo should not be undefined'
|
|
638
|
-
);
|
|
639
|
-
const buName = 'testInstance/testBU';
|
|
640
|
-
const result = await handler.deploy(buName, typeKeyCombo);
|
|
641
|
-
// THEN
|
|
642
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
643
|
-
|
|
644
|
-
const deployedTypes = Object.keys(result[buName]);
|
|
645
|
-
assert.equal(deployedTypes.length, 3, 'deploy should have returned 3 types');
|
|
646
|
-
assert.equal(
|
|
647
|
-
deployedTypes.includes('dataExtension'),
|
|
648
|
-
true,
|
|
649
|
-
'deploy should have returned dataExtension'
|
|
650
|
-
);
|
|
651
|
-
assert.equal(
|
|
652
|
-
deployedTypes.includes('dataExtract'),
|
|
653
|
-
false,
|
|
654
|
-
'deploy should have returned dataExtract'
|
|
655
|
-
);
|
|
656
|
-
assert.equal(
|
|
657
|
-
deployedTypes.includes('senderProfile'),
|
|
658
|
-
true,
|
|
659
|
-
'deploy should have returned senderProfile'
|
|
660
|
-
);
|
|
661
|
-
assert.equal(
|
|
662
|
-
deployedTypes.includes('query'),
|
|
663
|
-
true,
|
|
664
|
-
'deploy should have returned query'
|
|
665
|
-
);
|
|
666
|
-
assert.equal(
|
|
667
|
-
Object.keys(result[buName]['dataExtension']).length,
|
|
668
|
-
1,
|
|
669
|
-
'deploy should have returned 1 dataExtension'
|
|
670
|
-
);
|
|
671
|
-
assert.equal(
|
|
672
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
673
|
-
0,
|
|
674
|
-
'deploy should have returned 0 senderProfile'
|
|
675
|
-
);
|
|
676
|
-
assert.equal(
|
|
677
|
-
Object.keys(result[buName]['query']).length,
|
|
678
|
-
0,
|
|
679
|
-
'deploy should have returned 0 query'
|
|
680
|
-
);
|
|
681
|
-
assert.equal(
|
|
682
|
-
testUtils.getAPIHistoryLength(),
|
|
683
|
-
16,
|
|
684
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
685
|
-
);
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
it('skip deploy event with bad filename or bad extension', async () => {
|
|
689
|
-
testUtils.copyToDeploy('event-deploy', 'event');
|
|
690
|
-
|
|
691
|
-
const argvMetadata = [
|
|
692
|
-
'event:testNew_event_badExtension',
|
|
693
|
-
'event:testNew_event_badName',
|
|
694
|
-
];
|
|
695
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
696
|
-
const buName = 'testInstance/testBU';
|
|
697
|
-
await handler.deploy(buName, typeKeyCombo);
|
|
698
|
-
// THEN
|
|
699
|
-
assert.equal(process.exitCode, 1, 'deploy should not have thrown an error');
|
|
700
|
-
|
|
701
|
-
assert.equal(
|
|
702
|
-
testUtils.getAPIHistoryLength(),
|
|
703
|
-
0,
|
|
704
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
705
|
-
);
|
|
706
|
-
});
|
|
707
|
-
|
|
708
|
-
it('skip deploy asset with bad filename or bad extension', async () => {
|
|
709
|
-
testUtils.copyToDeploy('asset-deploy', 'asset');
|
|
710
|
-
const argvMetadata = [
|
|
711
|
-
'asset:testNew_asset_badExtension',
|
|
712
|
-
'asset:testNew_asset_badName',
|
|
713
|
-
];
|
|
714
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
715
|
-
const buName = 'testInstance/testBU';
|
|
716
|
-
await handler.deploy(buName, typeKeyCombo);
|
|
717
|
-
|
|
718
|
-
// THEN
|
|
719
|
-
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
720
|
-
|
|
721
|
-
assert.equal(
|
|
722
|
-
testUtils.getAPIHistoryLength(),
|
|
723
|
-
0,
|
|
724
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
725
|
-
);
|
|
726
|
-
});
|
|
727
|
-
|
|
728
|
-
it('skip deploy based on validation rule "filterPrefixByBu" with --fix without error', async () => {
|
|
729
|
-
testUtils.copyToDeploy('asset-deploy2', 'asset');
|
|
730
|
-
testUtils.copyToDeploy('dataExtension-deploy', 'dataExtension');
|
|
731
|
-
|
|
732
|
-
const buName = 'testInstance/testBU';
|
|
733
|
-
|
|
734
|
-
handler.setOptions({ fix: true });
|
|
735
|
-
|
|
736
|
-
await handler.deploy(buName, {
|
|
737
|
-
asset: ['testBlacklist_asset_htmlblock'],
|
|
738
|
-
dataExtension: ['testBlacklist_dataExtension'],
|
|
739
|
-
});
|
|
740
|
-
|
|
741
|
-
// THEN
|
|
742
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
743
|
-
|
|
744
|
-
assert.equal(
|
|
745
|
-
testUtils.getAPIHistoryLength(),
|
|
746
|
-
8,
|
|
747
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
748
|
-
);
|
|
749
|
-
});
|
|
750
|
-
|
|
751
|
-
it('skip deploy based on validation rule "filterPrefixByBu" without --fix but with error', async () => {
|
|
752
|
-
testUtils.copyToDeploy('asset-deploy2', 'asset');
|
|
753
|
-
testUtils.copyToDeploy('dataExtension-deploy', 'dataExtension');
|
|
754
|
-
|
|
755
|
-
const buName = 'testInstance/testBU';
|
|
756
|
-
|
|
757
|
-
await handler.deploy(buName, {
|
|
758
|
-
asset: ['testBlacklist_asset_htmlblock'],
|
|
759
|
-
dataExtension: ['testBlacklist_dataExtension'],
|
|
760
|
-
});
|
|
761
|
-
|
|
762
|
-
// THEN
|
|
763
|
-
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
764
|
-
|
|
765
|
-
assert.equal(
|
|
766
|
-
testUtils.getAPIHistoryLength(),
|
|
767
|
-
8,
|
|
768
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
769
|
-
);
|
|
770
|
-
});
|
|
771
|
-
});
|
|
772
|
-
|
|
773
|
-
describe('template --metadata ~~~', () => {
|
|
774
|
-
it('buildTemplate + buildDefinition for multiple types with keys', async () => {
|
|
775
|
-
// download first before we test buildTemplate
|
|
776
|
-
await handler.retrieve('testInstance/testBU', ['automation', 'query']);
|
|
777
|
-
|
|
778
|
-
const expectedApiCallsRetrieve = 37;
|
|
779
|
-
assert.equal(
|
|
780
|
-
testUtils.getAPIHistoryLength(),
|
|
781
|
-
expectedApiCallsRetrieve,
|
|
782
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
783
|
-
);
|
|
784
|
-
|
|
785
|
-
// preparation
|
|
786
|
-
const argvMetadata = [
|
|
787
|
-
'automation:testExisting_automation',
|
|
788
|
-
'query:testExisting_query',
|
|
789
|
-
'query:bad',
|
|
790
|
-
];
|
|
791
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
792
|
-
assert.notEqual(
|
|
793
|
-
typeof typeKeyCombo,
|
|
794
|
-
'undefined',
|
|
795
|
-
'typeKeyCombo should not be undefined'
|
|
796
|
-
);
|
|
797
|
-
const buName = 'testInstance/testBU';
|
|
798
|
-
|
|
799
|
-
// *** buildTemplate ***
|
|
800
|
-
const templateResult = await handler.buildTemplate(
|
|
801
|
-
buName,
|
|
802
|
-
typeKeyCombo,
|
|
803
|
-
undefined,
|
|
804
|
-
['testSourceMarket']
|
|
805
|
-
);
|
|
806
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
807
|
-
// check automation
|
|
808
|
-
assert.equal(
|
|
809
|
-
templateResult.automation ? Object.keys(templateResult.automation).length : 0,
|
|
810
|
-
1,
|
|
811
|
-
'only one automation expected'
|
|
812
|
-
);
|
|
813
|
-
assert.deepEqual(
|
|
814
|
-
await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
815
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
816
|
-
'returned template was not equal expected'
|
|
817
|
-
);
|
|
818
|
-
// check query
|
|
819
|
-
assert.equal(
|
|
820
|
-
templateResult.query ? Object.keys(templateResult.query).length : 0,
|
|
821
|
-
1,
|
|
822
|
-
'only one query expected'
|
|
823
|
-
);
|
|
824
|
-
assert.deepEqual(
|
|
825
|
-
await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
826
|
-
await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
827
|
-
'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
828
|
-
);
|
|
829
|
-
expect(
|
|
830
|
-
await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
831
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
832
|
-
|
|
833
|
-
// *** buildDefinition ***
|
|
834
|
-
const definitionResult = await handler.buildDefinition(
|
|
835
|
-
buName,
|
|
836
|
-
typeKeyCombo,
|
|
837
|
-
undefined,
|
|
838
|
-
['testTargetMarket']
|
|
839
|
-
);
|
|
840
|
-
assert.equal(
|
|
841
|
-
process.exitCode,
|
|
842
|
-
0,
|
|
843
|
-
'buildDefinition should not have thrown an error'
|
|
844
|
-
);
|
|
845
|
-
|
|
846
|
-
// check automation
|
|
847
|
-
assert.equal(
|
|
848
|
-
definitionResult.automation
|
|
849
|
-
? Object.keys(definitionResult.automation).length
|
|
850
|
-
: 0,
|
|
851
|
-
1,
|
|
852
|
-
'only one automation expected'
|
|
853
|
-
);
|
|
854
|
-
assert.deepEqual(
|
|
855
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
856
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
857
|
-
'returned deployment file was not equal expected'
|
|
858
|
-
);
|
|
859
|
-
|
|
860
|
-
// check query
|
|
861
|
-
assert.equal(
|
|
862
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
863
|
-
1,
|
|
864
|
-
'only one query expected'
|
|
865
|
-
);
|
|
866
|
-
assert.deepEqual(
|
|
867
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
868
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
869
|
-
'returned deployment JSON was not equal expected'
|
|
870
|
-
);
|
|
871
|
-
expect(
|
|
872
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
873
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
874
|
-
|
|
875
|
-
assert.equal(
|
|
876
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
877
|
-
0,
|
|
878
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
879
|
-
);
|
|
880
|
-
});
|
|
881
|
-
|
|
882
|
-
it('buildTemplate + buildDefinition for multiple types with keys and --retrieve', async () => {
|
|
883
|
-
const expectedApiCallsRetrieve = 34;
|
|
884
|
-
|
|
885
|
-
// preparation
|
|
886
|
-
const argvMetadata = [
|
|
887
|
-
'automation:testExisting_automation',
|
|
888
|
-
'query:testExisting_query',
|
|
889
|
-
'query:bad',
|
|
890
|
-
];
|
|
891
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
892
|
-
assert.notEqual(
|
|
893
|
-
typeof typeKeyCombo,
|
|
894
|
-
'undefined',
|
|
895
|
-
'typeKeyCombo should not be undefined'
|
|
896
|
-
);
|
|
897
|
-
const buName = 'testInstance/testBU';
|
|
898
|
-
|
|
899
|
-
handler.setOptions({ retrieve: true });
|
|
900
|
-
|
|
901
|
-
// *** buildTemplate ***
|
|
902
|
-
const templateResult = await handler.buildTemplate(
|
|
903
|
-
buName,
|
|
904
|
-
typeKeyCombo,
|
|
905
|
-
undefined,
|
|
906
|
-
['testSourceMarket']
|
|
907
|
-
);
|
|
908
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
909
|
-
// check automation
|
|
910
|
-
assert.equal(
|
|
911
|
-
templateResult.automation ? Object.keys(templateResult.automation).length : 0,
|
|
912
|
-
1,
|
|
913
|
-
'only one automation expected'
|
|
914
|
-
);
|
|
915
|
-
assert.deepEqual(
|
|
916
|
-
await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
917
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
918
|
-
'returned template was not equal expected'
|
|
919
|
-
);
|
|
920
|
-
// check query
|
|
921
|
-
assert.equal(
|
|
922
|
-
templateResult.query ? Object.keys(templateResult.query).length : 0,
|
|
923
|
-
1,
|
|
924
|
-
'only one query expected'
|
|
925
|
-
);
|
|
926
|
-
assert.deepEqual(
|
|
927
|
-
await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
928
|
-
await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
929
|
-
'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
930
|
-
);
|
|
931
|
-
expect(
|
|
932
|
-
await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
933
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
934
|
-
|
|
935
|
-
// *** buildDefinition ***
|
|
936
|
-
const definitionResult = await handler.buildDefinition(
|
|
937
|
-
buName,
|
|
938
|
-
typeKeyCombo,
|
|
939
|
-
undefined,
|
|
940
|
-
['testTargetMarket']
|
|
941
|
-
);
|
|
942
|
-
assert.equal(
|
|
943
|
-
process.exitCode,
|
|
944
|
-
0,
|
|
945
|
-
'buildDefinition should not have thrown an error'
|
|
946
|
-
);
|
|
947
|
-
|
|
948
|
-
// check automation
|
|
949
|
-
assert.equal(
|
|
950
|
-
definitionResult.automation
|
|
951
|
-
? Object.keys(definitionResult.automation).length
|
|
952
|
-
: 0,
|
|
953
|
-
1,
|
|
954
|
-
'only one automation expected'
|
|
955
|
-
);
|
|
956
|
-
assert.deepEqual(
|
|
957
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
958
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
959
|
-
'returned deployment file was not equal expected'
|
|
960
|
-
);
|
|
961
|
-
|
|
962
|
-
// check query
|
|
963
|
-
assert.equal(
|
|
964
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
965
|
-
1,
|
|
966
|
-
'only one query expected'
|
|
967
|
-
);
|
|
968
|
-
assert.deepEqual(
|
|
969
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
970
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
971
|
-
'returned deployment JSON was not equal expected'
|
|
972
|
-
);
|
|
973
|
-
expect(
|
|
974
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
975
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
976
|
-
|
|
977
|
-
assert.equal(
|
|
978
|
-
testUtils.getAPIHistoryLength(),
|
|
979
|
-
expectedApiCallsRetrieve,
|
|
980
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
981
|
-
);
|
|
982
|
-
});
|
|
983
|
-
|
|
984
|
-
it('buildTemplate + buildDefinition for multiple types with keys and --dependencies', async () => {
|
|
985
|
-
// download first before we test buildTemplate
|
|
986
|
-
await handler.retrieve('testInstance/testBU');
|
|
987
|
-
|
|
988
|
-
const expectedApiCallsRetrieve = 109;
|
|
989
|
-
assert.equal(
|
|
990
|
-
testUtils.getAPIHistoryLength(),
|
|
991
|
-
expectedApiCallsRetrieve,
|
|
992
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
993
|
-
);
|
|
994
|
-
|
|
995
|
-
// preparation
|
|
996
|
-
const argvMetadata = [
|
|
997
|
-
'automation:testExisting_automation',
|
|
998
|
-
'query:testExisting_query',
|
|
999
|
-
'query:bad',
|
|
1000
|
-
];
|
|
1001
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1002
|
-
assert.notEqual(
|
|
1003
|
-
typeof typeKeyCombo,
|
|
1004
|
-
'undefined',
|
|
1005
|
-
'typeKeyCombo should not be undefined'
|
|
1006
|
-
);
|
|
1007
|
-
const buName = 'testInstance/testBU';
|
|
1008
|
-
|
|
1009
|
-
// set skipInteraction to true to skip re-retrieving question
|
|
1010
|
-
handler.setOptions({ dependencies: true, skipInteraction: true });
|
|
1011
|
-
|
|
1012
|
-
// *** buildTemplate ***
|
|
1013
|
-
const templateResult = await handler.buildTemplate(
|
|
1014
|
-
buName,
|
|
1015
|
-
typeKeyCombo,
|
|
1016
|
-
undefined,
|
|
1017
|
-
['testSourceMarket']
|
|
1018
|
-
);
|
|
1019
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
1020
|
-
|
|
1021
|
-
// check type list
|
|
1022
|
-
assert.deepEqual(
|
|
1023
|
-
Object.keys(templateResult),
|
|
1024
|
-
[
|
|
1025
|
-
'automation',
|
|
1026
|
-
'dataExtension',
|
|
1027
|
-
'dataExtract',
|
|
1028
|
-
'domainVerification',
|
|
1029
|
-
'emailSend',
|
|
1030
|
-
'fileTransfer',
|
|
1031
|
-
'importFile',
|
|
1032
|
-
'query',
|
|
1033
|
-
'script',
|
|
1034
|
-
'sendClassification',
|
|
1035
|
-
'senderProfile',
|
|
1036
|
-
'verification',
|
|
1037
|
-
],
|
|
1038
|
-
'did not create deployment packages for all relevant types'
|
|
1039
|
-
);
|
|
1040
|
-
|
|
1041
|
-
// check automation
|
|
1042
|
-
assert.equal(
|
|
1043
|
-
templateResult.automation ? Object.keys(templateResult.automation).length : 0,
|
|
1044
|
-
1,
|
|
1045
|
-
'only one automation expected'
|
|
1046
|
-
);
|
|
1047
|
-
assert.deepEqual(
|
|
1048
|
-
await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
1049
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1050
|
-
'returned template was not equal expected'
|
|
1051
|
-
);
|
|
1052
|
-
// check query
|
|
1053
|
-
assert.equal(
|
|
1054
|
-
templateResult.query ? Object.keys(templateResult.query).length : 0,
|
|
1055
|
-
1,
|
|
1056
|
-
'only one query expected'
|
|
1057
|
-
);
|
|
1058
|
-
assert.deepEqual(
|
|
1059
|
-
await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
1060
|
-
await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1061
|
-
'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1062
|
-
);
|
|
1063
|
-
expect(
|
|
1064
|
-
await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
1065
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1066
|
-
|
|
1067
|
-
// *** buildDefinition ***
|
|
1068
|
-
const definitionResult = await handler.buildDefinition(
|
|
1069
|
-
buName,
|
|
1070
|
-
typeKeyCombo,
|
|
1071
|
-
undefined,
|
|
1072
|
-
['testTargetMarket']
|
|
1073
|
-
);
|
|
1074
|
-
assert.equal(
|
|
1075
|
-
process.exitCode,
|
|
1076
|
-
0,
|
|
1077
|
-
'buildDefinition should not have thrown an error'
|
|
1078
|
-
);
|
|
1079
|
-
|
|
1080
|
-
// check automation
|
|
1081
|
-
assert.equal(
|
|
1082
|
-
definitionResult.automation
|
|
1083
|
-
? Object.keys(definitionResult.automation).length
|
|
1084
|
-
: 0,
|
|
1085
|
-
1,
|
|
1086
|
-
'only one automation expected'
|
|
1087
|
-
);
|
|
1088
|
-
assert.deepEqual(
|
|
1089
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1090
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1091
|
-
'returned deployment file was not equal expected'
|
|
1092
|
-
);
|
|
1093
|
-
|
|
1094
|
-
// check query
|
|
1095
|
-
assert.equal(
|
|
1096
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
1097
|
-
1,
|
|
1098
|
-
'only one query expected'
|
|
1099
|
-
);
|
|
1100
|
-
assert.deepEqual(
|
|
1101
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1102
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1103
|
-
'returned deployment JSON was not equal expected'
|
|
1104
|
-
);
|
|
1105
|
-
expect(
|
|
1106
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1107
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1108
|
-
|
|
1109
|
-
assert.equal(
|
|
1110
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1111
|
-
4,
|
|
1112
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1113
|
-
);
|
|
1114
|
-
});
|
|
1115
|
-
|
|
1116
|
-
it('buildTemplate + buildDefinition for multiple types with keys and --dependencies and --retrieve', async () => {
|
|
1117
|
-
// preparation
|
|
1118
|
-
const argvMetadata = [
|
|
1119
|
-
'automation:testExisting_automation',
|
|
1120
|
-
'query:testExisting_query',
|
|
1121
|
-
'query:bad',
|
|
1122
|
-
];
|
|
1123
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1124
|
-
assert.notEqual(
|
|
1125
|
-
typeof typeKeyCombo,
|
|
1126
|
-
'undefined',
|
|
1127
|
-
'typeKeyCombo should not be undefined'
|
|
1128
|
-
);
|
|
1129
|
-
const buName = 'testInstance/testBU';
|
|
1130
|
-
|
|
1131
|
-
handler.setOptions({ dependencies: true, retrieve: true });
|
|
1132
|
-
|
|
1133
|
-
// *** buildTemplate ***
|
|
1134
|
-
const templateResult = await handler.buildTemplate(
|
|
1135
|
-
buName,
|
|
1136
|
-
typeKeyCombo,
|
|
1137
|
-
undefined,
|
|
1138
|
-
['testSourceMarket']
|
|
1139
|
-
);
|
|
1140
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
1141
|
-
|
|
1142
|
-
// check type list
|
|
1143
|
-
assert.deepEqual(
|
|
1144
|
-
Object.keys(templateResult),
|
|
1145
|
-
[
|
|
1146
|
-
'automation',
|
|
1147
|
-
'dataExtension',
|
|
1148
|
-
'dataExtract',
|
|
1149
|
-
'domainVerification',
|
|
1150
|
-
'emailSend',
|
|
1151
|
-
'fileTransfer',
|
|
1152
|
-
'importFile',
|
|
1153
|
-
'query',
|
|
1154
|
-
'script',
|
|
1155
|
-
'sendClassification',
|
|
1156
|
-
'senderProfile',
|
|
1157
|
-
'verification',
|
|
1158
|
-
],
|
|
1159
|
-
'did not create deployment packages for all relevant types'
|
|
1160
|
-
);
|
|
1161
|
-
|
|
1162
|
-
// check automation
|
|
1163
|
-
assert.equal(
|
|
1164
|
-
templateResult.automation ? Object.keys(templateResult.automation).length : 0,
|
|
1165
|
-
1,
|
|
1166
|
-
'only one automation expected'
|
|
1167
|
-
);
|
|
1168
|
-
assert.deepEqual(
|
|
1169
|
-
await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
1170
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1171
|
-
'returned template was not equal expected'
|
|
1172
|
-
);
|
|
1173
|
-
// check query
|
|
1174
|
-
assert.equal(
|
|
1175
|
-
templateResult.query ? Object.keys(templateResult.query).length : 0,
|
|
1176
|
-
1,
|
|
1177
|
-
'only one query expected'
|
|
1178
|
-
);
|
|
1179
|
-
assert.deepEqual(
|
|
1180
|
-
await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
1181
|
-
await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1182
|
-
'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1183
|
-
);
|
|
1184
|
-
expect(
|
|
1185
|
-
await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
1186
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1187
|
-
|
|
1188
|
-
// *** buildDefinition ***
|
|
1189
|
-
const definitionResult = await handler.buildDefinition(
|
|
1190
|
-
buName,
|
|
1191
|
-
typeKeyCombo,
|
|
1192
|
-
undefined,
|
|
1193
|
-
['testTargetMarket']
|
|
1194
|
-
);
|
|
1195
|
-
assert.equal(
|
|
1196
|
-
process.exitCode,
|
|
1197
|
-
0,
|
|
1198
|
-
'buildDefinition should not have thrown an error'
|
|
1199
|
-
);
|
|
1200
|
-
|
|
1201
|
-
// check automation
|
|
1202
|
-
assert.equal(
|
|
1203
|
-
definitionResult.automation
|
|
1204
|
-
? Object.keys(definitionResult.automation).length
|
|
1205
|
-
: 0,
|
|
1206
|
-
1,
|
|
1207
|
-
'only one automation expected'
|
|
1208
|
-
);
|
|
1209
|
-
assert.deepEqual(
|
|
1210
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1211
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1212
|
-
'returned deployment file was not equal expected'
|
|
1213
|
-
);
|
|
1214
|
-
|
|
1215
|
-
// check query
|
|
1216
|
-
assert.equal(
|
|
1217
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
1218
|
-
1,
|
|
1219
|
-
'only one query expected'
|
|
1220
|
-
);
|
|
1221
|
-
assert.deepEqual(
|
|
1222
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1223
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1224
|
-
'returned deployment JSON was not equal expected'
|
|
1225
|
-
);
|
|
1226
|
-
expect(
|
|
1227
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1228
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1229
|
-
|
|
1230
|
-
const expectedApiCallsRetrieve = 113;
|
|
1231
|
-
assert.equal(
|
|
1232
|
-
testUtils.getAPIHistoryLength(),
|
|
1233
|
-
expectedApiCallsRetrieve,
|
|
1234
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1235
|
-
);
|
|
1236
|
-
});
|
|
1237
|
-
|
|
1238
|
-
it('buildTemplate + buildDefinitionBulk multiple type with keys', async () => {
|
|
1239
|
-
// download first before we test buildTemplate
|
|
1240
|
-
await handler.retrieve('testInstance/testBU', ['automation', 'query']);
|
|
1241
|
-
|
|
1242
|
-
const expectedApiCallsRetrieve = 37;
|
|
1243
|
-
assert.equal(
|
|
1244
|
-
testUtils.getAPIHistoryLength(),
|
|
1245
|
-
expectedApiCallsRetrieve,
|
|
1246
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1247
|
-
);
|
|
1248
|
-
|
|
1249
|
-
// preparation
|
|
1250
|
-
const argvMetadata = [
|
|
1251
|
-
'automation:testExisting_automation',
|
|
1252
|
-
'query:testExisting_query',
|
|
1253
|
-
'query:bad',
|
|
1254
|
-
];
|
|
1255
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1256
|
-
assert.notEqual(
|
|
1257
|
-
typeof typeKeyCombo,
|
|
1258
|
-
'undefined',
|
|
1259
|
-
'typeKeyCombo should not be undefined'
|
|
1260
|
-
);
|
|
1261
|
-
const buName = 'testInstance/testBU';
|
|
1262
|
-
|
|
1263
|
-
// *** buildTemplate ***
|
|
1264
|
-
const templateResult = await handler.buildTemplate(
|
|
1265
|
-
buName,
|
|
1266
|
-
typeKeyCombo,
|
|
1267
|
-
undefined,
|
|
1268
|
-
['testSourceMarket']
|
|
1269
|
-
);
|
|
1270
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
1271
|
-
// check automation
|
|
1272
|
-
assert.equal(
|
|
1273
|
-
templateResult.automation ? Object.keys(templateResult.automation).length : 0,
|
|
1274
|
-
1,
|
|
1275
|
-
'only one automation expected'
|
|
1276
|
-
);
|
|
1277
|
-
assert.deepEqual(
|
|
1278
|
-
await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
1279
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1280
|
-
'returned template was not equal expected'
|
|
1281
|
-
);
|
|
1282
|
-
// check query
|
|
1283
|
-
assert.equal(
|
|
1284
|
-
templateResult.query ? Object.keys(templateResult.query).length : 0,
|
|
1285
|
-
1,
|
|
1286
|
-
'only one query expected'
|
|
1287
|
-
);
|
|
1288
|
-
assert.deepEqual(
|
|
1289
|
-
await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
1290
|
-
await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1291
|
-
'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1292
|
-
);
|
|
1293
|
-
expect(
|
|
1294
|
-
await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
1295
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1296
|
-
|
|
1297
|
-
// *** buildDefinitionBulk chained ***
|
|
1298
|
-
const definitionResult = await handler.buildDefinitionBulk(
|
|
1299
|
-
'deployment-target',
|
|
1300
|
-
typeKeyCombo
|
|
1301
|
-
);
|
|
1302
|
-
assert.equal(
|
|
1303
|
-
process.exitCode,
|
|
1304
|
-
0,
|
|
1305
|
-
'buildDefinitionBulk should not have thrown an error'
|
|
1306
|
-
);
|
|
1307
|
-
|
|
1308
|
-
// check automation
|
|
1309
|
-
assert.equal(
|
|
1310
|
-
definitionResult.automation?.['testInstance/testBU']?.testSourceMarket
|
|
1311
|
-
? Object.keys(
|
|
1312
|
-
definitionResult.automation?.['testInstance/testBU']?.testSourceMarket
|
|
1313
|
-
).length
|
|
1314
|
-
: 0,
|
|
1315
|
-
1,
|
|
1316
|
-
'only one automation expected'
|
|
1317
|
-
);
|
|
1318
|
-
assert.equal(
|
|
1319
|
-
definitionResult.automation?.['testInstance/testBU']?.testTargetMarket
|
|
1320
|
-
? Object.keys(
|
|
1321
|
-
definitionResult.automation?.['testInstance/testBU']?.testTargetMarket
|
|
1322
|
-
).length
|
|
1323
|
-
: 0,
|
|
1324
|
-
1,
|
|
1325
|
-
'only one automation expected'
|
|
1326
|
-
);
|
|
1327
|
-
assert.equal(
|
|
1328
|
-
definitionResult.automation?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
1329
|
-
? Object.keys(
|
|
1330
|
-
definitionResult.automation?.['testInstance/_ParentBU_']
|
|
1331
|
-
?.testTargetMarket
|
|
1332
|
-
).length
|
|
1333
|
-
: 0,
|
|
1334
|
-
1,
|
|
1335
|
-
'only one automation expected'
|
|
1336
|
-
);
|
|
1337
|
-
assert.deepEqual(
|
|
1338
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1339
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1340
|
-
'returned deployment file was not equal expected'
|
|
1341
|
-
);
|
|
1342
|
-
|
|
1343
|
-
// check if files were also created for other BU-market combos
|
|
1344
|
-
// testBU: testSourceMarket
|
|
1345
|
-
expect(
|
|
1346
|
-
await testUtils.getActualDeployFile(
|
|
1347
|
-
'testExisting_automation',
|
|
1348
|
-
'automation',
|
|
1349
|
-
'json'
|
|
1350
|
-
)
|
|
1351
|
-
).to.exist;
|
|
1352
|
-
// _ParentBU_: testTargetMarket
|
|
1353
|
-
expect(
|
|
1354
|
-
await testUtils.getActualDeployFile(
|
|
1355
|
-
'testTemplated_automation',
|
|
1356
|
-
'automation',
|
|
1357
|
-
'json',
|
|
1358
|
-
'_ParentBU_'
|
|
1359
|
-
)
|
|
1360
|
-
).to.exist;
|
|
1361
|
-
|
|
1362
|
-
// check query
|
|
1363
|
-
assert.equal(
|
|
1364
|
-
definitionResult.query?.['testInstance/testBU']?.testSourceMarket
|
|
1365
|
-
? Object.keys(
|
|
1366
|
-
definitionResult.query?.['testInstance/testBU']?.testSourceMarket
|
|
1367
|
-
).length
|
|
1368
|
-
: 0,
|
|
1369
|
-
1,
|
|
1370
|
-
'only one query expected'
|
|
1371
|
-
);
|
|
1372
|
-
assert.equal(
|
|
1373
|
-
definitionResult.query?.['testInstance/testBU']?.testTargetMarket
|
|
1374
|
-
? Object.keys(
|
|
1375
|
-
definitionResult.query?.['testInstance/testBU']?.testTargetMarket
|
|
1376
|
-
).length
|
|
1377
|
-
: 0,
|
|
1378
|
-
1,
|
|
1379
|
-
'only one query expected'
|
|
1380
|
-
);
|
|
1381
|
-
assert.equal(
|
|
1382
|
-
definitionResult.query?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
1383
|
-
? Object.keys(
|
|
1384
|
-
definitionResult.query?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
1385
|
-
).length
|
|
1386
|
-
: 0,
|
|
1387
|
-
1,
|
|
1388
|
-
'only one query expected'
|
|
1389
|
-
);
|
|
1390
|
-
assert.deepEqual(
|
|
1391
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1392
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1393
|
-
'returned deployment JSON was not equal expected'
|
|
1394
|
-
);
|
|
1395
|
-
expect(
|
|
1396
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1397
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1398
|
-
|
|
1399
|
-
// check if files were also created for other BU-market combos
|
|
1400
|
-
// testBU: testSourceMarket
|
|
1401
|
-
expect(await testUtils.getActualDeployFile('testExisting_query', 'query', 'json'))
|
|
1402
|
-
.to.exist;
|
|
1403
|
-
expect(await testUtils.getActualDeployFile('testExisting_query', 'query', 'sql')).to
|
|
1404
|
-
.exist;
|
|
1405
|
-
// _ParentBU_: testTargetMarket
|
|
1406
|
-
expect(
|
|
1407
|
-
await testUtils.getActualDeployFile(
|
|
1408
|
-
'testTemplated_query',
|
|
1409
|
-
'query',
|
|
1410
|
-
'json',
|
|
1411
|
-
'_ParentBU_'
|
|
1412
|
-
)
|
|
1413
|
-
).to.exist;
|
|
1414
|
-
expect(
|
|
1415
|
-
await testUtils.getActualDeployFile(
|
|
1416
|
-
'testTemplated_query',
|
|
1417
|
-
'query',
|
|
1418
|
-
'sql',
|
|
1419
|
-
'_ParentBU_'
|
|
1420
|
-
)
|
|
1421
|
-
).to.exist;
|
|
1422
|
-
|
|
1423
|
-
assert.equal(
|
|
1424
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1425
|
-
0,
|
|
1426
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1427
|
-
);
|
|
1428
|
-
});
|
|
1429
|
-
|
|
1430
|
-
it('clone multiple type with keys', async () => {
|
|
1431
|
-
// download first before we test buildTemplate
|
|
1432
|
-
await handler.retrieve('testInstance/testBU', ['automation', 'query']);
|
|
1433
|
-
|
|
1434
|
-
const expectedApiCallsRetrieve = 37;
|
|
1435
|
-
assert.equal(
|
|
1436
|
-
testUtils.getAPIHistoryLength(),
|
|
1437
|
-
expectedApiCallsRetrieve,
|
|
1438
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1439
|
-
);
|
|
1440
|
-
|
|
1441
|
-
// preparation
|
|
1442
|
-
const argvMetadata = [
|
|
1443
|
-
'automation:testExisting_automation',
|
|
1444
|
-
'query:testExisting_query',
|
|
1445
|
-
'query:bad',
|
|
1446
|
-
];
|
|
1447
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1448
|
-
assert.notEqual(
|
|
1449
|
-
typeof typeKeyCombo,
|
|
1450
|
-
'undefined',
|
|
1451
|
-
'typeKeyCombo should not be undefined'
|
|
1452
|
-
);
|
|
1453
|
-
const buName = 'testInstance/testBU';
|
|
1454
|
-
|
|
1455
|
-
handler.setOptions({ skipInteraction: true, purge: false });
|
|
1456
|
-
// *** build: buildTemplate and buildDefinition chained ***
|
|
1457
|
-
const definitionResult = await handler.clone(buName, buName, typeKeyCombo);
|
|
1458
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
1459
|
-
|
|
1460
|
-
// *** buildTemplate ***
|
|
1461
|
-
// cannot be checked in build anymore because it writes templates into a temporary folder and deletes them afterwards
|
|
1462
|
-
|
|
1463
|
-
// *** buildDefinition ***
|
|
1464
|
-
|
|
1465
|
-
// check automation
|
|
1466
|
-
assert.equal(
|
|
1467
|
-
definitionResult.automation
|
|
1468
|
-
? Object.keys(definitionResult.automation).length
|
|
1469
|
-
: 0,
|
|
1470
|
-
1,
|
|
1471
|
-
'only one automation expected'
|
|
1472
|
-
);
|
|
1473
|
-
assert.deepEqual(
|
|
1474
|
-
await testUtils.getActualDeployJson('testExisting_automation', 'automation'),
|
|
1475
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'clone'),
|
|
1476
|
-
'returned deployment file was not equal expected'
|
|
1477
|
-
);
|
|
1478
|
-
|
|
1479
|
-
// check query
|
|
1480
|
-
assert.equal(
|
|
1481
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
1482
|
-
1,
|
|
1483
|
-
'only one query expected'
|
|
1484
|
-
);
|
|
1485
|
-
assert.deepEqual(
|
|
1486
|
-
await testUtils.getActualDeployJson('testExisting_query', 'query'),
|
|
1487
|
-
await testUtils.getExpectedJson('9999999', 'query', 'clone'),
|
|
1488
|
-
'returned deployment JSON was not equal expected'
|
|
1489
|
-
);
|
|
1490
|
-
expect(
|
|
1491
|
-
await testUtils.getActualDeployFile('testExisting_query', 'query', 'sql')
|
|
1492
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'clone', 'sql'));
|
|
1493
|
-
|
|
1494
|
-
assert.equal(
|
|
1495
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1496
|
-
0,
|
|
1497
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1498
|
-
);
|
|
1499
|
-
});
|
|
1500
|
-
|
|
1501
|
-
it('build multiple type with keys', async () => {
|
|
1502
|
-
// download first before we test buildTemplate
|
|
1503
|
-
await handler.retrieve('testInstance/testBU', ['automation', 'query']);
|
|
1504
|
-
|
|
1505
|
-
const expectedApiCallsRetrieve = 37;
|
|
1506
|
-
assert.equal(
|
|
1507
|
-
testUtils.getAPIHistoryLength(),
|
|
1508
|
-
expectedApiCallsRetrieve,
|
|
1509
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1510
|
-
);
|
|
1511
|
-
|
|
1512
|
-
// preparation
|
|
1513
|
-
const argvMetadata = [
|
|
1514
|
-
'automation:testExisting_automation',
|
|
1515
|
-
'query:testExisting_query',
|
|
1516
|
-
'query:bad',
|
|
1517
|
-
];
|
|
1518
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1519
|
-
assert.notEqual(
|
|
1520
|
-
typeof typeKeyCombo,
|
|
1521
|
-
'undefined',
|
|
1522
|
-
'typeKeyCombo should not be undefined'
|
|
1523
|
-
);
|
|
1524
|
-
const buName = 'testInstance/testBU';
|
|
1525
|
-
|
|
1526
|
-
handler.setOptions({ skipInteraction: true, purge: false });
|
|
1527
|
-
// *** build: buildTemplate and buildDefinition chained ***
|
|
1528
|
-
const definitionResult = await handler.build(
|
|
1529
|
-
buName,
|
|
1530
|
-
buName,
|
|
1531
|
-
typeKeyCombo,
|
|
1532
|
-
['testSourceMarket'],
|
|
1533
|
-
['testTargetMarket']
|
|
1534
|
-
);
|
|
1535
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
1536
|
-
|
|
1537
|
-
// *** buildTemplate ***
|
|
1538
|
-
|
|
1539
|
-
// check automation
|
|
1540
|
-
// assert.deepEqual(
|
|
1541
|
-
// await testUtils.getActualTemporaryTemplateJson(
|
|
1542
|
-
// 'testExisting_automation',
|
|
1543
|
-
// 'automation'
|
|
1544
|
-
// ),
|
|
1545
|
-
// await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1546
|
-
// 'returned template was not equal expected'
|
|
1547
|
-
// );
|
|
1548
|
-
// // check query
|
|
1549
|
-
// assert.deepEqual(
|
|
1550
|
-
// await testUtils.getActualTemporaryTemplateJson('testExisting_query', 'query'),
|
|
1551
|
-
// await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1552
|
-
// 'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1553
|
-
// );
|
|
1554
|
-
// expect(
|
|
1555
|
-
// await testUtils.getActualTemporaryTemplateFile(
|
|
1556
|
-
// 'testExisting_query',
|
|
1557
|
-
// 'query',
|
|
1558
|
-
// 'sql'
|
|
1559
|
-
// )
|
|
1560
|
-
// ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1561
|
-
|
|
1562
|
-
// *** buildDefinition ***
|
|
1563
|
-
|
|
1564
|
-
// check automation
|
|
1565
|
-
assert.equal(
|
|
1566
|
-
definitionResult.automation
|
|
1567
|
-
? Object.keys(definitionResult.automation).length
|
|
1568
|
-
: 0,
|
|
1569
|
-
1,
|
|
1570
|
-
'only one automation expected'
|
|
1571
|
-
);
|
|
1572
|
-
assert.deepEqual(
|
|
1573
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1574
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1575
|
-
'returned deployment file was not equal expected'
|
|
1576
|
-
);
|
|
1577
|
-
|
|
1578
|
-
// check query
|
|
1579
|
-
assert.equal(
|
|
1580
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
1581
|
-
1,
|
|
1582
|
-
'only one query expected'
|
|
1583
|
-
);
|
|
1584
|
-
assert.deepEqual(
|
|
1585
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1586
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1587
|
-
'returned deployment JSON was not equal expected'
|
|
1588
|
-
);
|
|
1589
|
-
expect(
|
|
1590
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1591
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1592
|
-
|
|
1593
|
-
assert.equal(
|
|
1594
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1595
|
-
0,
|
|
1596
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1597
|
-
);
|
|
1598
|
-
});
|
|
1599
|
-
|
|
1600
|
-
it('build multiple type with keys and --dependencies', async () => {
|
|
1601
|
-
// download everything before we test buildTemplate
|
|
1602
|
-
await handler.retrieve('testInstance/testBU');
|
|
1603
|
-
|
|
1604
|
-
const expectedApiCallsRetrieve = 109;
|
|
1605
|
-
assert.equal(
|
|
1606
|
-
testUtils.getAPIHistoryLength(),
|
|
1607
|
-
expectedApiCallsRetrieve,
|
|
1608
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1609
|
-
);
|
|
1610
|
-
|
|
1611
|
-
// preparation
|
|
1612
|
-
const argvMetadata = [
|
|
1613
|
-
'automation:testExisting_automation',
|
|
1614
|
-
'query:testExisting_query',
|
|
1615
|
-
'query:bad',
|
|
1616
|
-
];
|
|
1617
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1618
|
-
assert.notEqual(
|
|
1619
|
-
typeof typeKeyCombo,
|
|
1620
|
-
'undefined',
|
|
1621
|
-
'typeKeyCombo should not be undefined'
|
|
1622
|
-
);
|
|
1623
|
-
const buName = 'testInstance/testBU';
|
|
1624
|
-
|
|
1625
|
-
// set skipInteraction to true to skip re-retrieving question
|
|
1626
|
-
handler.setOptions({ dependencies: true, skipInteraction: true, purge: true });
|
|
1627
|
-
|
|
1628
|
-
// *** build: buildTemplate and buildDefinition chained ***
|
|
1629
|
-
const definitionResult = await handler.build(
|
|
1630
|
-
buName,
|
|
1631
|
-
buName,
|
|
1632
|
-
typeKeyCombo,
|
|
1633
|
-
['testSourceMarket'],
|
|
1634
|
-
['testTargetMarket']
|
|
1635
|
-
);
|
|
1636
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
1637
|
-
|
|
1638
|
-
// *** buildTemplate ***
|
|
1639
|
-
|
|
1640
|
-
// // check automation
|
|
1641
|
-
// assert.deepEqual(
|
|
1642
|
-
// await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
1643
|
-
// await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1644
|
-
// 'returned template was not equal expected'
|
|
1645
|
-
// );
|
|
1646
|
-
// // check query
|
|
1647
|
-
// assert.deepEqual(
|
|
1648
|
-
// await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
1649
|
-
// await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1650
|
-
// 'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1651
|
-
// );
|
|
1652
|
-
// expect(
|
|
1653
|
-
// await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
1654
|
-
// ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1655
|
-
|
|
1656
|
-
// *** buildDefinition ***
|
|
1657
|
-
|
|
1658
|
-
// check type list
|
|
1659
|
-
assert.deepEqual(
|
|
1660
|
-
Object.keys(definitionResult),
|
|
1661
|
-
[
|
|
1662
|
-
'automation',
|
|
1663
|
-
'dataExtension',
|
|
1664
|
-
'dataExtract',
|
|
1665
|
-
'domainVerification',
|
|
1666
|
-
'emailSend',
|
|
1667
|
-
'fileTransfer',
|
|
1668
|
-
'importFile',
|
|
1669
|
-
'query',
|
|
1670
|
-
'script',
|
|
1671
|
-
'sendClassification',
|
|
1672
|
-
'senderProfile',
|
|
1673
|
-
'verification',
|
|
1674
|
-
],
|
|
1675
|
-
'did not create deployment packages for all relevant types'
|
|
1676
|
-
);
|
|
1677
|
-
|
|
1678
|
-
// check automation
|
|
1679
|
-
assert.equal(
|
|
1680
|
-
definitionResult.automation
|
|
1681
|
-
? Object.keys(definitionResult.automation).length
|
|
1682
|
-
: 0,
|
|
1683
|
-
1,
|
|
1684
|
-
'only one automation expected'
|
|
1685
|
-
);
|
|
1686
|
-
assert.deepEqual(
|
|
1687
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1688
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1689
|
-
'returned deployment file was not equal expected'
|
|
1690
|
-
);
|
|
1691
|
-
|
|
1692
|
-
// check query
|
|
1693
|
-
assert.equal(
|
|
1694
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
1695
|
-
1,
|
|
1696
|
-
'only one query expected'
|
|
1697
|
-
);
|
|
1698
|
-
assert.deepEqual(
|
|
1699
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1700
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1701
|
-
'returned deployment JSON was not equal expected'
|
|
1702
|
-
);
|
|
1703
|
-
expect(
|
|
1704
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1705
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1706
|
-
|
|
1707
|
-
assert.equal(
|
|
1708
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1709
|
-
4,
|
|
1710
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1711
|
-
);
|
|
1712
|
-
});
|
|
1713
|
-
|
|
1714
|
-
it('build multiple type with keys and --dependencies and --retrieve', async () => {
|
|
1715
|
-
// preparation
|
|
1716
|
-
const argvMetadata = [
|
|
1717
|
-
'automation:testExisting_automation',
|
|
1718
|
-
'query:testExisting_query',
|
|
1719
|
-
'query:bad',
|
|
1720
|
-
];
|
|
1721
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1722
|
-
assert.notEqual(
|
|
1723
|
-
typeof typeKeyCombo,
|
|
1724
|
-
'undefined',
|
|
1725
|
-
'typeKeyCombo should not be undefined'
|
|
1726
|
-
);
|
|
1727
|
-
const buName = 'testInstance/testBU';
|
|
1728
|
-
|
|
1729
|
-
handler.setOptions({
|
|
1730
|
-
dependencies: true,
|
|
1731
|
-
retrieve: true,
|
|
1732
|
-
skipInteraction: true,
|
|
1733
|
-
purge: true,
|
|
1734
|
-
});
|
|
1735
|
-
|
|
1736
|
-
// *** build: buildTemplate and buildDefinition chained ***
|
|
1737
|
-
const definitionResult = await handler.build(
|
|
1738
|
-
buName,
|
|
1739
|
-
buName,
|
|
1740
|
-
typeKeyCombo,
|
|
1741
|
-
['testSourceMarket'],
|
|
1742
|
-
['testTargetMarket']
|
|
1743
|
-
);
|
|
1744
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
1745
|
-
|
|
1746
|
-
// *** buildTemplate ***
|
|
1747
|
-
|
|
1748
|
-
// check automation
|
|
1749
|
-
// assert.deepEqual(
|
|
1750
|
-
// await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
1751
|
-
// await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1752
|
-
// 'returned template was not equal expected'
|
|
1753
|
-
// );
|
|
1754
|
-
// // check query
|
|
1755
|
-
// assert.deepEqual(
|
|
1756
|
-
// await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
1757
|
-
// await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1758
|
-
// 'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1759
|
-
// );
|
|
1760
|
-
// expect(
|
|
1761
|
-
// await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
1762
|
-
// ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1763
|
-
|
|
1764
|
-
// *** buildDefinition ***
|
|
1765
|
-
|
|
1766
|
-
// check type list
|
|
1767
|
-
assert.deepEqual(
|
|
1768
|
-
Object.keys(definitionResult),
|
|
1769
|
-
[
|
|
1770
|
-
'automation',
|
|
1771
|
-
'dataExtension',
|
|
1772
|
-
'dataExtract',
|
|
1773
|
-
'domainVerification',
|
|
1774
|
-
'emailSend',
|
|
1775
|
-
'fileTransfer',
|
|
1776
|
-
'importFile',
|
|
1777
|
-
'query',
|
|
1778
|
-
'script',
|
|
1779
|
-
'sendClassification',
|
|
1780
|
-
'senderProfile',
|
|
1781
|
-
'verification',
|
|
1782
|
-
],
|
|
1783
|
-
'did not create deployment packages for all relevant types'
|
|
1784
|
-
);
|
|
1785
|
-
|
|
1786
|
-
// check automation
|
|
1787
|
-
assert.equal(
|
|
1788
|
-
definitionResult.automation
|
|
1789
|
-
? Object.keys(definitionResult.automation).length
|
|
1790
|
-
: 0,
|
|
1791
|
-
1,
|
|
1792
|
-
'only one automation expected'
|
|
1793
|
-
);
|
|
1794
|
-
assert.deepEqual(
|
|
1795
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1796
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1797
|
-
'returned deployment file was not equal expected'
|
|
1798
|
-
);
|
|
1799
|
-
|
|
1800
|
-
// check query
|
|
1801
|
-
assert.equal(
|
|
1802
|
-
definitionResult.query ? Object.keys(definitionResult.query).length : 0,
|
|
1803
|
-
1,
|
|
1804
|
-
'only one query expected'
|
|
1805
|
-
);
|
|
1806
|
-
assert.deepEqual(
|
|
1807
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1808
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1809
|
-
'returned deployment JSON was not equal expected'
|
|
1810
|
-
);
|
|
1811
|
-
expect(
|
|
1812
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1813
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1814
|
-
|
|
1815
|
-
const expectedApiCallsRetrieve = 113;
|
|
1816
|
-
assert.equal(
|
|
1817
|
-
testUtils.getAPIHistoryLength(),
|
|
1818
|
-
expectedApiCallsRetrieve,
|
|
1819
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1820
|
-
);
|
|
1821
|
-
});
|
|
1822
|
-
|
|
1823
|
-
it('build multiple type with keys and --bulk', async () => {
|
|
1824
|
-
// download first before we test buildTemplate
|
|
1825
|
-
await handler.retrieve('testInstance/testBU', ['automation', 'query']);
|
|
1826
|
-
|
|
1827
|
-
const expectedApiCallsRetrieve = 37;
|
|
1828
|
-
assert.equal(
|
|
1829
|
-
testUtils.getAPIHistoryLength(),
|
|
1830
|
-
expectedApiCallsRetrieve,
|
|
1831
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1832
|
-
);
|
|
1833
|
-
|
|
1834
|
-
// preparation
|
|
1835
|
-
const argvMetadata = [
|
|
1836
|
-
'automation:testExisting_automation',
|
|
1837
|
-
'query:testExisting_query',
|
|
1838
|
-
'query:bad',
|
|
1839
|
-
];
|
|
1840
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
1841
|
-
assert.notEqual(
|
|
1842
|
-
typeof typeKeyCombo,
|
|
1843
|
-
'undefined',
|
|
1844
|
-
'typeKeyCombo should not be undefined'
|
|
1845
|
-
);
|
|
1846
|
-
const buName = 'testInstance/testBU';
|
|
1847
|
-
handler.setOptions({ skipInteraction: true, purge: false });
|
|
1848
|
-
|
|
1849
|
-
// *** build: buildTemplate and buildDefinition chained ***
|
|
1850
|
-
const definitionResult = await handler.build(
|
|
1851
|
-
buName,
|
|
1852
|
-
'ignored',
|
|
1853
|
-
typeKeyCombo,
|
|
1854
|
-
['testSourceMarket'],
|
|
1855
|
-
['deployment-target'],
|
|
1856
|
-
true
|
|
1857
|
-
);
|
|
1858
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
1859
|
-
|
|
1860
|
-
// *** buildTemplate ***
|
|
1861
|
-
|
|
1862
|
-
// // check automation
|
|
1863
|
-
// assert.deepEqual(
|
|
1864
|
-
// await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
1865
|
-
// await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
1866
|
-
// 'returned template was not equal expected'
|
|
1867
|
-
// );
|
|
1868
|
-
// // check query
|
|
1869
|
-
// assert.deepEqual(
|
|
1870
|
-
// await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
1871
|
-
// await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
1872
|
-
// 'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
1873
|
-
// );
|
|
1874
|
-
// expect(
|
|
1875
|
-
// await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
1876
|
-
// ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
1877
|
-
|
|
1878
|
-
// *** buildDefinitionBulk ***
|
|
1879
|
-
|
|
1880
|
-
// check automation
|
|
1881
|
-
assert.equal(
|
|
1882
|
-
definitionResult.automation?.['testInstance/testBU']?.testSourceMarket
|
|
1883
|
-
? Object.keys(
|
|
1884
|
-
definitionResult.automation?.['testInstance/testBU']?.testSourceMarket
|
|
1885
|
-
).length
|
|
1886
|
-
: 0,
|
|
1887
|
-
1,
|
|
1888
|
-
'only one automation expected'
|
|
1889
|
-
);
|
|
1890
|
-
assert.equal(
|
|
1891
|
-
definitionResult.automation?.['testInstance/testBU']?.testTargetMarket
|
|
1892
|
-
? Object.keys(
|
|
1893
|
-
definitionResult.automation?.['testInstance/testBU']?.testTargetMarket
|
|
1894
|
-
).length
|
|
1895
|
-
: 0,
|
|
1896
|
-
1,
|
|
1897
|
-
'only one automation expected'
|
|
1898
|
-
);
|
|
1899
|
-
assert.equal(
|
|
1900
|
-
definitionResult.automation?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
1901
|
-
? Object.keys(
|
|
1902
|
-
definitionResult.automation?.['testInstance/_ParentBU_']
|
|
1903
|
-
?.testTargetMarket
|
|
1904
|
-
).length
|
|
1905
|
-
: 0,
|
|
1906
|
-
1,
|
|
1907
|
-
'only one automation expected'
|
|
1908
|
-
);
|
|
1909
|
-
assert.deepEqual(
|
|
1910
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
1911
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
1912
|
-
'returned deployment file was not equal expected'
|
|
1913
|
-
);
|
|
1914
|
-
|
|
1915
|
-
// check if files were also created for other BU-market combos
|
|
1916
|
-
// testBU: testSourceMarket
|
|
1917
|
-
expect(
|
|
1918
|
-
await testUtils.getActualDeployFile(
|
|
1919
|
-
'testExisting_automation',
|
|
1920
|
-
'automation',
|
|
1921
|
-
'json'
|
|
1922
|
-
)
|
|
1923
|
-
).to.exist;
|
|
1924
|
-
// _ParentBU_: testTargetMarket
|
|
1925
|
-
expect(
|
|
1926
|
-
await testUtils.getActualDeployFile(
|
|
1927
|
-
'testTemplated_automation',
|
|
1928
|
-
'automation',
|
|
1929
|
-
'json',
|
|
1930
|
-
'_ParentBU_'
|
|
1931
|
-
)
|
|
1932
|
-
).to.exist;
|
|
1933
|
-
|
|
1934
|
-
// check query
|
|
1935
|
-
assert.equal(
|
|
1936
|
-
definitionResult.query?.['testInstance/testBU']?.testSourceMarket
|
|
1937
|
-
? Object.keys(
|
|
1938
|
-
definitionResult.query?.['testInstance/testBU']?.testSourceMarket
|
|
1939
|
-
).length
|
|
1940
|
-
: 0,
|
|
1941
|
-
1,
|
|
1942
|
-
'only one query expected'
|
|
1943
|
-
);
|
|
1944
|
-
assert.equal(
|
|
1945
|
-
definitionResult.query?.['testInstance/testBU']?.testTargetMarket
|
|
1946
|
-
? Object.keys(
|
|
1947
|
-
definitionResult.query?.['testInstance/testBU']?.testTargetMarket
|
|
1948
|
-
).length
|
|
1949
|
-
: 0,
|
|
1950
|
-
1,
|
|
1951
|
-
'only one query expected'
|
|
1952
|
-
);
|
|
1953
|
-
assert.equal(
|
|
1954
|
-
definitionResult.query?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
1955
|
-
? Object.keys(
|
|
1956
|
-
definitionResult.query?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
1957
|
-
).length
|
|
1958
|
-
: 0,
|
|
1959
|
-
1,
|
|
1960
|
-
'only one query expected'
|
|
1961
|
-
);
|
|
1962
|
-
assert.deepEqual(
|
|
1963
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
1964
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
1965
|
-
'returned deployment JSON was not equal expected'
|
|
1966
|
-
);
|
|
1967
|
-
expect(
|
|
1968
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
1969
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
1970
|
-
|
|
1971
|
-
// check if files were also created for other BU-market combos
|
|
1972
|
-
// testBU: testSourceMarket
|
|
1973
|
-
expect(await testUtils.getActualDeployFile('testExisting_query', 'query', 'json'))
|
|
1974
|
-
.to.exist;
|
|
1975
|
-
expect(await testUtils.getActualDeployFile('testExisting_query', 'query', 'sql')).to
|
|
1976
|
-
.exist;
|
|
1977
|
-
// _ParentBU_: testTargetMarket
|
|
1978
|
-
expect(
|
|
1979
|
-
await testUtils.getActualDeployFile(
|
|
1980
|
-
'testTemplated_query',
|
|
1981
|
-
'query',
|
|
1982
|
-
'json',
|
|
1983
|
-
'_ParentBU_'
|
|
1984
|
-
)
|
|
1985
|
-
).to.exist;
|
|
1986
|
-
expect(
|
|
1987
|
-
await testUtils.getActualDeployFile(
|
|
1988
|
-
'testTemplated_query',
|
|
1989
|
-
'query',
|
|
1990
|
-
'sql',
|
|
1991
|
-
'_ParentBU_'
|
|
1992
|
-
)
|
|
1993
|
-
).to.exist;
|
|
1994
|
-
|
|
1995
|
-
assert.equal(
|
|
1996
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1997
|
-
0,
|
|
1998
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1999
|
-
);
|
|
2000
|
-
});
|
|
2001
|
-
|
|
2002
|
-
it('build multiple type with keys and --bulk and --dependencies', async () => {
|
|
2003
|
-
// download first before we test buildTemplate
|
|
2004
|
-
await handler.retrieve('testInstance/testBU');
|
|
2005
|
-
|
|
2006
|
-
const expectedApiCallsRetrieve = 109;
|
|
2007
|
-
assert.equal(
|
|
2008
|
-
testUtils.getAPIHistoryLength(),
|
|
2009
|
-
expectedApiCallsRetrieve,
|
|
2010
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2011
|
-
);
|
|
2012
|
-
|
|
2013
|
-
// preparation
|
|
2014
|
-
const argvMetadata = [
|
|
2015
|
-
'automation:testExisting_automation',
|
|
2016
|
-
'query:testExisting_query',
|
|
2017
|
-
'query:bad',
|
|
2018
|
-
];
|
|
2019
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
2020
|
-
assert.notEqual(
|
|
2021
|
-
typeof typeKeyCombo,
|
|
2022
|
-
'undefined',
|
|
2023
|
-
'typeKeyCombo should not be undefined'
|
|
2024
|
-
);
|
|
2025
|
-
const buName = 'testInstance/testBU';
|
|
2026
|
-
|
|
2027
|
-
// set skipInteraction to true to skip re-retrieving question
|
|
2028
|
-
handler.setOptions({ dependencies: true, skipInteraction: true, purge: true });
|
|
2029
|
-
|
|
2030
|
-
// *** build: buildTemplate and buildDefinition chained ***
|
|
2031
|
-
const definitionResult = await handler.build(
|
|
2032
|
-
buName,
|
|
2033
|
-
'ignored',
|
|
2034
|
-
typeKeyCombo,
|
|
2035
|
-
['testSourceMarket'],
|
|
2036
|
-
['deployment-target'],
|
|
2037
|
-
true
|
|
2038
|
-
);
|
|
2039
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
2040
|
-
|
|
2041
|
-
// *** buildTemplate ***
|
|
2042
|
-
|
|
2043
|
-
// // check automation
|
|
2044
|
-
// assert.deepEqual(
|
|
2045
|
-
// await testUtils.getActualTemplateJson('testExisting_automation', 'automation'),
|
|
2046
|
-
// await testUtils.getExpectedJson('9999999', 'automation', 'template'),
|
|
2047
|
-
// 'returned template was not equal expected'
|
|
2048
|
-
// );
|
|
2049
|
-
// // check query
|
|
2050
|
-
// assert.deepEqual(
|
|
2051
|
-
// await testUtils.getActualTemplateJson('testExisting_query', 'query'),
|
|
2052
|
-
// await testUtils.getExpectedJson('9999999', 'query', 'template'),
|
|
2053
|
-
// 'returned template JSON of retrieveAsTemplate was not equal expected'
|
|
2054
|
-
// );
|
|
2055
|
-
// expect(
|
|
2056
|
-
// await testUtils.getActualTemplateFile('testExisting_query', 'query', 'sql')
|
|
2057
|
-
// ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'template', 'sql'));
|
|
2058
|
-
|
|
2059
|
-
// *** buildDefinitionBulk ***
|
|
2060
|
-
|
|
2061
|
-
// check type list
|
|
2062
|
-
assert.deepEqual(
|
|
2063
|
-
Object.keys(definitionResult),
|
|
2064
|
-
[
|
|
2065
|
-
'automation',
|
|
2066
|
-
'dataExtension',
|
|
2067
|
-
'dataExtract',
|
|
2068
|
-
'domainVerification',
|
|
2069
|
-
'emailSend',
|
|
2070
|
-
'fileTransfer',
|
|
2071
|
-
'importFile',
|
|
2072
|
-
'query',
|
|
2073
|
-
'script',
|
|
2074
|
-
'sendClassification',
|
|
2075
|
-
'senderProfile',
|
|
2076
|
-
'verification',
|
|
2077
|
-
],
|
|
2078
|
-
'did not create deployment packages for all relevant types'
|
|
2079
|
-
);
|
|
2080
|
-
|
|
2081
|
-
// check automation
|
|
2082
|
-
assert.equal(
|
|
2083
|
-
definitionResult.automation?.['testInstance/testBU']?.testSourceMarket
|
|
2084
|
-
? Object.keys(
|
|
2085
|
-
definitionResult.automation?.['testInstance/testBU']?.testSourceMarket
|
|
2086
|
-
).length
|
|
2087
|
-
: 0,
|
|
2088
|
-
1,
|
|
2089
|
-
'only one automation expected'
|
|
2090
|
-
);
|
|
2091
|
-
assert.equal(
|
|
2092
|
-
definitionResult.automation?.['testInstance/testBU']?.testTargetMarket
|
|
2093
|
-
? Object.keys(
|
|
2094
|
-
definitionResult.automation?.['testInstance/testBU']?.testTargetMarket
|
|
2095
|
-
).length
|
|
2096
|
-
: 0,
|
|
2097
|
-
1,
|
|
2098
|
-
'only one automation expected'
|
|
2099
|
-
);
|
|
2100
|
-
assert.equal(
|
|
2101
|
-
definitionResult.automation?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2102
|
-
? Object.keys(
|
|
2103
|
-
definitionResult.automation?.['testInstance/_ParentBU_']
|
|
2104
|
-
?.testTargetMarket
|
|
2105
|
-
).length
|
|
2106
|
-
: 0,
|
|
2107
|
-
1,
|
|
2108
|
-
'only one automation expected'
|
|
2109
|
-
);
|
|
2110
|
-
assert.deepEqual(
|
|
2111
|
-
await testUtils.getActualDeployJson('testTemplated_automation', 'automation'),
|
|
2112
|
-
await testUtils.getExpectedJson('9999999', 'automation', 'build'),
|
|
2113
|
-
'returned deployment file was not equal expected'
|
|
2114
|
-
);
|
|
2115
|
-
|
|
2116
|
-
// check if files were also created for other BU-market combos
|
|
2117
|
-
// testBU: testSourceMarket
|
|
2118
|
-
expect(
|
|
2119
|
-
await testUtils.getActualDeployFile(
|
|
2120
|
-
'testExisting_automation',
|
|
2121
|
-
'automation',
|
|
2122
|
-
'json'
|
|
2123
|
-
)
|
|
2124
|
-
).to.exist;
|
|
2125
|
-
// _ParentBU_: testTargetMarket
|
|
2126
|
-
expect(
|
|
2127
|
-
await testUtils.getActualDeployFile(
|
|
2128
|
-
'testTemplated_automation',
|
|
2129
|
-
'automation',
|
|
2130
|
-
'json',
|
|
2131
|
-
'_ParentBU_'
|
|
2132
|
-
)
|
|
2133
|
-
).to.exist;
|
|
2134
|
-
|
|
2135
|
-
// check query
|
|
2136
|
-
assert.equal(
|
|
2137
|
-
definitionResult.query?.['testInstance/testBU']?.testSourceMarket
|
|
2138
|
-
? Object.keys(
|
|
2139
|
-
definitionResult.query?.['testInstance/testBU']?.testSourceMarket
|
|
2140
|
-
).length
|
|
2141
|
-
: 0,
|
|
2142
|
-
1,
|
|
2143
|
-
'only one query expected'
|
|
2144
|
-
);
|
|
2145
|
-
assert.equal(
|
|
2146
|
-
definitionResult.query?.['testInstance/testBU']?.testTargetMarket
|
|
2147
|
-
? Object.keys(
|
|
2148
|
-
definitionResult.query?.['testInstance/testBU']?.testTargetMarket
|
|
2149
|
-
).length
|
|
2150
|
-
: 0,
|
|
2151
|
-
1,
|
|
2152
|
-
'only one query expected'
|
|
2153
|
-
);
|
|
2154
|
-
assert.equal(
|
|
2155
|
-
definitionResult.query?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2156
|
-
? Object.keys(
|
|
2157
|
-
definitionResult.query?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2158
|
-
).length
|
|
2159
|
-
: 0,
|
|
2160
|
-
1,
|
|
2161
|
-
'only one query expected'
|
|
2162
|
-
);
|
|
2163
|
-
assert.deepEqual(
|
|
2164
|
-
await testUtils.getActualDeployJson('testTemplated_query', 'query'),
|
|
2165
|
-
await testUtils.getExpectedJson('9999999', 'query', 'build'),
|
|
2166
|
-
'returned deployment JSON was not equal expected'
|
|
2167
|
-
);
|
|
2168
|
-
expect(
|
|
2169
|
-
await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
|
|
2170
|
-
).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
|
|
2171
|
-
|
|
2172
|
-
// check if files were also created for other BU-market combos
|
|
2173
|
-
// testBU: testSourceMarket
|
|
2174
|
-
expect(await testUtils.getActualDeployFile('testExisting_query', 'query', 'json'))
|
|
2175
|
-
.to.exist;
|
|
2176
|
-
expect(await testUtils.getActualDeployFile('testExisting_query', 'query', 'sql')).to
|
|
2177
|
-
.exist;
|
|
2178
|
-
// _ParentBU_: testTargetMarket
|
|
2179
|
-
expect(
|
|
2180
|
-
await testUtils.getActualDeployFile(
|
|
2181
|
-
'testTemplated_query',
|
|
2182
|
-
'query',
|
|
2183
|
-
'json',
|
|
2184
|
-
'_ParentBU_'
|
|
2185
|
-
)
|
|
2186
|
-
).to.exist;
|
|
2187
|
-
expect(
|
|
2188
|
-
await testUtils.getActualDeployFile(
|
|
2189
|
-
'testTemplated_query',
|
|
2190
|
-
'query',
|
|
2191
|
-
'sql',
|
|
2192
|
-
'_ParentBU_'
|
|
2193
|
-
)
|
|
2194
|
-
).to.exist;
|
|
2195
|
-
|
|
2196
|
-
assert.equal(
|
|
2197
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
2198
|
-
4,
|
|
2199
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2200
|
-
);
|
|
2201
|
-
});
|
|
2202
|
-
|
|
2203
|
-
it('build but error after buildTemplate step because keys were not found', async () => {
|
|
2204
|
-
const buName = 'testInstance/testBU';
|
|
2205
|
-
const typeKeyCombo = {
|
|
2206
|
-
asset: ['404'],
|
|
2207
|
-
dataExtension: ['404'],
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
// handler.setOptions({ skipInteraction: true, purge: false, fix: true });
|
|
2211
|
-
|
|
2212
|
-
await handler.build(
|
|
2213
|
-
buName,
|
|
2214
|
-
'ignored',
|
|
2215
|
-
typeKeyCombo,
|
|
2216
|
-
['testSourceMarket'],
|
|
2217
|
-
['parent'],
|
|
2218
|
-
true
|
|
2219
|
-
);
|
|
2220
|
-
|
|
2221
|
-
// THEN
|
|
2222
|
-
assert.equal(process.exitCode, 1, 'build should not have thrown an error');
|
|
2223
|
-
|
|
2224
|
-
assert.equal(
|
|
2225
|
-
testUtils.getAPIHistoryLength(),
|
|
2226
|
-
0,
|
|
2227
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2228
|
-
);
|
|
2229
|
-
});
|
|
2230
|
-
|
|
2231
|
-
it('skip build based on validation rule "filterPrefixByBu" with --fix without error', async () => {
|
|
2232
|
-
const buName = 'testInstance/testBU';
|
|
2233
|
-
const typeKeyCombo = {
|
|
2234
|
-
asset: ['testExisting_asset_htmlblock'],
|
|
2235
|
-
dataExtension: ['testExisting_dataExtension'],
|
|
2236
|
-
};
|
|
2237
|
-
await handler.retrieve(buName, typeKeyCombo);
|
|
2238
|
-
|
|
2239
|
-
const expectedApiCallsRetrieve = 11;
|
|
2240
|
-
assert.equal(
|
|
2241
|
-
testUtils.getAPIHistoryLength(),
|
|
2242
|
-
expectedApiCallsRetrieve,
|
|
2243
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2244
|
-
);
|
|
2245
|
-
|
|
2246
|
-
handler.setOptions({ skipInteraction: true, purge: false, fix: true });
|
|
2247
|
-
|
|
2248
|
-
const definitionResult = await handler.build(
|
|
2249
|
-
buName,
|
|
2250
|
-
'ignored',
|
|
2251
|
-
typeKeyCombo,
|
|
2252
|
-
['testSourceMarket'],
|
|
2253
|
-
['parent'],
|
|
2254
|
-
true
|
|
2255
|
-
);
|
|
2256
|
-
|
|
2257
|
-
// THEN
|
|
2258
|
-
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
|
|
2259
|
-
|
|
2260
|
-
// confirm that no deployment package was created
|
|
2261
|
-
assert.equal(
|
|
2262
|
-
definitionResult.asset?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2263
|
-
? Object.keys(
|
|
2264
|
-
definitionResult.asset?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2265
|
-
).length
|
|
2266
|
-
: 0,
|
|
2267
|
-
0,
|
|
2268
|
-
'0 asset expected'
|
|
2269
|
-
);
|
|
2270
|
-
assert.equal(
|
|
2271
|
-
definitionResult.dataExtension?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2272
|
-
? Object.keys(
|
|
2273
|
-
definitionResult.dataExtension?.['testInstance/_ParentBU_']
|
|
2274
|
-
?.testTargetMarket
|
|
2275
|
-
).length
|
|
2276
|
-
: 0,
|
|
2277
|
-
0,
|
|
2278
|
-
'0 dataExtension expected'
|
|
2279
|
-
);
|
|
2280
|
-
|
|
2281
|
-
assert.equal(
|
|
2282
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
2283
|
-
0,
|
|
2284
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2285
|
-
);
|
|
2286
|
-
});
|
|
2287
|
-
|
|
2288
|
-
it('skip deploy based on validation rule "filterPrefixByBu" without --fix but with error', async () => {
|
|
2289
|
-
const buName = 'testInstance/testBU';
|
|
2290
|
-
const typeKeyCombo = {
|
|
2291
|
-
asset: ['testExisting_asset_htmlblock'],
|
|
2292
|
-
dataExtension: ['testExisting_dataExtension'],
|
|
2293
|
-
};
|
|
2294
|
-
await handler.retrieve(buName, typeKeyCombo);
|
|
2295
|
-
|
|
2296
|
-
const expectedApiCallsRetrieve = 11;
|
|
2297
|
-
assert.equal(
|
|
2298
|
-
testUtils.getAPIHistoryLength(),
|
|
2299
|
-
expectedApiCallsRetrieve,
|
|
2300
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2301
|
-
);
|
|
2302
|
-
|
|
2303
|
-
handler.setOptions({ skipInteraction: true, purge: false });
|
|
2304
|
-
|
|
2305
|
-
const definitionResult = await handler.build(
|
|
2306
|
-
buName,
|
|
2307
|
-
'ignored',
|
|
2308
|
-
typeKeyCombo,
|
|
2309
|
-
['testSourceMarket'],
|
|
2310
|
-
['parent'],
|
|
2311
|
-
true
|
|
2312
|
-
);
|
|
2313
|
-
|
|
2314
|
-
// THEN
|
|
2315
|
-
assert.equal(process.exitCode, 1, 'build should have thrown an error');
|
|
2316
|
-
|
|
2317
|
-
// confirm that no deployment package was created
|
|
2318
|
-
assert.equal(
|
|
2319
|
-
definitionResult.asset?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2320
|
-
? Object.keys(
|
|
2321
|
-
definitionResult.asset?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2322
|
-
).length
|
|
2323
|
-
: 0,
|
|
2324
|
-
0,
|
|
2325
|
-
'0 asset expected'
|
|
2326
|
-
);
|
|
2327
|
-
assert.equal(
|
|
2328
|
-
definitionResult.dataExtension?.['testInstance/_ParentBU_']?.testTargetMarket
|
|
2329
|
-
? Object.keys(
|
|
2330
|
-
definitionResult.dataExtension?.['testInstance/_ParentBU_']
|
|
2331
|
-
?.testTargetMarket
|
|
2332
|
-
).length
|
|
2333
|
-
: 0,
|
|
2334
|
-
0,
|
|
2335
|
-
'0 dataExtension expected'
|
|
2336
|
-
);
|
|
2337
|
-
|
|
2338
|
-
assert.equal(
|
|
2339
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
2340
|
-
0,
|
|
2341
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2342
|
-
);
|
|
2343
|
-
});
|
|
2344
|
-
});
|
|
2345
|
-
|
|
2346
|
-
describe('Delete --metadata ~~~', () => {
|
|
2347
|
-
it('Should delete the items', async () => {
|
|
2348
|
-
const argvMetadata = [
|
|
2349
|
-
'asset:testExisting_asset',
|
|
2350
|
-
'automation:testExisting_automation',
|
|
2351
|
-
'journey:testExisting_journey_Quicksend/1',
|
|
2352
|
-
'journey:testExisting_journey_Multistep/1',
|
|
2353
|
-
];
|
|
2354
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
2355
|
-
// WHEN
|
|
2356
|
-
const isDeleted = await handler.deleteByKey('testInstance/testBU', typeKeyCombo);
|
|
2357
|
-
// THEN
|
|
2358
|
-
assert.equal(process.exitCode, 0, 'deleteByKey should not have thrown an error');
|
|
2359
|
-
assert.equal(isDeleted, true, 'deleteByKey should have returned true');
|
|
2360
|
-
return;
|
|
2361
|
-
});
|
|
2362
|
-
});
|
|
2363
|
-
|
|
2364
|
-
describe('Publish --metadata ~~~', () => {
|
|
2365
|
-
it('Should publish the journey', async () => {
|
|
2366
|
-
handler.setOptions({ skipStatusCheck: true });
|
|
2367
|
-
const argvMetadata = [
|
|
2368
|
-
'journey:testExisting_journey_Multistep',
|
|
2369
|
-
'journey:testExisting_temail_notPublished',
|
|
2370
|
-
];
|
|
2371
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
2372
|
-
// WHEN
|
|
2373
|
-
const publish = await handler.publish('testInstance/testBU', typeKeyCombo);
|
|
2374
|
-
// THEN
|
|
2375
|
-
assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
|
|
2376
|
-
assert.deepEqual(
|
|
2377
|
-
publish['testInstance/testBU']?.journey,
|
|
2378
|
-
['testExisting_journey_Multistep', 'testExisting_temail_notPublished'],
|
|
2379
|
-
'should have published the right journey'
|
|
2380
|
-
);
|
|
2381
|
-
return;
|
|
2382
|
-
});
|
|
2383
|
-
});
|
|
2384
|
-
|
|
2385
|
-
describe('Execute/Start --metadata ~~~', () => {
|
|
2386
|
-
it('Should execute the item', async () => {
|
|
2387
|
-
const argvMetadata = [
|
|
2388
|
-
'query:testExisting_query',
|
|
2389
|
-
'automation:testExisting_automation',
|
|
2390
|
-
];
|
|
2391
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
2392
|
-
// WHEN
|
|
2393
|
-
const executedKeys = await handler.execute('testInstance/testBU', typeKeyCombo);
|
|
2394
|
-
assert.equal(process.exitCode, 0, 'execute should not have thrown an error');
|
|
2395
|
-
|
|
2396
|
-
// query
|
|
2397
|
-
assert.equal(
|
|
2398
|
-
executedKeys['testInstance/testBU']?.query?.length,
|
|
2399
|
-
1,
|
|
2400
|
-
'returned number of keys does not correspond to number of expected fixed keys'
|
|
2401
|
-
);
|
|
2402
|
-
assert.equal(
|
|
2403
|
-
executedKeys['testInstance/testBU']?.query[0],
|
|
2404
|
-
'testExisting_query',
|
|
2405
|
-
'returned keys do not correspond to expected fixed keys'
|
|
2406
|
-
);
|
|
2407
|
-
|
|
2408
|
-
// automation
|
|
2409
|
-
assert.equal(
|
|
2410
|
-
executedKeys['testInstance/testBU']?.automation?.length,
|
|
2411
|
-
1,
|
|
2412
|
-
'automation was supposed to be executed'
|
|
2413
|
-
);
|
|
2414
|
-
assert.equal(
|
|
2415
|
-
executedKeys['testInstance/testBU']?.automation[0],
|
|
2416
|
-
'testExisting_automation',
|
|
2417
|
-
'returned keys do not correspond to expected fixed keys'
|
|
2418
|
-
);
|
|
2419
|
-
|
|
2420
|
-
return;
|
|
2421
|
-
});
|
|
2422
|
-
});
|
|
2423
|
-
|
|
2424
|
-
describe('Pause --metadata ~~~', () => {
|
|
2425
|
-
it('Should pause the item', async () => {
|
|
2426
|
-
const argvMetadata = ['automation:testExisting_automation_pause'];
|
|
2427
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
2428
|
-
// WHEN
|
|
2429
|
-
const pausedKeys = await handler.pause('testInstance/testBU', typeKeyCombo);
|
|
2430
|
-
assert.equal(process.exitCode, 0, 'pause should not have thrown an error');
|
|
2431
|
-
|
|
2432
|
-
// automation
|
|
2433
|
-
assert.equal(
|
|
2434
|
-
pausedKeys['testInstance/testBU']?.automation?.length,
|
|
2435
|
-
1,
|
|
2436
|
-
'returned number of keys does not correspond to number of expected fixed keys'
|
|
2437
|
-
);
|
|
2438
|
-
assert.equal(
|
|
2439
|
-
pausedKeys['testInstance/testBU']?.automation[0],
|
|
2440
|
-
'testExisting_automation_pause',
|
|
2441
|
-
'returned keys do not correspond to expected fixed keys'
|
|
2442
|
-
);
|
|
2443
|
-
|
|
2444
|
-
return;
|
|
2445
|
-
});
|
|
2446
|
-
});
|
|
2447
|
-
|
|
2448
|
-
describe('Schedule --metadata ~~~', () => {
|
|
2449
|
-
it('Should schedule the item', async () => {
|
|
2450
|
-
const argvMetadata = ['automation:testExisting_automation'];
|
|
2451
|
-
const typeKeyCombo = handler.metadataToTypeKey(argvMetadata);
|
|
2452
|
-
// WHEN
|
|
2453
|
-
const scheduled = await handler.schedule('testInstance/testBU', typeKeyCombo);
|
|
2454
|
-
assert.equal(process.exitCode, 0, 'execute should not have thrown an error');
|
|
2455
|
-
|
|
2456
|
-
// automation
|
|
2457
|
-
assert.equal(
|
|
2458
|
-
scheduled['testInstance/testBU']?.automation?.length,
|
|
2459
|
-
1,
|
|
2460
|
-
'returned number of keys does not correspond to number of expected fixed keys'
|
|
2461
|
-
);
|
|
2462
|
-
assert.equal(
|
|
2463
|
-
scheduled['testInstance/testBU']?.automation[0],
|
|
2464
|
-
'testExisting_automation',
|
|
2465
|
-
'returned keys do not correspond to expected fixed keys'
|
|
2466
|
-
);
|
|
2467
|
-
|
|
2468
|
-
return;
|
|
2469
|
-
});
|
|
2470
|
-
});
|
|
2471
|
-
});
|
|
2472
|
-
|
|
2473
|
-
describe('without --metadata ================', () => {
|
|
2474
|
-
describe('retrieve without --metadata ~~~', () => {
|
|
2475
|
-
it('retrieve multiple type with keys', async () => {
|
|
2476
|
-
const buName = 'testInstance/testBU';
|
|
2477
|
-
const result = await handler.retrieve(
|
|
2478
|
-
buName,
|
|
2479
|
-
['dataExtract', 'senderProfile'],
|
|
2480
|
-
['wrong-key', 'Default']
|
|
2481
|
-
);
|
|
2482
|
-
// THEN
|
|
2483
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
2484
|
-
|
|
2485
|
-
const retrievedTypes = Object.keys(result[buName]);
|
|
2486
|
-
assert.equal(retrievedTypes.length, 2, 'retrieve should have returned 2 types');
|
|
2487
|
-
assert.equal(
|
|
2488
|
-
retrievedTypes.includes('dataExtract'),
|
|
2489
|
-
true,
|
|
2490
|
-
'retrieve should have returned dataExtract'
|
|
2491
|
-
);
|
|
2492
|
-
assert.equal(
|
|
2493
|
-
retrievedTypes.includes('senderProfile'),
|
|
2494
|
-
true,
|
|
2495
|
-
'retrieve should have returned senderProfile'
|
|
2496
|
-
);
|
|
2497
|
-
assert.equal(
|
|
2498
|
-
Object.keys(result[buName]['dataExtract']).length,
|
|
2499
|
-
0,
|
|
2500
|
-
'retrieve should have returned 0 dataExtracts'
|
|
2501
|
-
);
|
|
2502
|
-
assert.equal(
|
|
2503
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
2504
|
-
1,
|
|
2505
|
-
'retrieve should have returned 1 senderProfile'
|
|
2506
|
-
);
|
|
2507
|
-
assert.equal(
|
|
2508
|
-
testUtils.getAPIHistoryLength(),
|
|
2509
|
-
12,
|
|
2510
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2511
|
-
);
|
|
2512
|
-
});
|
|
2513
|
-
});
|
|
2514
|
-
|
|
2515
|
-
describe('deploy without --metadata ~~~', () => {
|
|
2516
|
-
beforeEach(() => {
|
|
2517
|
-
testUtils.mockSetup(true);
|
|
2518
|
-
});
|
|
2519
|
-
|
|
2520
|
-
it('deploy multiple type without keys', async () => {
|
|
2521
|
-
const argvMetadata = ['dataExtension', 'senderProfile'];
|
|
2522
|
-
const buName = 'testInstance/testBU';
|
|
2523
|
-
const result = await handler.deploy(buName, argvMetadata);
|
|
2524
|
-
// THEN
|
|
2525
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
2526
|
-
|
|
2527
|
-
const deployedTypes = Object.keys(result[buName]);
|
|
2528
|
-
assert.equal(deployedTypes.length, 2, 'deploy should have returned 2 types');
|
|
2529
|
-
assert.equal(
|
|
2530
|
-
deployedTypes[0],
|
|
2531
|
-
'dataExtension',
|
|
2532
|
-
'deploy should have returned dataExtension'
|
|
2533
|
-
);
|
|
2534
|
-
assert.equal(
|
|
2535
|
-
deployedTypes[1],
|
|
2536
|
-
'senderProfile',
|
|
2537
|
-
'deploy should have returned senderProfile'
|
|
2538
|
-
);
|
|
2539
|
-
assert.equal(
|
|
2540
|
-
Object.keys(result[buName]['dataExtension']).length,
|
|
2541
|
-
2,
|
|
2542
|
-
'deploy should have returned 2 dataExtension'
|
|
2543
|
-
);
|
|
2544
|
-
assert.equal(
|
|
2545
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
2546
|
-
2,
|
|
2547
|
-
'deploy should have returned 2 senderProfile'
|
|
2548
|
-
);
|
|
2549
|
-
assert.equal(
|
|
2550
|
-
testUtils.getAPIHistoryLength(),
|
|
2551
|
-
20,
|
|
2552
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2553
|
-
);
|
|
2554
|
-
});
|
|
2555
|
-
|
|
2556
|
-
it('deploy multiple type with keys', async () => {
|
|
2557
|
-
const buName = 'testInstance/testBU';
|
|
2558
|
-
const result = await handler.deploy(
|
|
2559
|
-
buName,
|
|
2560
|
-
['dataExtension', 'dataExtract', 'senderProfile', 'query'],
|
|
2561
|
-
['wrong-key', 'wrong-key2', 'testExisting_senderProfile', 'testExisting_query']
|
|
2562
|
-
);
|
|
2563
|
-
// THEN
|
|
2564
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
2565
|
-
|
|
2566
|
-
const deployedTypes = Object.keys(result[buName]);
|
|
2567
|
-
assert.equal(deployedTypes.length, 2, 'deploy should have returned 2 types');
|
|
2568
|
-
assert.equal(
|
|
2569
|
-
deployedTypes.includes('dataExtension'),
|
|
2570
|
-
false,
|
|
2571
|
-
'deploy should have returned dataExtension'
|
|
2572
|
-
);
|
|
2573
|
-
assert.equal(
|
|
2574
|
-
deployedTypes.includes('dataExtract'),
|
|
2575
|
-
false,
|
|
2576
|
-
'deploy should have returned dataExtract'
|
|
2577
|
-
);
|
|
2578
|
-
assert.equal(
|
|
2579
|
-
deployedTypes.includes('senderProfile'),
|
|
2580
|
-
true,
|
|
2581
|
-
'deploy should have returned senderProfile'
|
|
2582
|
-
);
|
|
2583
|
-
assert.equal(
|
|
2584
|
-
deployedTypes.includes('query'),
|
|
2585
|
-
true,
|
|
2586
|
-
'deploy should have returned query'
|
|
2587
|
-
);
|
|
2588
|
-
assert.equal(
|
|
2589
|
-
Object.keys(result[buName]['senderProfile']).length,
|
|
2590
|
-
1,
|
|
2591
|
-
'deploy should have returned 1 senderProfile'
|
|
2592
|
-
);
|
|
2593
|
-
assert.equal(
|
|
2594
|
-
Object.keys(result[buName]['query']).length,
|
|
2595
|
-
1,
|
|
2596
|
-
'deploy should have returned 1 query'
|
|
2597
|
-
);
|
|
2598
|
-
assert.equal(
|
|
2599
|
-
testUtils.getAPIHistoryLength(),
|
|
2600
|
-
13,
|
|
2601
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2602
|
-
);
|
|
2603
|
-
});
|
|
2604
|
-
});
|
|
2605
|
-
|
|
2606
|
-
describe('Refresh ================', () => {
|
|
2607
|
-
it('Should not refresh anything due to missing type', async () => {
|
|
2608
|
-
// WHEN
|
|
2609
|
-
const replace = await handler.refresh('testInstance/testBU', null);
|
|
2610
|
-
// THEN
|
|
2611
|
-
assert.equal(process.exitCode, 1, 'refresh should have thrown an error');
|
|
2612
|
-
// retrieve result
|
|
2613
|
-
|
|
2614
|
-
assert.deepEqual(
|
|
2615
|
-
Object.keys(replace).length,
|
|
2616
|
-
0,
|
|
2617
|
-
'should not have replaced anything'
|
|
2618
|
-
);
|
|
2619
|
-
|
|
2620
|
-
assert.equal(
|
|
2621
|
-
testUtils.getAPIHistoryLength(),
|
|
2622
|
-
0,
|
|
2623
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
2624
|
-
);
|
|
2625
|
-
return;
|
|
2626
|
-
});
|
|
2627
|
-
});
|
|
2628
|
-
});
|
|
2629
|
-
|
|
2630
|
-
describe('init ================', () => {
|
|
2631
|
-
it('should init a local project without downloading BUs');
|
|
2632
|
-
|
|
2633
|
-
it('should init a local project and download all BUs');
|
|
2634
|
-
});
|
|
2635
|
-
|
|
2636
|
-
describe('join ================', () => {
|
|
2637
|
-
it('should clone a project from git');
|
|
2638
|
-
});
|
|
2639
|
-
|
|
2640
|
-
describe('upgrade ================', () => {
|
|
2641
|
-
it('should upgrade a project to the latest version');
|
|
2642
|
-
});
|
|
2643
|
-
|
|
2644
|
-
describe('reloadBUs ================', () => {
|
|
2645
|
-
it('should load all BUs from the server and refresh the config');
|
|
2646
|
-
});
|
|
2647
|
-
|
|
2648
|
-
describe('selectTypes ================', () => {
|
|
2649
|
-
it('should change which types are selected for default retrieval');
|
|
2650
|
-
});
|
|
2651
|
-
|
|
2652
|
-
describe('explainTypes ================', () => {
|
|
2653
|
-
it('without options', () => {
|
|
2654
|
-
handler.explainTypes();
|
|
2655
|
-
assert.equal(process.exitCode, 0, 'explainTypes should not have thrown an error');
|
|
2656
|
-
|
|
2657
|
-
return;
|
|
2658
|
-
});
|
|
2659
|
-
|
|
2660
|
-
it('with --json set', () => {
|
|
2661
|
-
handler.setOptions({ json: true });
|
|
2662
|
-
const typeArr = handler.explainTypes();
|
|
2663
|
-
|
|
2664
|
-
assert.equal(
|
|
2665
|
-
process.exitCode,
|
|
2666
|
-
0,
|
|
2667
|
-
'explainTypes --json should not have thrown an error'
|
|
2668
|
-
);
|
|
2669
|
-
|
|
2670
|
-
// check if properties are all there
|
|
2671
|
-
expect(typeArr[0]).to.have.all.keys(
|
|
2672
|
-
'name',
|
|
2673
|
-
'apiName',
|
|
2674
|
-
'retrieveByDefault',
|
|
2675
|
-
'description',
|
|
2676
|
-
'supports'
|
|
2677
|
-
);
|
|
2678
|
-
expect(typeArr[0].supports).to.have.all.keys(
|
|
2679
|
-
'retrieve',
|
|
2680
|
-
'create',
|
|
2681
|
-
'update',
|
|
2682
|
-
'delete',
|
|
2683
|
-
'changeKey',
|
|
2684
|
-
'buildTemplate',
|
|
2685
|
-
'retrieveAsTemplate'
|
|
2686
|
-
);
|
|
2687
|
-
|
|
2688
|
-
// check if certain types were returned
|
|
2689
|
-
assert.equal(
|
|
2690
|
-
typeArr.find((type) => type.apiName === 'dataExtension')?.apiName,
|
|
2691
|
-
'dataExtension',
|
|
2692
|
-
'Expected to find dataExtension type'
|
|
2693
|
-
);
|
|
2694
|
-
|
|
2695
|
-
return;
|
|
2696
|
-
});
|
|
2697
|
-
});
|
|
2698
|
-
|
|
2699
|
-
describe('createDeltaPkg ================', () => {
|
|
2700
|
-
it('should show diff to master branch');
|
|
2701
|
-
// mcdev createDeltaPkg master # resolves to master..HEAD
|
|
2702
|
-
it('should show diff between master and develop branch');
|
|
2703
|
-
// mcdev createDeltaPkg master..develop
|
|
2704
|
-
it(
|
|
2705
|
-
'should show diff between master and develop branch and filter the results to only show MyProject/BU1'
|
|
2706
|
-
);
|
|
2707
|
-
// mcdev createDeltaPkg master..develop --filter 'MyProject/BU1'
|
|
2708
|
-
});
|
|
2709
|
-
});
|