Rpcserver: Add GetAllPermissions function for retrieving permissions for external macaroon baking
This commit is contained in:
2 files changed
+50
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user