mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
* chore: Upgrade Go module to v2 Signed-off-by: jannfis <jann@mistrust.net> * Restore import order Signed-off-by: jannfis <jann@mistrust.net> * fix knowntypes_normalizer codegen error Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * fix codegen Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * fix Procfile Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
42 lines
1 KiB
Go
42 lines
1 KiB
Go
package e2e
|
|
|
|
import (
|
|
"testing"
|
|
|
|
v1 "k8s.io/api/core/v1"
|
|
|
|
"github.com/argoproj/argo-cd/v2/test/e2e/fixture"
|
|
|
|
. "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
|
|
. "github.com/argoproj/argo-cd/v2/test/e2e/fixture/app"
|
|
)
|
|
|
|
func TestGitSubmoduleSSHSupport(t *testing.T) {
|
|
Given(t).
|
|
RepoURLType(fixture.RepoURLTypeSSHSubmoduleParent).
|
|
Path("submodule").
|
|
Recurse().
|
|
CustomSSHKnownHostsAdded().
|
|
SubmoduleSSHRepoURLAdded(true).
|
|
When().
|
|
CreateFromFile(func(app *Application) {}).
|
|
Sync().
|
|
Then().
|
|
Expect(SyncStatusIs(SyncStatusCodeSynced)).
|
|
Expect(Pod(func(p v1.Pod) bool { return p.Name == "pod-in-submodule" }))
|
|
}
|
|
|
|
func TestGitSubmoduleHTTPSSupport(t *testing.T) {
|
|
Given(t).
|
|
RepoURLType(fixture.RepoURLTypeHTTPSSubmoduleParent).
|
|
Path("submodule").
|
|
Recurse().
|
|
CustomCACertAdded().
|
|
SubmoduleHTTPSRepoURLAdded(true).
|
|
When().
|
|
CreateFromFile(func(app *Application) {}).
|
|
Sync().
|
|
Then().
|
|
Expect(SyncStatusIs(SyncStatusCodeSynced)).
|
|
Expect(Pod(func(p v1.Pod) bool { return p.Name == "pod-in-submodule" }))
|
|
}
|