1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 07:56:19 +00:00

add test from redirect from http to http

This commit is contained in:
Schabi 2020-11-10 11:35:53 +01:00 committed by Abel García de Prada
parent 950d3a50da
commit 61ee5aab91

View File

@ -83,6 +83,12 @@ class StatusRequestorTest {
true, SECURE_DOMAIN, SECURE_DOMAIN))
}
@Test
fun `check redirect to unsecure connection - ok - from http to http`() {
assertFalse(requester.isRedirectedToNonSecureConnection(
false, UNSECURE_DOMAIN, UNSECURE_DOMAIN))
}
companion object {
const val TEST_DOMAIN = "https://cloud.somewhere.com"
const val SUB_PATH = "/subdir"