Files
deploy/test/e2e/ssh_repo_test.go
8334da36f2 Bump major version to 3 (#21410)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: crenshaw-dev <[email protected]>
2025-01-10 16:14:00 -05:00

36 lines
714 B
Go

package e2e
import (
"testing"
. "github.com/argoproj/gitops-engine/pkg/sync/common"
"github.com/argoproj/argo-cd/v3/test/e2e/fixture"
. "github.com/argoproj/argo-cd/v3/test/e2e/fixture/app"
)
func TestCanAccessInsecureSSHRepo(t *testing.T) {
Given(t).
SSHInsecureRepoURLAdded(true).
RepoURLType(fixture.RepoURLTypeSSH).
Path("config-map").
When().
CreateApp().
Sync().
Then().
Expect(OperationPhaseIs(OperationSucceeded))
}
func TestCanAccessSSHRepo(t *testing.T) {
Given(t).
CustomSSHKnownHostsAdded().
SSHRepoURLAdded(true).
RepoURLType(fixture.RepoURLTypeSSH).
Path("config-map").
When().
CreateApp().
Sync().
Then().
Expect(OperationPhaseIs(OperationSucceeded))
}