@@ -278,27 +278,14 @@ describe('CloudManagerClient', () => {
278278 const cloneArgs = getGitArgs ( execFileSyncStub . firstCall ) ;
279279 const cloneArgsStr = getGitArgsStr ( execFileSyncStub . firstCall ) ;
280280 expect ( cloneArgs ) . to . include ( 'clone' ) ;
281- expect ( cloneArgsStr ) . to . include ( ' http.https://git.cloudmanager.adobe.com/myorg/. extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==' ) ;
281+ expect ( cloneArgsStr ) . to . include ( ` http.${ TEST_STANDARD_REPO_URL } . extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==` ) ;
282282 expect ( cloneArgsStr ) . to . include ( TEST_STANDARD_REPO_URL ) ;
283283 expect ( cloneArgs ) . to . include ( EXPECTED_CLONE_PATH ) ;
284284 // No credentials in the URL itself
285285 expect ( cloneArgsStr ) . to . not . include ( 'stduser:stdtoken123@' ) ;
286286 expect ( cloneArgsStr ) . to . not . include ( 'Bearer' ) ;
287287 } ) ;
288288
289- it ( 'includes --recurse-submodules in the clone arguments' , async ( ) => {
290- const client = CloudManagerClient . createFrom ( createContext ( ) ) ;
291-
292- await client . clone (
293- TEST_PROGRAM_ID ,
294- TEST_REPO_ID ,
295- { imsOrgId : TEST_IMS_ORG_ID } ,
296- ) ;
297-
298- const gitArgs = getGitArgs ( execFileSyncStub . firstCall ) ;
299- expect ( gitArgs ) . to . include ( '--recurse-submodules' ) ;
300- } ) ;
301-
302289 it ( 'throws when standard credentials not found for programId' , async ( ) => {
303290 const client = CloudManagerClient . createFrom (
304291 createContext ( { CM_STANDARD_REPO_CREDENTIALS : TEST_STANDARD_CREDENTIALS } ) ,
@@ -797,7 +784,7 @@ describe('CloudManagerClient', () => {
797784 const pushArgs = getGitArgs ( execFileSyncStub . firstCall ) ;
798785 const pushArgStr = getGitArgsStr ( execFileSyncStub . firstCall ) ;
799786 expect ( pushArgStr ) . to . include ( 'push' ) ;
800- expect ( pushArgStr ) . to . include ( ' http.https://git.cloudmanager.adobe.com/myorg/. extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==' ) ;
787+ expect ( pushArgStr ) . to . include ( ` http.${ TEST_STANDARD_REPO_URL } . extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==` ) ;
801788 expect ( pushArgStr ) . to . include ( TEST_STANDARD_REPO_URL ) ;
802789 expect ( pushArgStr ) . to . not . include ( 'stduser:stdtoken123@' ) ;
803790 expect ( pushArgStr ) . to . not . include ( 'Bearer' ) ;
@@ -859,7 +846,7 @@ describe('CloudManagerClient', () => {
859846
860847 const pullArgStr = getGitArgsStr ( execFileSyncStub . firstCall ) ;
861848 expect ( pullArgStr ) . to . include ( 'pull' ) ;
862- expect ( pullArgStr ) . to . include ( ' http.https://git.cloudmanager.adobe.com/myorg/. extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==' ) ;
849+ expect ( pullArgStr ) . to . include ( ` http.${ TEST_STANDARD_REPO_URL } . extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==` ) ;
863850 expect ( pullArgStr ) . to . include ( TEST_STANDARD_REPO_URL ) ;
864851 expect ( pullArgStr ) . to . not . include ( 'stduser:stdtoken123@' ) ;
865852 expect ( pullArgStr ) . to . not . include ( 'Bearer' ) ;
0 commit comments