summaryrefslogtreecommitdiffstats
path: root/cmd/admin_auth_ldap_test.go
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-09-27 14:25:38 +0200
committerGitHub <noreply@github.com>2023-09-27 14:25:38 +0200
commit70f8d10fc5b1a5c8a80e5c05ef6e864154d9b272 (patch)
tree04fa4c8ecb363180204f74c46e4d29291e1b4863 /cmd/admin_auth_ldap_test.go
parentFix chinese translation (#27296) (diff)
downloadforgejo-70f8d10fc5b1a5c8a80e5c05ef6e864154d9b272.tar.xz
forgejo-70f8d10fc5b1a5c8a80e5c05ef6e864154d9b272.zip
move the `gitea admin` subcommands into separate files (#27307)
As title. Probably it's better to put those sub cmd to different dirs. Will do that in the future.
Diffstat (limited to 'cmd/admin_auth_ldap_test.go')
-rw-r--r--cmd/admin_auth_ldap_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/admin_auth_ldap_test.go b/cmd/admin_auth_ldap_test.go
index 210a6463c3..228c9dd3ed 100644
--- a/cmd/admin_auth_ldap_test.go
+++ b/cmd/admin_auth_ldap_test.go
@@ -226,7 +226,7 @@ func TestAddLdapBindDn(t *testing.T) {
// Create a copy of command to test
app := cli.NewApp()
- app.Flags = cmdAuthAddLdapBindDn.Flags
+ app.Flags = microcmdAuthAddLdapBindDn.Flags
app.Action = service.addLdapBindDn
// Run it
@@ -457,7 +457,7 @@ func TestAddLdapSimpleAuth(t *testing.T) {
// Create a copy of command to test
app := cli.NewApp()
- app.Flags = cmdAuthAddLdapSimpleAuth.Flags
+ app.Flags = microcmdAuthAddLdapSimpleAuth.Flags
app.Action = service.addLdapSimpleAuth
// Run it
@@ -920,7 +920,7 @@ func TestUpdateLdapBindDn(t *testing.T) {
// Create a copy of command to test
app := cli.NewApp()
- app.Flags = cmdAuthUpdateLdapBindDn.Flags
+ app.Flags = microcmdAuthUpdateLdapBindDn.Flags
app.Action = service.updateLdapBindDn
// Run it
@@ -1310,7 +1310,7 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
// Create a copy of command to test
app := cli.NewApp()
- app.Flags = cmdAuthUpdateLdapSimpleAuth.Flags
+ app.Flags = microcmdAuthUpdateLdapSimpleAuth.Flags
app.Action = service.updateLdapSimpleAuth
// Run it