Skip to content

Commit 10e515a

Browse files
committed
start ssh server.
1 parent d9574c8 commit 10e515a

File tree

1 file changed

+14
-0
lines changed
  • tests/integration/local/gitbucket

1 file changed

+14
-0
lines changed

tests/integration/local/gitbucket/init.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@
1111
s.get(base_url + '/signin?redirect=%2F')
1212
s.post(base_url + '/signin', data={"userName": "root", "password": "root"})
1313

14+
# start ssh server
15+
system_data = {
16+
"baseUrl": "http://localhost:8080",
17+
"information": "",
18+
"allowAccountRegistration": "false",
19+
"isCreateRepoOptionPublic": "true",
20+
"allowAnonymousAccess": "true",
21+
"activityLogLimit": "",
22+
"ssh": "on",
23+
"sshHost": "localhost",
24+
"sshPort": "29418",
25+
}
26+
s.post(base_url + '/admin/system', data=system_data)
27+
1428
# create test user
1529
user_data = {
1630
"userName": "user",

0 commit comments

Comments
 (0)