Merge pull request #1594 from filecoin-project/fix/api-tags
apistruct: Check tags in tests
This commit is contained in:
commit
15e07b38b6
@ -175,7 +175,7 @@ type StorageMinerStruct struct {
|
|||||||
ActorAddress func(context.Context) (address.Address, error) `perm:"read"`
|
ActorAddress func(context.Context) (address.Address, error) `perm:"read"`
|
||||||
ActorSectorSize func(context.Context, address.Address) (abi.SectorSize, error) `perm:"read"`
|
ActorSectorSize func(context.Context, address.Address) (abi.SectorSize, error) `perm:"read"`
|
||||||
|
|
||||||
MiningBase func(context.Context) (*types.TipSet, error)
|
MiningBase func(context.Context) (*types.TipSet, error) `perm:"read"`
|
||||||
|
|
||||||
MarketImportDealData func(context.Context, cid.Cid, string) error `perm:"write"`
|
MarketImportDealData func(context.Context, cid.Cid, string) error `perm:"write"`
|
||||||
MarketListDeals func(ctx context.Context) ([]storagemarket.StorageDeal, error) `perm:"read"`
|
MarketListDeals func(ctx context.Context) ([]storagemarket.StorageDeal, error) `perm:"read"`
|
||||||
|
9
api/apistruct/struct_test.go
Normal file
9
api/apistruct/struct_test.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package apistruct
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
func TestPermTags(t *testing.T) {
|
||||||
|
_ = PermissionedFullAPI(&FullNodeStruct{})
|
||||||
|
_ = PermissionedStorMinerAPI(&StorageMinerStruct{})
|
||||||
|
_ = PermissionedWorkerAPI(&WorkerStruct{})
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user