Rpcserver: Add GetAllPermissions function for retrieving permissions for external macaroon baking

This commit is contained in:
Turtle committed 2021-10-01 16:51:16 -05:00
1 parent 57fc32fe6a
commit 218fa1e43e
2 files changed
+50

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package lnd
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetAllPermissions(t *testing.T) {
perms := GetAllPermissions()
// Currently there are there are 16 entity:action pairs in use.
assert.Equal(t, len(perms), 16)
}