[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 06/07: update test for new response from merchant ba
From: |
gnunet |
Subject: |
[taler-wallet-core] 06/07: update test for new response from merchant backend |
Date: |
Thu, 09 Nov 2023 14:01:51 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 2e73e89ff29857e070af715b7988c8ec415ba6fd
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Nov 9 10:01:20 2023 -0300
update test for new response from merchant backend
---
.../merchant-backoffice-ui/src/hooks/instance.test.ts | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.test.ts
b/packages/merchant-backoffice-ui/src/hooks/instance.test.ts
index 0c0c44590..ee1576764 100644
--- a/packages/merchant-backoffice-ui/src/hooks/instance.test.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/instance.test.ts
@@ -35,6 +35,7 @@ import {
API_DELETE_INSTANCE,
API_GET_CURRENT_INSTANCE,
API_LIST_INSTANCES,
+ API_NEW_LOGIN,
API_UPDATE_CURRENT_INSTANCE,
API_UPDATE_CURRENT_INSTANCE_AUTH,
API_UPDATE_INSTANCE_BY_ID,
@@ -140,7 +141,6 @@ describe("instance api interaction with details", () => {
name: "instance_name",
auth: {
method: "token",
- token: "not-secret",
},
});
env.addRequestExpectation(API_UPDATE_CURRENT_INSTANCE_AUTH, {
@@ -149,6 +149,16 @@ describe("instance api interaction with details", () => {
token: "secret",
} as MerchantBackend.Instances.InstanceAuthConfigurationMessage,
});
+ env.addRequestExpectation(API_NEW_LOGIN, {
+ auth: "secret",
+ request: {
+ scope: "write",
+ duration: {
+ "d_us": "forever",
+ },
+ refreshable: true,
+ },
+ });
env.addRequestExpectation(API_GET_CURRENT_INSTANCE, {
response: {
name: "instance_name",
@@ -171,7 +181,7 @@ describe("instance api interaction with details", () => {
name: "instance_name",
auth: {
method: "token",
- token: "secret",
+ // token: "secret",
},
});
},
@@ -217,7 +227,7 @@ describe("instance api interaction with details", () => {
name: "instance_name",
auth: {
method: "token",
- token: "not-secret",
+ // token: "not-secret",
},
});
env.addRequestExpectation(API_UPDATE_CURRENT_INSTANCE_AUTH, {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (98c5e45de -> 102466500), gnunet, 2023/11/09
- [taler-wallet-core] 05/07: fix: not evicting cache because of typo, gnunet, 2023/11/09
- [taler-wallet-core] 04/07: add fake url for test, gnunet, 2023/11/09
- [taler-wallet-core] 07/07: floor when moving from ms to secs, gnunet, 2023/11/09
- [taler-wallet-core] 01/07: update test for new auth api, gnunet, 2023/11/09
- [taler-wallet-core] 02/07: update test for longest currency name, gnunet, 2023/11/09
- [taler-wallet-core] 06/07: update test for new response from merchant backend,
gnunet <=
- [taler-wallet-core] 03/07: update test for "limit=0" optimization, gnunet, 2023/11/09