From: Dessalines Date: Sun, 19 Sep 2021 21:20:47 +0000 (-0400) Subject: Fix tests X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/static/README.zh.hant.md?a=commitdiff_plain;h=0fbc342fe3dce2049dc4e0584fa1790f4b91fa14;p=lemmy.git Fix tests --- diff --git a/api_tests/src/shared.ts b/api_tests/src/shared.ts index 1a1f9a5c..8c7a7933 100644 --- a/api_tests/src/shared.ts +++ b/api_tests/src/shared.ts @@ -76,34 +76,36 @@ export let epsilon: API = { client: new LemmyHttp('http://localhost:8581'), }; +const password = 'lemmylemmy' + export async function setupLogins() { let formAlpha: Login = { username_or_email: 'lemmy_alpha', - password: 'lemmy', + password, }; let resAlpha = alpha.client.login(formAlpha); let formBeta = { username_or_email: 'lemmy_beta', - password: 'lemmy', + password, }; let resBeta = beta.client.login(formBeta); let formGamma = { username_or_email: 'lemmy_gamma', - password: 'lemmy', + password, }; let resGamma = gamma.client.login(formGamma); let formDelta = { username_or_email: 'lemmy_delta', - password: 'lemmy', + password, }; let resDelta = delta.client.login(formDelta); let formEpsilon = { username_or_email: 'lemmy_epsilon', - password: 'lemmy', + password, }; let resEpsilon = epsilon.client.login(formEpsilon); @@ -510,8 +512,8 @@ export async function registerUser( ): Promise { let form: Register = { username, - password: 'test', - password_verify: 'test', + password, + password_verify: password, show_nsfw: true, }; return api.client.register(form); diff --git a/docker/federation/lemmy_alpha.hjson b/docker/federation/lemmy_alpha.hjson index cb38aa8b..3795f0d7 100644 --- a/docker/federation/lemmy_alpha.hjson +++ b/docker/federation/lemmy_alpha.hjson @@ -5,7 +5,7 @@ jwt_secret: changeme setup: { admin_username: lemmy_alpha - admin_password: lemmy + admin_password: lemmylemmy site_name: lemmy-alpha sidebar: alphas sidebar } diff --git a/docker/federation/lemmy_beta.hjson b/docker/federation/lemmy_beta.hjson index e16ecd53..1c0b3876 100644 --- a/docker/federation/lemmy_beta.hjson +++ b/docker/federation/lemmy_beta.hjson @@ -5,7 +5,7 @@ jwt_secret: changeme setup: { admin_username: lemmy_beta - admin_password: lemmy + admin_password: lemmylemmy site_name: lemmy-beta } database: { diff --git a/docker/federation/lemmy_delta.hjson b/docker/federation/lemmy_delta.hjson index 321775fb..2f7dfecb 100644 --- a/docker/federation/lemmy_delta.hjson +++ b/docker/federation/lemmy_delta.hjson @@ -5,7 +5,7 @@ jwt_secret: changeme setup: { admin_username: lemmy_delta - admin_password: lemmy + admin_password: lemmylemmy site_name: lemmy-delta } database: { diff --git a/docker/federation/lemmy_epsilon.hjson b/docker/federation/lemmy_epsilon.hjson index 20fb2c35..87d142a8 100644 --- a/docker/federation/lemmy_epsilon.hjson +++ b/docker/federation/lemmy_epsilon.hjson @@ -5,7 +5,7 @@ jwt_secret: changeme setup: { admin_username: lemmy_epsilon - admin_password: lemmy + admin_password: lemmylemmy site_name: lemmy-epsilon } database: { diff --git a/docker/federation/lemmy_gamma.hjson b/docker/federation/lemmy_gamma.hjson index 784f98eb..2b94a968 100644 --- a/docker/federation/lemmy_gamma.hjson +++ b/docker/federation/lemmy_gamma.hjson @@ -5,7 +5,7 @@ jwt_secret: changeme setup: { admin_username: lemmy_gamma - admin_password: lemmy + admin_password: lemmylemmy site_name: lemmy-gamma } database: { diff --git a/docker/lemmy.hjson b/docker/lemmy.hjson index 53f0ff17..de7cf68a 100644 --- a/docker/lemmy.hjson +++ b/docker/lemmy.hjson @@ -6,7 +6,7 @@ # username for the admin user admin_username: "lemmy" # password for the admin user - admin_password: "lemmy" + admin_password: "lemmylemmy" # name of the site (can be changed later) site_name: "lemmy-test" }