mirror of
https://github.com/dnote/dnote
synced 2026-03-17 07:55:50 +01:00
Use OnPremises (#631)
This commit is contained in:
parent
dd6f8c7f65
commit
d52a5bdf48
9 changed files with 40 additions and 30 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue