gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 01/10: Added testing command for policy lookup


From: gnunet
Subject: [taler-anastasis] 01/10: Added testing command for policy lookup
Date: Wed, 15 Jan 2020 23:42:25 +0100

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 20990544ee029d3eb0f71e63fd5716520f4d0e7c
Author: Dennis Neufeld <address@hidden>
AuthorDate: Fri Dec 20 13:01:28 2019 +0000

    Added testing command for policy lookup
---
 src/backend/anastasis-httpd_policy_upload.c | 2 +-
 src/lib/test_anastasis_api.c                | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/backend/anastasis-httpd_policy_upload.c 
b/src/backend/anastasis-httpd_policy_upload.c
index 5428fb5..04b0548 100644
--- a/src/backend/anastasis-httpd_policy_upload.c
+++ b/src/backend/anastasis-httpd_policy_upload.c
@@ -491,7 +491,7 @@ begin_payment (struct PolicyUploadContext *puc,
                                       puc);
   AH_trigger_curl ();
   json_decref (order);
-  GNUNET_free (&order_id);
+  GNUNET_free_non_null (&order_id);
   return MHD_YES;
 }
 
diff --git a/src/lib/test_anastasis_api.c b/src/lib/test_anastasis_api.c
index e9df51d..33348ec 100644
--- a/src/lib/test_anastasis_api.c
+++ b/src/lib/test_anastasis_api.c
@@ -279,7 +279,7 @@ run (void *cls,
     ANASTASIS_TESTING_cmd_policy_store ("policy-store-1",
                                         anastasis_url,
                                         NULL,
-                                        MHD_HTTP_OK,
+                                        MHD_HTTP_PAYMENT_REQUIRED,
                                         ANASTASIS_TESTING_PSO_NONE,
                                         "Test-1",
                                         strlen ("Test-1")),
@@ -302,12 +302,17 @@ run (void *cls,
 
     ANASTASIS_TESTING_cmd_policy_store ("policy-store-2",
                                         anastasis_url,
-                                        "backup-upload-1",
+                                        "policy-store-1",
                                         MHD_HTTP_OK,
                                         ANASTASIS_TESTING_PSO_NONE,
                                         "Test-2",
                                         strlen ("Test-2")),
 
+    ANASTASIS_TESTING_cmd_policy_lookup ("policy-lookup-1",
+                                         anastasis_url,
+                                         MHD_HTTP_OK,
+                                         "policy-store-2"),
+
     TALER_TESTING_cmd_end ()
   };
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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