mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 02:21:08 +02:00
Rpcserver: Add GetAllPermissions function for retrieving permissions for external macaroon baking
This commit is contained in:
14
rpcserver_test.go
Normal file
14
rpcserver_test.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user