github.com/argoproj/argo-cd@v1.8.7/test/e2e/ssh_repo_test.go (about) 1 package e2e 2 3 import ( 4 "testing" 5 6 . "github.com/argoproj/gitops-engine/pkg/sync/common" 7 8 "github.com/argoproj/argo-cd/test/e2e/fixture" 9 . "github.com/argoproj/argo-cd/test/e2e/fixture/app" 10 ) 11 12 func TestCanAccessInsecureSSHRepo(t *testing.T) { 13 Given(t). 14 SSHInsecureRepoURLAdded(true). 15 RepoURLType(fixture.RepoURLTypeSSH). 16 Path("config-map"). 17 When(). 18 Create(). 19 Sync(). 20 Then(). 21 Expect(OperationPhaseIs(OperationSucceeded)) 22 } 23 24 func TestCanAccessSSHRepo(t *testing.T) { 25 Given(t). 26 CustomSSHKnownHostsAdded(). 27 SSHRepoURLAdded(true). 28 RepoURLType(fixture.RepoURLTypeSSH). 29 Path("config-map"). 30 When(). 31 Create(). 32 Sync(). 33 Then(). 34 Expect(OperationPhaseIs(OperationSucceeded)) 35 }