Add event sending to publishservice
[nonrtric/plt/sme.git] / capifcore / main_test.go
index 12092c1..f3a5f15 100644 (file)
@@ -85,6 +85,14 @@ func Test_routing(t *testing.T) {
                                method:       "DELETE",
                        },
                },
+               {
+                       name: "Event path",
+                       args: args{
+                               url:          "/capif-events/v1/subscriberId/subscriptions/subId",
+                               returnStatus: http.StatusNoContent,
+                               method:       "DELETE",
+                       },
+               },
                {
                        name: "Security path",
                        args: args{
@@ -140,6 +148,13 @@ func TestGetSwagger(t *testing.T) {
                                apiName: "Invoker",
                        },
                },
+               {
+                       name: "Events api",
+                       args: args{
+                               apiPath: "events",
+                               apiName: "Events",
+                       },
+               },
                {
                        name: "Discover api",
                        args: args{