diff options
author | ms <ms@taler.net> | 2023-03-19 22:18:09 +0100 |
---|---|---|
committer | ms <ms@taler.net> | 2023-03-19 22:18:09 +0100 |
commit | 9ca3c129cdba5e71e3d2f93b05099ba8bb6f85e3 (patch) | |
tree | 71c4fc7ab64d27adccea6fdcc065163105f92d7d /nexus/src/test/kotlin/NexusApiTest.kt | |
parent | 79b3ce63052d8e5c87dd9abf78af780aff7c0707 (diff) | |
download | libeufin-9ca3c129cdba5e71e3d2f93b05099ba8bb6f85e3.tar.gz libeufin-9ca3c129cdba5e71e3d2f93b05099ba8bb6f85e3.tar.bz2 libeufin-9ca3c129cdba5e71e3d2f93b05099ba8bb6f85e3.zip |
Testing facade deletion.
And causing the facade state table to get
also deleted via 'on delete cascade'.
Diffstat (limited to 'nexus/src/test/kotlin/NexusApiTest.kt')
-rw-r--r-- | nexus/src/test/kotlin/NexusApiTest.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nexus/src/test/kotlin/NexusApiTest.kt b/nexus/src/test/kotlin/NexusApiTest.kt index 4958e301..30763005 100644 --- a/nexus/src/test/kotlin/NexusApiTest.kt +++ b/nexus/src/test/kotlin/NexusApiTest.kt @@ -11,6 +11,22 @@ import tech.libeufin.nexus.server.nexusApp */ class NexusApiTest { + // Testing basic operations on facades. + @Test + fun facades() { + // Deletes the facade (created previously by MakeEnv.kt) + withTestDatabase { + prepNexusDb() + testApplication { + application(nexusApp) + client.delete("/facades/taler") { + basicAuth("foo", "foo") + expectSuccess = true + } + } + } + } + // Testing the creation of scheduled tasks. @Test fun schedule() { |