gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 04/05: Testing 401 on GET /accounts/{USERNAME}


From: gnunet
Subject: [libeufin] 04/05: Testing 401 on GET /accounts/{USERNAME}
Date: Mon, 18 Sep 2023 14:27:17 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 14f5c806bda33cdbea41abb821a9962a8f3b22d7
Author: MS <ms@taler.net>
AuthorDate: Mon Sep 18 13:58:29 2023 +0200

    Testing 401 on GET /accounts/{USERNAME}
---
 bank/src/test/kotlin/LibeuFinApiTest.kt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bank/src/test/kotlin/LibeuFinApiTest.kt 
b/bank/src/test/kotlin/LibeuFinApiTest.kt
index cb68a8ff..3a0b9965 100644
--- a/bank/src/test/kotlin/LibeuFinApiTest.kt
+++ b/bank/src/test/kotlin/LibeuFinApiTest.kt
@@ -4,6 +4,7 @@ import io.ktor.client.request.*
 import io.ktor.client.statement.*
 import io.ktor.http.*
 import io.ktor.server.testing.*
+import io.netty.handler.codec.http.HttpResponseStatus
 import kotlinx.serialization.json.Json
 import net.taler.wallet.crypto.Base32Crockford
 import org.junit.Test
@@ -112,6 +113,11 @@ class LibeuFinApiTest {
                 expectSuccess = true
                 basicAuth("admin", "admin")
             }
+            val shouldNot = client.get("/accounts/foo") {
+                basicAuth("not", "not")
+                expectSuccess = false
+            }
+            assert(shouldNot.status == HttpStatusCode.Unauthorized)
         }
     }
     /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]