mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 22:24:21 +01: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