Use OnPremises (#631)

This commit is contained in:
Sung 2023-03-04 10:52:35 +11:00 committed by GitHub
commit d52a5bdf48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 40 additions and 30 deletions

View file

@ -55,28 +55,28 @@ func TestJoin(t *testing.T) {
email string
password string
passwordConfirmation string
onPremise bool
onPremises bool
expectedPro bool
}{
{
email: "alice@example.com",
password: "pass1234",
passwordConfirmation: "pass1234",
onPremise: false,
onPremises: false,
expectedPro: false,
},
{
email: "bob@example.com",
password: "Y9EwmjH@Jq6y5a64MSACUoM4w7SAhzvY",
passwordConfirmation: "Y9EwmjH@Jq6y5a64MSACUoM4w7SAhzvY",
onPremise: false,
onPremises: false,
expectedPro: false,
},
{
email: "chuck@example.com",
password: "e*H@kJi^vXbWEcD9T5^Am!Y@7#Po2@PC",
passwordConfirmation: "e*H@kJi^vXbWEcD9T5^Am!Y@7#Po2@PC",
onPremise: false,
onPremises: false,
expectedPro: false,
},
// on premise
@ -84,7 +84,7 @@ func TestJoin(t *testing.T) {
email: "dan@example.com",
password: "e*H@kJi^vXbWEcD9T5^Am!Y@7#Po2@PC",
passwordConfirmation: "e*H@kJi^vXbWEcD9T5^Am!Y@7#Po2@PC",
onPremise: true,
onPremises: true,
expectedPro: true,
},
}
@ -99,7 +99,7 @@ func TestJoin(t *testing.T) {
Clock: clock.NewMock(),
EmailBackend: &emailBackend,
Config: config.Config{
OnPremise: tc.onPremise,
OnPremises: tc.onPremises,
},
})
defer server.Close()