summaryrefslogtreecommitdiffstatshomepage
path: root/test/integration/tst-example-ssh.sh
blob: af2e7aaae5bbc1f15d7019232b063f9183bdbb6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
test_run() {
    test_example_setup
    test_example_clone_ssh

    test_run_cgitize
    test_verify_error_header_empty

    test_verify_repos \
        lens \
        chromiumembedded/cef \
        graphviz \
        wireguard/wintun \
        goauthentik-dir/authentik \
        goauthentik-dir/client-python \
        github-dir/public \
        bitbucket-dir/public \
        gitlab-dir/public

    test_verify_no_repos \
        github-dir/private \
        bitbucket-dir/private \
        gitlab-dir/private

    test_verify_origin lens 'git@github.com:ekmett/lens.git'
    test_verify_origin chromiumembedded/cef 'git@ssh.bitbucket.org:chromiumembedded/cef.git'
    test_verify_origin graphviz 'git@gitlab.com:graphviz/graphviz.git'
    test_verify_origin goauthentik-dir/authentik 'git@github.com:goauthentik/authentik.git'
    test_verify_origin goauthentik-dir/client-python 'git@github.com:goauthentik/client-python.git'

    test_verify_origin github-dir/public 'git@github.com:cgitize-test/public.git'
    test_verify_origin bitbucket-dir/public 'git@ssh.bitbucket.org:cgitize-test-workspace/public.git'
    test_verify_origin gitlab-dir/public 'git@gitlab.com:cgitize-test/public.git'
}