summaryrefslogtreecommitdiff
path: root/internal/command/command_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/command_test.go')
-rw-r--r--internal/command/command_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/command/command_test.go b/internal/command/command_test.go
index c2a7483..d134e61 100644
--- a/internal/command/command_test.go
+++ b/internal/command/command_test.go
@@ -16,6 +16,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/twofactorrecover"
+ "gitlab.com/gitlab-org/gitlab-shell/internal/command/twofactorverify"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
@@ -76,6 +77,14 @@ func TestNew(t *testing.T) {
expectedSslCertDir: "",
},
{
+ desc: "it returns a TwoFactorVerify command",
+ executable: gitlabShellExec,
+ environment: buildEnv("2fa_verify"),
+ config: basicConfig,
+ expectedType: &twofactorverify.Command{},
+ expectedSslCertDir: "",
+ },
+ {
desc: "it returns an LfsAuthenticate command",
executable: gitlabShellExec,
environment: buildEnv("git-lfs-authenticate"),