add methods for (some) missing test cases

This commit is contained in:
Mike Schwörer 2023-01-13 12:54:19 +01:00
parent e49d9159e4
commit 0ec7a9d274
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
4 changed files with 62 additions and 6 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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

View File

@ -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
}