Skip to content

Commit

Permalink
test: cft NUTs now MPD
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Oct 19, 2023
1 parent b9baf64 commit e8a8725
Show file tree
Hide file tree
Showing 45 changed files with 83 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"target-org": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ref: refs/heads/main
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x�m��
�0D=�+B�vcI�C�_PϲMW$��D��-���9>�13�8�J�7�y/^4'���RIAl���^�K�mO�1�n�)��9�c?#'�y�"s��#�� �"Ne���Ric�J�#��8bFi
�D{ț��� 9z+\ ����M^�V��_1���E�
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
x���]O�0���W�ݏb 1e�0&/�kR�6t�l;�/(�MMw��9�yw�us���i�oH�#h�p%�A�$S ��n�:���7�TSi�;ʠ]�4�����c�h�4 �4�Jq;��qt�S�4��q��s�곢�~�Xt"&�a��j�P!P��/AIS�����}g\n� �6}�T.m���1��j�#<��������c��n�����U�U�
ďm 4��9k�l�[�?��,S���m���c�R��V:ƒ�d2L)��X��Z�7��6�S]�i�9� e@��P���"�s�J�F56[8l�i��\��g�U��˥ҹГ���6nFCi5���!~.,����J��H�Y>{������'OP
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x����n�0 �;�)�1���de��@��;-3� J2D9��W���B���8vj}�xc6g��DI�Z���(�������n�7�2�Ir�/���O�1��*� �~�y|��c-���.zX5�4��)c���T)�P�y"��oq�)!������c������I�i�?�H��T�.ì����g숋{%T~���>�%x�
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
x����
�0 �=�)�B��i@�.!mu�,t����]v�~�/��pI|�Q+ �"�����"�J,�hj-�hI�)c�͟}���־��C�5�p�~Aa�� �b����%�� ��5�
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
789cd1dd3efd1a6325ca7b9429ae93d0f4bb1685
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"sourceMembers": {
"CustomField__customObject__c.customField__c": {
"serverRevisionCounter": 2,
"lastRetrievedFromServer": 2,
"memberType": "CustomField",
"isNameObsolete": false
},
"Profile__Admin": {
"serverRevisionCounter": 6,
"lastRetrievedFromServer": 6,
"memberType": "Profile",
"isNameObsolete": false
},
"Layout__customObject__c-customObject Layout": {
"serverRevisionCounter": 4,
"lastRetrievedFromServer": 4,
"memberType": "Layout",
"isNameObsolete": false
},
"CustomObjectTranslation__customObject__c-es": {
"serverRevisionCounter": 8,
"lastRetrievedFromServer": 8,
"memberType": "CustomObjectTranslation",
"isNameObsolete": false
},
"CustomObject__customObject__c": {
"serverRevisionCounter": 3,
"lastRetrievedFromServer": 3,
"memberType": "CustomObject",
"isNameObsolete": false
},
"Translations__es": {
"serverRevisionCounter": 5,
"lastRetrievedFromServer": 5,
"memberType": "Translations",
"isNameObsolete": false
}
},
"serverMaxRevisionCounter": 8
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"defaultusername": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{
"path": "force-app",
"default": true
},
{
"path": "my-app",
"default": false
}
],
"name": "default",
Expand Down
25 changes: 15 additions & 10 deletions test/nuts/specialTypes/translation.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('translations', () => {
},
],
});
projectPath = path.join(session.project.dir, 'force-app', 'main', 'default');
projectPath = path.join(session.project.dir, 'my-app', 'main', 'default');
translationPath = path.join(projectPath, 'objectTranslations', 'customObject__c-es');
});

Expand Down Expand Up @@ -161,22 +161,27 @@ describe('translations', () => {
});

describe('individual type retrieves', () => {
it('can retrieve COT', async () => {
it('can retrieve COT from CFT', async () => {
execCmd(`project retrieve start -d ${translationPath} --json`, {
ensureExitCode: 0,
});
});

it('can retrieve COT from directory', async () => {
execCmd(
`project retrieve start -d ${path.join(
translationPath,
'customObject__c-es.objectTranslation-meta.xml'
)} --json`,
{
ensureExitCode: 0,
}
// the .objectTranslation is in force-app
const objectTranslationPath = path.join(
session.project.dir,
'force-app',
'main',
'default',
'objectTranslations',
'customObject__c-es',
'customObject__c-es.objectTranslation-meta.xml'
);

execCmd(`project retrieve start -d ${objectTranslationPath} --json`, {
ensureExitCode: 0,
});
});
});
});
Expand Down

0 comments on commit e8a8725

Please sign in to comment.