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

This commit is contained in:
Turtle
2021-09-22 14:32:02 -05:00
parent 57fc32fe6a
commit 218fa1e43e
2 changed files with 50 additions and 0 deletions

14
rpcserver_test.go Normal file
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)
}