From 0ec7a9d274857a2869f39865569d6f78428cd0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 13 Jan 2023 12:54:19 +0100 Subject: [PATCH] add methods for (some) missing test cases --- scnserver/test/channel_test.go | 8 ++++- scnserver/test/client_test.go | 4 ++- scnserver/test/send_test.go | 10 +++++-- scnserver/test/subscription_test.go | 46 ++++++++++++++++++++++++++++- 4 files changed, 62 insertions(+), 6 deletions(-) diff --git a/scnserver/test/channel_test.go b/scnserver/test/channel_test.go index 9beb1f6..bfc8a9d 100644 --- a/scnserver/test/channel_test.go +++ b/scnserver/test/channel_test.go @@ -492,4 +492,10 @@ func TestChannelUpdate(t *testing.T) { } -//TODO test missing channel-xx methods +func TestListChannelMessages(t *testing.T) { + t.SkipNow() //TODO +} + +func TestListChannelSubscriptions(t *testing.T) { + t.SkipNow() //TODO +} diff --git a/scnserver/test/client_test.go b/scnserver/test/client_test.go index a3d20a4..97e1fb6 100644 --- a/scnserver/test/client_test.go +++ b/scnserver/test/client_test.go @@ -146,4 +146,6 @@ func TestReuseFCM(t *testing.T) { tt.AssertEqual(t, "clients->client_id", cid2, fmt.Sprintf("%v", r3.Clients[0]["client_id"])) } -//TODO test missing client-xx methods +func TestListClients(t *testing.T) { + t.SkipNow() //TODO +} diff --git a/scnserver/test/send_test.go b/scnserver/test/send_test.go index 861fbeb..e0f464c 100644 --- a/scnserver/test/send_test.go +++ b/scnserver/test/send_test.go @@ -1461,10 +1461,14 @@ func TestSendParallel(t *testing.T) { } } -//TODO post to foreign channel via send-key +func TestSendToForeignChannelWithSendKey(t *testing.T) { + t.SkipNow() //TODO +} + +func TestSendDeliveryRetry(t *testing.T) { + t.SkipNow() //TODO +} //TODO check message_counter + last_sent in channel //TODO check message_counter + last_sent in user - -//TODO test delivery-retry diff --git a/scnserver/test/subscription_test.go b/scnserver/test/subscription_test.go index b66c83b..d421074 100644 --- a/scnserver/test/subscription_test.go +++ b/scnserver/test/subscription_test.go @@ -1,3 +1,47 @@ package test -//TODO test missing subscription-xx methods +import "testing" + +func TestListSubscriptionsOfUser(t *testing.T) { + t.SkipNow() //TODO +} + +func TestListSubscriptionsOfChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestCreateSubscriptionToOwnChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestCreateSubscriptionToForeignChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestGetSubscriptionToOwnChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestGetSubscriptionToForeignChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestCancelSubscriptionToForeignChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestCancelSubscriptionToOwnChannel(t *testing.T) { + t.SkipNow() //TODO +} + +func TestDenySubscription(t *testing.T) { + t.SkipNow() //TODO +} + +func TestConfirmSubscription(t *testing.T) { + t.SkipNow() //TODO +} + +func TestUnconfirmSubscription(t *testing.T) { + t.SkipNow() //TODO +}