|
|
|
@ -482,6 +482,7 @@ describe('git-auth-helper tests', () => {
|
|
|
|
|
)
|
|
|
|
|
settings.persistCredentials = false
|
|
|
|
|
settings.sshKey = ''
|
|
|
|
|
settings.submodules = true
|
|
|
|
|
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
|
|
|
|
await authHelper.configureAuth()
|
|
|
|
|
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
|
|
|
@ -515,6 +516,7 @@ describe('git-auth-helper tests', () => {
|
|
|
|
|
configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsFalseAndSshKeySet
|
|
|
|
|
)
|
|
|
|
|
settings.persistCredentials = false
|
|
|
|
|
settings.submodules = true
|
|
|
|
|
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
|
|
|
|
await authHelper.configureAuth()
|
|
|
|
|
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
|
|
|
@ -541,6 +543,7 @@ describe('git-auth-helper tests', () => {
|
|
|
|
|
configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsTrueAndSshKeyNotSet
|
|
|
|
|
)
|
|
|
|
|
settings.sshKey = ''
|
|
|
|
|
settings.submodules = true
|
|
|
|
|
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
|
|
|
|
await authHelper.configureAuth()
|
|
|
|
|
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
|
|
|
@ -580,6 +583,7 @@ describe('git-auth-helper tests', () => {
|
|
|
|
|
await setup(
|
|
|
|
|
configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsTrueAndSshKeySet
|
|
|
|
|
)
|
|
|
|
|
settings.submodules = true
|
|
|
|
|
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
|
|
|
|
await authHelper.configureAuth()
|
|
|
|
|
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
|
|
|
|