mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-27 01:51:41 +01:00
Fix failing test
- googleauth uses a new website to generate QR codes, cf. https://github.com/wstrange/GoogleAuth/issues/77
This commit is contained in:
parent
0cf9ec4759
commit
776d1e5fa3
@ -62,9 +62,9 @@ public class TotpAuthenticatorTest {
|
|||||||
// then
|
// then
|
||||||
assertThat(key1.getTotpKey(), stringWithLength(16));
|
assertThat(key1.getTotpKey(), stringWithLength(16));
|
||||||
assertThat(key2.getTotpKey(), stringWithLength(16));
|
assertThat(key2.getTotpKey(), stringWithLength(16));
|
||||||
assertThat(key1.getAuthenticatorQrCodeUrl(), startsWith("https://chart.googleapis.com/chart?chs=200x200"));
|
assertThat(key1.getAuthenticatorQrCodeUrl(), startsWith("https://api.qrserver.com/v1/create-qr-code/?data="));
|
||||||
assertThat(key1.getAuthenticatorQrCodeUrl(), containsString("MCtopia"));
|
assertThat(key1.getAuthenticatorQrCodeUrl(), containsString("MCtopia"));
|
||||||
assertThat(key2.getAuthenticatorQrCodeUrl(), startsWith("https://chart.googleapis.com/chart?chs=200x200"));
|
assertThat(key2.getAuthenticatorQrCodeUrl(), startsWith("https://api.qrserver.com/v1/create-qr-code/?data="));
|
||||||
assertThat(key1.getTotpKey(), not(equalTo(key2.getTotpKey())));
|
assertThat(key1.getTotpKey(), not(equalTo(key2.getTotpKey())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user