Repository: Accenture/sfmc-devtools (js)

Issue:
[TASK] fix test for importFile activities for SMS
error: `ImportFile testExisting_importFileSMS: Could not find mobile code and keyword nor source for this SMS import activity.`

this was overlooked when merging issue #745

Pull request:
Task/1227 fix test for importfile activities for sms
# PR details

## What changes did you make? (Give an overview)

- closes #1227

## Further details (optional)

...

## Checklist

- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] test scripts updated
- [ ] Wiki updated (if applicable)


Patch:
diff --git a/lib/metadataTypes/ImportFile.js b/lib/metadataTypes/ImportFile.js
index 81d9fb64..b7c1ee65 100644
--- a/lib/metadataTypes/ImportFile.js
+++ b/lib/metadataTypes/ImportFile.js
@@ -198,8 +198,9 @@ class ImportFile extends MetadataType {
      */
     static async deploy(metadataMap, deployDir, retrieveDir) {
         if (
-            Object.values(metadataMap).filter((item) => item.c__destinationType === 'SMS').length >
-            0
+            Object.values(metadataMap).filter(
+                (item) => item.destination.c__destinationType === 'SMS'
+            ).length > 0
         ) {
             Util.logger.info(`Caching dependent Metadata: dataExtension (source for SMS imports)`);
 
@@ -225,61 +226,69 @@ class ImportFile extends MetadataType {
      * @returns {Promise} Promise
      */
     static async preDeployTasks(metadata) {
-        const fileLocation = cache.getByKey('fileLocation', metadata.r__fileLocation_name);
+        const fileLocation = cache.getByKey('fileLocation', metadata.source.r__fileLocation_name);
         if (!fileLocation) {
             throw new Error(`fileLocation ${metadata.r__fileLocation_name} not found in cache`);
         }
 
         metadata.fileTransferLocationId = fileLocation.id;
         metadata.fileTransferLocationTypeId = fileLocation.locationTypeId;
-        delete metadata.r__fileLocation_name;
+        delete metadata.source.r__fileLocation_name;
 
-        switch (metadata.c__destinationType) {
+        switch (metadata.destination.c__destinationType) {
             case 'DataExtension': {
-                if (metadata.r__dataExtension_CustomerKey) {
+                if (metadata.destination.r__dataExtension_CustomerKey) {
                     metadata.destinationObjectId = cache.searchForField(
                         'dataExtension',
-                        metadata.r__dataExtension_CustomerKey,
+                        metadata.destination.r__dataExtension_CustomerKey,
                         'CustomerKey',
                         'ObjectID'
                     );
-                    delete metadata.r__dataExtension_CustomerKey;
+                    delete metadata.destination.r__dataExtension_CustomerKey;
                 } else {
                     throw new Error('Import Destination DataExtension not defined');
                 }
                 break;
             }
             case 'List': {
-                if (metadata.r__list_PathName) {
+                if (metadata.destination.r__list_PathName) {
                     metadata.destinationObjectId = cache.getListObjectId(
-                        metadata.r__list_PathName,
+                        metadata.destination.r__list_PathName,
                         'ObjectID'
                     );
                     // destinationId is also needed for List types
-                    metadata.destinationId = cache.getListObjectId(metadata.r__list_PathName, 'ID');
-                    delete metadata.r__list_PathName;
+                    metadata.destinationId = cache.getListObjectId(
+                        metadata.destination.r__list_PathName,
+                        'ID'
+                    );
+                    delete metadata.destination.r__list_PathName;
                 } else {
                     throw new Error('Import Destination List not defined');
                 }
                 break;
             }
             case 'SMS': {
-                if (metadata.c__codeKeyword) {
+                if (metadata.destination.c__codeKeyword) {
                     // code
                     const codeObj = cache.getByKey(
                         'mobileCode',
-                        metadata.c__codeKeyword.split('.')[0]
+                        metadata.destination.c__codeKeyword.split('.')[0]
                     );
                     if (!codeObj) {
-                        throw new Error(`mobileCode ${metadata.c__codeKeyword} not found in cache`);
+                        throw new Error(
+                            `mobileCode ${metadata.destination.c__codeKeyword} not found in cache`
+                        );
                     }
                     metadata.code = codeObj;
 
                     // keyword
-                    const keywordObj = cache.getByKey('mobileKeyword', metadata.c__codeKeyword);
+                    const keywordObj = cache.getByKey(
+                        'mobileKeyword',
+                        metadata.destination.c__codeKeyword
+                    );
                     if (!keywordObj) {
                         throw new Error(
-                            `mobileKeyword ${metadata.c__codeKeyword} not found in cache`
+                            `mobileKeyword ${metadata.destination.c__codeKeyword} not found in cache`
                         );
                     }
                     metadata.keyword = keywordObj;
@@ -293,17 +302,19 @@ class ImportFile extends MetadataType {
                 metadata.destinationObjectId = '00000000-0000-0000-0000-000000000000';
                 metadata.destinationObjectType = 'MobileSubscription';
                 // source
-                if (this.dataExtensionsLegacy[metadata.c__sourceObjectKey]) {
+                if (this.dataExtensionsLegacy[metadata.source.r__dataExtension_CustomerKey]) {
                     metadata.sourceObjectId =
-                        this.dataExtensionsLegacy[metadata.c__sourceObjectKey].id;
+                        this.dataExtensionsLegacy[metadata.source.r__dataExtension_CustomerKey].id;
                     metadata.sourceObjectName =
-                        this.dataExtensionsLegacy[metadata.c__sourceObjectKey].dataExtensionName;
-                    delete metadata.c__sourceObjectKey;
+                        this.dataExtensionsLegacy[
+                            metadata.source.r__dataExtension_CustomerKey
+                        ].dataExtensionName;
+                    delete metadata.source.r__dataExtension_CustomerKey;
                 }
 
                 Util.logger.debug(
                     ` - importFile ${metadata[this.definition.keyField]}: Import Destination Type ${
-                        metadata.c__destinationType
+                        metadata.destination.c__destinationType
                     } not fully supported. Deploy might fail.`
                 );
                 break;
@@ -311,7 +322,7 @@ class ImportFile extends MetadataType {
             default: {
                 Util.logger.debug(
                     ` - importFile ${metadata[this.definition.keyField]}: Import Destination Type ${
-                        metadata.c__destinationType
+                        metadata.destination.c__destinationType
                     } not fully supported. Deploy might fail.`
                 );
             }
@@ -323,10 +334,13 @@ class ImportFile extends MetadataType {
         }
         // When the destinationObjectTypeId is 584 it refers to Mobile Connect which is not supported as an Import Type
         metadata.destinationObjectTypeId =
-            this.definition.destinationObjectTypeMapping[metadata.c__destinationType];
+            this.definition.destinationObjectTypeMapping[metadata.destination.c__destinationType];
         metadata.subscriberImportTypeId =
             this.definition.subscriberImportTypeMapping[metadata.c__subscriberImportType];
         metadata.updateTypeId = this.definition.updateTypeMapping[metadata.c__dataAction];
+
+        delete metadata.destination;
+        delete metadata.source;
         return metadata;
     }
 
@@ -337,7 +351,9 @@ class ImportFile extends MetadataType {
      * @returns {MetadataTypeItem} parsed metadata
      */
     static postRetrieveTasks(metadata) {
-        metadata.r__fileLocation_name = cache.searchForField(
+        metadata.destination = {};
+        metadata.source = {};
+        metadata.source.r__fileLocation_name = cache.searchForField(
             'fileLocation',
             metadata.fileTransferLocationId,
             'id',
@@ -346,14 +362,14 @@ class ImportFile extends MetadataType {
         delete metadata.fileTransferLocationId;
 
         // * When the destinationObjectTypeId is 584 it refers to Mobile Connect which is not supported as an Import Type
-        metadata.c__destinationType = Util.inverseGet(
+        metadata.destination.c__destinationType = Util.inverseGet(
             this.definition.destinationObjectTypeMapping,
             metadata.destinationObjectTypeId
         );
-        switch (metadata.c__destinationType) {
+        switch (metadata.destination.c__destinationType) {
             case 'DataExtension': {
                 try {
-                    metadata.r__dataExtension_CustomerKey = cache.searchForField(
+                    metadata.destination.r__dataExtension_CustomerKey = cache.searchForField(
                         'dataExtension',
                         metadata.destinationObjectId,
                         'ObjectID',
@@ -368,7 +384,7 @@ class ImportFile extends MetadataType {
             }
             case 'List': {
                 try {
-                    metadata.r__list_PathName = cache.getListPathName(
+                    metadata.destination.r__list_PathName = cache.getListPathName(
                         metadata.destinationObjectId,
                         'ObjectID'
                     );
@@ -383,14 +399,14 @@ class ImportFile extends MetadataType {
                 if (this.smsImports[metadata.name]) {
                     const smsImport = this.smsImports[metadata.name];
                     // code + keyword
-                    metadata.c__codeKeyword =
+                    metadata.destination.c__codeKeyword =
                         smsImport.code?.code + '.' + smsImport.keyword?.keyword;
                     // source dataExtension
                     if (smsImport.sourceObjectKey) {
-                        metadata.c__sourceObjectKey = smsImport.sourceObjectKey;
+                        metadata.source.r__dataExtension_CustomerKey = smsImport.sourceObjectKey;
                     }
                 } else {
-                    Util.logger.debug(
+                    Util.logger.warn(
                         ` - ImportFile ${metadata.customerKey}: Could not find mobile code and keyword nor source for this SMS import activity.`
                     );
                 }
diff --git a/lib/metadataTypes/definitions/ImportFile.definition.js b/lib/metadataTypes/definitions/ImportFile.definition.js
index cbefdc7b..236f954b 100644
--- a/lib/metadataTypes/definitions/ImportFile.definition.js
+++ b/lib/metadataTypes/definitions/ImportFile.definition.js
@@ -255,25 +255,37 @@ export default {
             retrieving: true,
             template: true,
         },
-        r__dataExtension_CustomerKey: {
+        'destination.c__codeKeyword': {
             isCreateable: false,
             isUpdateable: false,
             retrieving: true,
             template: true,
         },
-        c__destinationType: {
+        'source.r__dataExtension_CustomerKey': {
             isCreateable: false,
             isUpdateable: false,
             retrieving: true,
             template: true,
         },
-        r__list_PathName: {
+        'destination.r__dataExtension_CustomerKey': {
             isCreateable: false,
             isUpdateable: false,
             retrieving: true,
             template: true,
         },
-        r__fileLocation_name: {
+        'destination.c__destinationType': {
+            isCreateable: false,
+            isUpdateable: false,
+            retrieving: true,
+            template: true,
+        },
+        'destination.r__list_PathName': {
+            isCreateable: false,
+            isUpdateable: false,
+            retrieving: true,
+            template: true,
+        },
+        'source.r__fileLocation_name': {
             isCreateable: false,
             isUpdateable: false,
             retrieving: true,


Test patch:
diff --git a/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json b/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json
index 16c63181..84a4db50 100644
--- a/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json
+++ b/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json
@@ -24,8 +24,12 @@
     "standardQuotedStrings": true,
     "c__blankFileProcessing": "Process",
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "DataExtension",
     "c__subscriberImportType": "DataExtension",
-    "r__dataExtension_CustomerKey": "testExisting_dataExtension",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "testExisting_dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json b/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json
index bf4bd6ad..81a4d3dc 100644
--- a/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json
+++ b/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json
@@ -21,9 +21,13 @@
     "name": "testNew_importFile",
     "sendEmailNotification": false,
     "standardQuotedStrings": true,
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
-    "c__destinationType": "DataExtension",
-    "r__dataExtension_CustomerKey": "testExisting_dataExtension",
     "c__subscriberImportType": "DataExtension",
-    "c__dataAction": "AddUpdate"
+    "c__dataAction": "AddUpdate",
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "testExisting_dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/importFile/build-expected.json b/test/resources/9999999/importFile/build-expected.json
index 33e915ff..51b090b6 100644
--- a/test/resources/9999999/importFile/build-expected.json
+++ b/test/resources/9999999/importFile/build-expected.json
@@ -2,7 +2,6 @@
     "allowErrors": true,
     "c__blankFileProcessing": "Skip",
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "DataExtension",
     "c__subscriberImportType": "DataExtension",
     "customerKey": "testTemplated_importFile",
     "dateFormatLocale": "en-US",
@@ -21,8 +20,13 @@
     "maxFileAgeScheduleOffsetHours": 0,
     "maxImportFrequencyHours": 0,
     "name": "testTemplated_importFile",
-    "r__dataExtension_CustomerKey": "testTemplated_dataExtension",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
     "sendEmailNotification": false,
-    "standardQuotedStrings": true
+    "standardQuotedStrings": true,
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "testTemplated_dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/importFile/get-expected.json b/test/resources/9999999/importFile/get-expected.json
index c60924af..5e05166a 100644
--- a/test/resources/9999999/importFile/get-expected.json
+++ b/test/resources/9999999/importFile/get-expected.json
@@ -2,7 +2,6 @@
     "allowErrors": true,
     "c__blankFileProcessing": "Skip",
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "DataExtension",
     "c__subscriberImportType": "DataExtension",
     "createdDate": "2022-11-09T05:32:30.533",
     "customerKey": "testExisting_importFile",
@@ -23,8 +22,14 @@
     "maxImportFrequencyHours": 0,
     "modifiedDate": "2022-11-17T07:13:03.95",
     "name": "testExisting_importFile",
-    "r__dataExtension_CustomerKey": "testExisting_dataExtension",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
+
     "sendEmailNotification": false,
-    "standardQuotedStrings": true
+    "standardQuotedStrings": true,
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "testExisting_dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/importFile/get-sms-expected.json b/test/resources/9999999/importFile/get-sms-expected.json
index 230885a1..b25b501a 100644
--- a/test/resources/9999999/importFile/get-sms-expected.json
+++ b/test/resources/9999999/importFile/get-sms-expected.json
@@ -1,7 +1,6 @@
 {
     "allowErrors": true,
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "SMS",
     "c__subscriberImportType": "DataExtension",
     "createdDate": "2022-11-24T03:29:01.05",
     "customerKey": "testExisting_importFileSMS",
@@ -67,7 +66,14 @@
     "modifiedDate": "2023-07-19T23:06:33.577",
     "name": "testExisting_importFileSMS",
     "notificationEmailAddress": "joern.berkefeld@accenture.com",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
     "sendEmailNotification": true,
-    "standardQuotedStrings": false
+    "standardQuotedStrings": false,
+    "destination": {
+        "c__destinationType": "SMS",
+        "c__codeKeyword": "4912312345678.TESTEXISTING_KEYWORD"
+    },
+    "source": {
+        "r__dataExtension_CustomerKey": "testExisting_dataExtension",
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/importFile/patch-expected.json b/test/resources/9999999/importFile/patch-expected.json
index c0c07862..4dc13b3a 100644
--- a/test/resources/9999999/importFile/patch-expected.json
+++ b/test/resources/9999999/importFile/patch-expected.json
@@ -2,7 +2,6 @@
     "allowErrors": true,
     "c__blankFileProcessing": "Process",
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "DataExtension",
     "c__subscriberImportType": "DataExtension",
     "createdDate": "2022-11-09T05:32:30.533",
     "customerKey": "testExisting_importFile",
@@ -23,8 +22,13 @@
     "maxImportFrequencyHours": 0,
     "modifiedDate": "2023-07-18T09:11:26.19",
     "name": "testExisting_importFile",
-    "r__dataExtension_CustomerKey": "testExisting_dataExtension",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
     "sendEmailNotification": false,
-    "standardQuotedStrings": true
+    "standardQuotedStrings": true,
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "testExisting_dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/importFile/post-expected.json b/test/resources/9999999/importFile/post-expected.json
index 4fb99f81..d3c37c05 100644
--- a/test/resources/9999999/importFile/post-expected.json
+++ b/test/resources/9999999/importFile/post-expected.json
@@ -1,7 +1,6 @@
 {
     "allowErrors": true,
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "DataExtension",
     "c__subscriberImportType": "DataExtension",
     "createdDate": "2022-11-09T05:53:03.243",
     "customerKey": "testNew_importFile",
@@ -21,8 +20,13 @@
     "maxImportFrequencyHours": 0,
     "modifiedDate": "2023-07-18T09:11:26.19",
     "name": "testNew_importFile",
-    "r__dataExtension_CustomerKey": "testExisting_dataExtension",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
     "sendEmailNotification": false,
-    "standardQuotedStrings": true
+    "standardQuotedStrings": true,
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "testExisting_dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/importFile/template-expected.json b/test/resources/9999999/importFile/template-expected.json
index 52508601..c29bd798 100644
--- a/test/resources/9999999/importFile/template-expected.json
+++ b/test/resources/9999999/importFile/template-expected.json
@@ -2,7 +2,6 @@
     "allowErrors": true,
     "c__blankFileProcessing": "Skip",
     "c__dataAction": "AddUpdate",
-    "c__destinationType": "DataExtension",
     "c__subscriberImportType": "DataExtension",
     "customerKey": "{{{prefix}}}importFile",
     "dateFormatLocale": "en-US",
@@ -21,8 +20,13 @@
     "maxFileAgeScheduleOffsetHours": 0,
     "maxImportFrequencyHours": 0,
     "name": "{{{prefix}}}importFile",
-    "r__dataExtension_CustomerKey": "{{{prefix}}}dataExtension",
-    "r__fileLocation_name": "ExactTarget Enhanced FTP",
     "sendEmailNotification": false,
-    "standardQuotedStrings": true
+    "standardQuotedStrings": true,
+    "destination": {
+        "c__destinationType": "DataExtension",
+        "r__dataExtension_CustomerKey": "{{{prefix}}}dataExtension"
+    },
+    "source": {
+        "r__fileLocation_name": "ExactTarget Enhanced FTP"
+    }
 }
diff --git a/test/resources/9999999/legacy/v1/beta/mobile/imports/get-response.json b/test/resources/9999999/legacy/v1/beta/mobile/imports/get-response.json
index 2a4ea6fc..cb63280f 100644
--- a/test/resources/9999999/legacy/v1/beta/mobile/imports/get-response.json
+++ b/test/resources/9999999/legacy/v1/beta/mobile/imports/get-response.json
@@ -5,16 +5,16 @@
     "entry": [
         {
             "id": "ZTFXX0hpNDNFZXU0RzBqZk45SGIxdzo0MTow",
-            "name": "Contact_SMS_DEV_2",
+            "name": "testExisting_importFileSMS",
             "sourceFile": "_CustomObject",
             "audience": {
                 "id": "QUFBQUFBQUFBQUFBQUFBQUFBQUFBQTo2Mzow",
-                "name": "Contact_SMS_DEV_2",
+                "name": "testExisting_importFileSMS",
                 "description": ""
             },
             "code": {
-                "id": "N3Y3RTN6aXBWVUtmdUtGWEpfNW5yUTo4MTow",
-                "code": "491771783703",
+                "id": "RXBwc0JoNk9jVTY0YWJNWFZDaGxvdzo4MTow",
+                "code": "4912312345678",
                 "codeType": "PRIVATE",
                 "isShortCode": false,
                 "isGsmCharacterSetOnly": false,
@@ -27,8 +27,8 @@
                 "isOwner": false
             },
             "keyword": {
-                "id": "Y0ZDXzVjVHdYVUNlQVJlT2U2dzVKZzo4Njow",
-                "keyword": "ONEDEVICE_DEV",
+                "id": "cTVJaG5oSDJPVUNHcUh6Z3pQT2tVdzo4Njow",
+                "keyword": "TESTEXISTING_KEYWORD",
                 "restriction": "NONE",
                 "isInherited": false,
                 "isLinkShorteningEnabled": false,
@@ -48,8 +48,8 @@
                 "description": ""
             },
             "code": {
-                "id": "N3Y3RTN6aXBWVUtmdUtGWEpfNW5yUTo4MTow",
-                "code": "491771783703",
+                "id": "RXBwc0JoNk9jVTY0YWJNWFZDaGxvdzo4MTow",
+                "code": "4912312345678",
                 "codeType": "PRIVATE",
                 "isShortCode": false,
                 "isGsmCharacterSetOnly": false,
@@ -83,8 +83,8 @@
                 "description": ""
             },
             "code": {
-                "id": "N3Y3RTN6aXBWVUtmdUtGWEpfNW5yUTo4MTow",
-                "code": "491771783703",
+                "id": "RXBwc0JoNk9jVTY0YWJNWFZDaGxvdzo4MTow",
+                "code": "4912312345678",
                 "codeType": "PRIVATE",
                 "isShortCode": false,
                 "isGsmCharacterSetOnly": false,
diff --git a/test/resources/9999999/legacy/v1/beta/mobile/message/NTQ3Ojc4OjA/get-response.json b/test/resources/9999999/legacy/v1/beta/mobile/message/NTQ3Ojc4OjA/get-response.json
index a355de3d..61417f3a 100644
--- a/test/resources/9999999/legacy/v1/beta/mobile/message/NTQ3Ojc4OjA/get-response.json
+++ b/test/resources/9999999/legacy/v1/beta/mobile/message/NTQ3Ojc4OjA/get-response.json
@@ -31,7 +31,7 @@
     "status": "Active/Scheduled",
     "invalidMessage": "",
     "responseMessage": "",
-    "publishedMessage": "Text '<keyword>'  to 491771783703.",
+    "publishedMessage": "Text '<keyword>'  to 4912312345678.",
     "nextJob": {
         "id": "NTQ3Ojc5OjA",
         "lastUpdated": "2023-03-28T13:15:58.323Z",
diff --git a/test/resources/9999999/mobileMessage/post-create-expected.json b/test/resources/9999999/mobileMessage/post-create-expected.json
index e292aa8b..936c2bd6 100644
--- a/test/resources/9999999/mobileMessage/post-create-expected.json
+++ b/test/resources/9999999/mobileMessage/post-create-expected.json
@@ -18,7 +18,7 @@
     "status": "Active/Scheduled",
     "invalidMessage": "",
     "responseMessage": "",
-    "publishedMessage": "Text '<keyword>'  to 491771783703.",
+    "publishedMessage": "Text '<keyword>'  to 4912312345678.",
     "isTest": false,
     "moTimezone": {
         "offset": 1,