Skip to content

Commit

Permalink
[FABG-988] Rename cauthdsl to policydsl (#101)
Browse files Browse the repository at this point in the history
This change renames the cauthdsl to policydsl to match with Fabric.

Signed-off-by: Troy Ronda <troy@troyronda.com>
  • Loading branch information
troyronda authored Jul 20, 2020
1 parent c39fc7e commit e11d47b
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Notice: This file has been modified for Hyperledger Fabric SDK Go usage.
Please review third_party pinning scripts and patches for more details.
*/

package cauthdsl
package policydsl

import (
"sort"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Notice: This file has been modified for Hyperledger Fabric SDK Go usage.
Please review third_party pinning scripts and patches for more details.
*/

package cauthdsl
package policydsl

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/gogo/protobuf/proto"
cb "github.com/hyperledger/fabric-protos-go/common"
pb "github.com/hyperledger/fabric-protos-go/peer"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/channelconfig"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/genesis"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/policies"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/policydsl"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/util"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/msp"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/protoutil"
Expand Down Expand Up @@ -99,7 +99,7 @@ func AddPolicies(cg *cb.ConfigGroup, policyMap map[string]*genesisconfig.Policy,
},
}
case SignaturePolicyType:
sp, err := cauthdsl.FromString(policy.Rule)
sp, err := policydsl.FromString(policy.Rule)
if err != nil {
return errors.Wrapf(err, "invalid signature policy rule '%s'", policy.Rule)
}
Expand Down Expand Up @@ -345,7 +345,7 @@ func NewConsortiumsGroup(conf map[string]*genesisconfig.Consortium) (*cb.ConfigG
consortiumsGroup := protoutil.NewConfigGroup()
// This policy is not referenced anywhere, it is only used as part of the implicit meta policy rule at the channel level, so this setting
// effectively degrades control of the ordering system channel to the ordering admins
addPolicy(consortiumsGroup, policies.SignaturePolicy(channelconfig.AdminsPolicyKey, cauthdsl.AcceptAllPolicy), ordererAdminsPolicyName)
addPolicy(consortiumsGroup, policies.SignaturePolicy(channelconfig.AdminsPolicyKey, policydsl.AcceptAllPolicy), ordererAdminsPolicyName)

for consortiumName, consortium := range conf {
var err error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/policydsl"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
mocks "github.com/hyperledger/fabric-sdk-go/pkg/fab/mocks"
common "github.com/hyperledger/fabric-protos-go/common"
Expand Down Expand Up @@ -103,7 +103,7 @@ func TestPeerGroupResolverPolicy1(t *testing.T) {

func TestPeerGroupResolverAcceptAllPolicy(t *testing.T) {

sigPolicyEnv := cauthdsl.AcceptAllPolicy
sigPolicyEnv := policydsl.AcceptAllPolicy

expected := []PeerGroup{
pg(p1), pg(p2), pg(p3), pg(p4), pg(p5), pg(p6),
Expand Down
10 changes: 5 additions & 5 deletions pkg/client/resmgmt/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/golang/protobuf/proto"

"github.com/hyperledger/fabric-protos-go/common"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/policydsl"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/context"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
sdkCtx "github.com/hyperledger/fabric-sdk-go/pkg/context"
Expand Down Expand Up @@ -63,7 +63,7 @@ func Example() {
}

// Instantiate example chaincode on channel 'mychannel'
ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
instantiateReq := InstantiateCCRequest{Name: "ExampleCC", Version: "v0", Path: "path", Policy: ccPolicy}
_, err = c.InstantiateCC("mychannel", instantiateReq, WithTargets(peer))
if err != nil {
Expand Down Expand Up @@ -172,7 +172,7 @@ func ExampleWithTargetFilter() {
fmt.Println("failed to create client")
}

ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
req := InstantiateCCRequest{Name: "ExampleCC", Version: "v0", Path: "path", Policy: ccPolicy}

resp, err := c.InstantiateCC("mychannel", req, WithTargetFilter(&urlTargetFilter{url: "http://peer1.com"}))
Expand Down Expand Up @@ -291,7 +291,7 @@ func ExampleClient_InstantiateCC() {
fmt.Println("failed to create client")
}

ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
req := InstantiateCCRequest{Name: "ExampleCC", Version: "v0", Path: "path", Policy: ccPolicy}

resp, err := c.InstantiateCC("mychannel", req)
Expand All @@ -315,7 +315,7 @@ func ExampleClient_UpgradeCC() {
fmt.Println("failed to create client")
}

ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
req := UpgradeCCRequest{Name: "ExampleCC", Version: "v1", Path: "path", Policy: ccPolicy}

resp, err := c.UpgradeCC("mychannel", req, WithTargets(mockPeer()))
Expand Down
14 changes: 7 additions & 7 deletions pkg/client/resmgmt/resmgmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric-protos-go/common"
pb "github.com/hyperledger/fabric-protos-go/peer"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/policydsl"
"github.com/hyperledger/fabric-sdk-go/pkg/common/errors/status"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/context"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core"
Expand Down Expand Up @@ -815,7 +815,7 @@ func TestInstantiateCCWithDifferentMSP(t *testing.T) {
rc := setupResMgmtClient(t, ctx)

// Valid request
ccPolicy := cauthdsl.SignedByMspMember("otherMSP")
ccPolicy := policydsl.SignedByMspMember("otherMSP")
req := InstantiateCCRequest{Name: "name", Version: "version", Path: "path", Policy: ccPolicy}

// Test filter only provided (filter rejects discovery service peer msp)
Expand All @@ -836,7 +836,7 @@ func TestInstantiateCCWithOpts(t *testing.T) {
rc := setupDefaultResMgmtClient(t)

// Valid request
ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
req := InstantiateCCRequest{Name: "name", Version: "version", Path: "path", Policy: ccPolicy}

// Setup targets
Expand Down Expand Up @@ -908,7 +908,7 @@ func TestUpgradeCCWithDifferentMSP(t *testing.T) {
rc := setupResMgmtClient(t, ctx)

// Valid request
ccPolicy := cauthdsl.SignedByMspMember("otherMSP")
ccPolicy := policydsl.SignedByMspMember("otherMSP")
req := UpgradeCCRequest{Name: "name", Version: "version", Path: "path", Policy: ccPolicy}

// Test filter only provided (filter rejects discovery service peer msp)
Expand All @@ -929,7 +929,7 @@ func TestUpgradeCCWithOpts(t *testing.T) {
rc := setupDefaultResMgmtClient(t)

// Valid request
ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
req := UpgradeCCRequest{Name: "name", Version: "version", Path: "path", Policy: ccPolicy}

// Setup targets
Expand Down Expand Up @@ -966,7 +966,7 @@ func TestCCProposal(t *testing.T) {

rc := setupResMgmtClient(t, ctx)

ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
instantiateReq := InstantiateCCRequest{Name: "name", Version: "version", Path: "path", Policy: ccPolicy}

// Test invalid function (only 'instatiate' and 'upgrade' are supported)
Expand Down Expand Up @@ -1614,7 +1614,7 @@ func TestGetConfigSignaturesFromIdentities(t *testing.T) {

func TestCheckRequiredCCProposalParams(t *testing.T) {
// Valid request
ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
req := InstantiateCCRequest{Name: "name", Version: "version", Path: "path", Policy: ccPolicy}

// Test empty channel lang
Expand Down
5 changes: 3 additions & 2 deletions scripts/third_party_pins/fabric/apply_fabric_common_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ cp -R ${TMP_PROJECT_PATH} ${PATCH_PROJECT_PATH}
declare TMP_PROJECT_PATH=${PATCH_PROJECT_PATH}

declare -a FILES=(
"common/cauthdsl/cauthdsl_builder.go"
"common/cauthdsl/policyparser.go"
#renamed in Fabric v2 stream
#"common/policydsl/policydsl_builder.go"
#"common/policydsl/policyparser.go"
"core/common/ccprovider/ccprovider.go"
"core/common/ccprovider/cdspackage.go"
"core/ledger/kvledger/txmgmt/rwsetutil/rwset_proto_util.go"
Expand Down
14 changes: 7 additions & 7 deletions test/integration/base_test_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk"
"github.com/hyperledger/fabric-sdk-go/pkg/util/test"
"github.com/hyperledger/fabric-sdk-go/test/metadata"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -307,7 +307,7 @@ func InstallChaincode(resMgmt *resmgmt.Client, ccPkg *resource.CCPackage, ccPath

// InstantiateChaincode instantiates the given chaincode to the given channel
func InstantiateChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ccPolicyStr string, args [][]byte, collConfigs ...*pb.CollectionConfig) (resmgmt.InstantiateCCResponse, error) {
ccPolicy, err := cauthdsl.FromString(ccPolicyStr)
ccPolicy, err := policydsl.FromString(ccPolicyStr)
if err != nil {
return resmgmt.InstantiateCCResponse{}, errors.Wrapf(err, "error creating CC policy [%s]", ccPolicyStr)
}
Expand All @@ -328,7 +328,7 @@ func InstantiateChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, cc

// InstantiateJavaChaincode instantiates the given java chaincode to the given channel
func InstantiateJavaChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ccPolicyStr string, args [][]byte, collConfigs ...*pb.CollectionConfig) (resmgmt.InstantiateCCResponse, error) {
ccPolicy, err := cauthdsl.FromString(ccPolicyStr)
ccPolicy, err := policydsl.FromString(ccPolicyStr)
if err != nil {
return resmgmt.InstantiateCCResponse{}, errors.Wrapf(err, "error creating CC policy [%s]", ccPolicyStr)
}
Expand All @@ -350,7 +350,7 @@ func InstantiateJavaChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath

// InstantiateNodeChaincode instantiates the given node chaincode to the given channel
func InstantiateNodeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ccPolicyStr string, args [][]byte, collConfigs ...*pb.CollectionConfig) (resmgmt.InstantiateCCResponse, error) {
ccPolicy, err := cauthdsl.FromString(ccPolicyStr)
ccPolicy, err := policydsl.FromString(ccPolicyStr)
if err != nil {
return resmgmt.InstantiateCCResponse{}, errors.Wrapf(err, "error creating CC policy [%s]", ccPolicyStr)
}
Expand All @@ -372,7 +372,7 @@ func InstantiateNodeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath

// UpgradeChaincode upgrades the given chaincode on the given channel
func UpgradeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ccPolicyStr string, args [][]byte, collConfigs ...*pb.CollectionConfig) (resmgmt.UpgradeCCResponse, error) {
ccPolicy, err := cauthdsl.FromString(ccPolicyStr)
ccPolicy, err := policydsl.FromString(ccPolicyStr)
if err != nil {
return resmgmt.UpgradeCCResponse{}, errors.Wrapf(err, "error creating CC policy [%s]", ccPolicyStr)
}
Expand All @@ -393,7 +393,7 @@ func UpgradeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVers

// UpgradeJavaChaincode upgrades the given java chaincode on the given channel
func UpgradeJavaChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ccPolicyStr string, args [][]byte, collConfigs ...*pb.CollectionConfig) (resmgmt.UpgradeCCResponse, error) {
ccPolicy, err := cauthdsl.FromString(ccPolicyStr)
ccPolicy, err := policydsl.FromString(ccPolicyStr)
if err != nil {
return resmgmt.UpgradeCCResponse{}, errors.Wrapf(err, "error creating CC policy [%s]", ccPolicyStr)
}
Expand All @@ -415,7 +415,7 @@ func UpgradeJavaChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, cc

// UpgradeNodeChaincode upgrades the given node chaincode on the given channel
func UpgradeNodeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ccPolicyStr string, args [][]byte, collConfigs ...*pb.CollectionConfig) (resmgmt.UpgradeCCResponse, error) {
ccPolicy, err := cauthdsl.FromString(ccPolicyStr)
ccPolicy, err := policydsl.FromString(ccPolicyStr)
if err != nil {
return resmgmt.UpgradeCCResponse{}, errors.Wrapf(err, "error creating CC policy [%s]", ccPolicyStr)
}
Expand Down
4 changes: 2 additions & 2 deletions test/integration/e2e/end_to_end.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/hyperledger/fabric-sdk-go/test/integration"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"

"github.com/hyperledger/fabric-sdk-go/pkg/client/channel"
"github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt"
Expand Down Expand Up @@ -200,7 +200,7 @@ func createCC(t *testing.T, orgResMgmt *resmgmt.Client) {
t.Fatal(err)
}
// Set up chaincode policy
ccPolicy := cauthdsl.SignedByAnyMember([]string{"Org1MSP"})
ccPolicy := policydsl.SignedByAnyMember([]string{"Org1MSP"})
// Org resource manager will instantiate 'example_cc' on channel
resp, err := orgResMgmt.InstantiateCC(
channelID,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/e2e/orgs/multiple_orgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/pkg/client/channel"
mspclient "github.com/hyperledger/fabric-sdk-go/pkg/client/msp"
"github.com/hyperledger/fabric-sdk-go/pkg/fab/resource"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"
)

const (
Expand Down Expand Up @@ -387,7 +387,7 @@ func upgradeCC(t *testing.T, mc *multiorgContext, ccPkg *resource.CCPackage, ccN
require.Truef(t, installed, "Expecting chaincode [%s:%s] to be installed on all peers in Org2")

// New chaincode policy (both orgs have to approve)
org1Andorg2Policy, err := cauthdsl.FromString("AND ('Org1MSP.member','Org2MSP.member')")
org1Andorg2Policy, err := policydsl.FromString("AND ('Org1MSP.member','Org2MSP.member')")
require.Nil(t, err, "error should be nil for getting cc policy with both orgs to approve")

// Org1 resource manager will instantiate 'example_cc' version 1 on 'orgchannel'
Expand Down
4 changes: 2 additions & 2 deletions test/integration/negative/revoked/revoked_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/pkg/fab/resource"
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk"
"github.com/hyperledger/fabric-sdk-go/test/integration"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"
)

const (
Expand Down Expand Up @@ -489,7 +489,7 @@ func createCC(t *testing.T, sdk1 *fabsdk.FabricSDK, name, path, version string,
t.Fatal(err)
}
// Set up chaincode policy to 'two-of-two msps'
ccPolicy, err := cauthdsl.FromString("AND ('Org1MSP.member','Org2MSP.member')")
ccPolicy, err := policydsl.FromString("AND ('Org1MSP.member','Org2MSP.member')")
require.NoErrorf(t, err, "Error creating cc policy with both orgs to approve")
// Org1 resource manager will instantiate 'example_cc' on 'orgchannel'
resp, err := org1ResMgmt.InstantiateCC(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

"github.com/hyperledger/fabric-sdk-go/pkg/client/channel"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"

"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk"
"github.com/hyperledger/fabric-sdk-go/test/integration"
Expand Down Expand Up @@ -346,7 +346,7 @@ func TestChannelClientRollsBackPvtDataIfMvccReadConflict(t *testing.T) {
}

func newCollectionConfig(colName, policy string, reqPeerCount, maxPeerCount int32, blockToLive uint64) (*pb.CollectionConfig, error) {
p, err := cauthdsl.FromString(policy)
p, err := policydsl.FromString(policy)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/factory/defsvc"
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk/provider/chpvdr"
"github.com/hyperledger/fabric-sdk-go/test/integration"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"
grpcCodes "google.golang.org/grpc/codes"
)

Expand Down Expand Up @@ -346,7 +346,7 @@ func expecting(groups ...[]string) [][]string {
}

func newCollectionConfig(colName, policy string, reqPeerCount, maxPeerCount int32, blockToLive uint64) (*pb.CollectionConfig, error) {
p, err := cauthdsl.FromString(policy)
p, err := policydsl.FromString(policy)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt"
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk"
"github.com/hyperledger/fabric-sdk-go/test/integration"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -84,7 +84,7 @@ func checkStaticCollectionConfig(t *testing.T, collConf *pb.StaticCollectionConf
}

func newCollectionConfig(colName, policy string, reqPeerCount, maxPeerCount int32, blockToLive uint64) (*pb.CollectionConfig, error) {
p, err := cauthdsl.FromString(policy)
p, err := policydsl.FromString(policy)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions test/performance/pkg/client/channel/chclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/pkg/util/pathvar"
"github.com/stretchr/testify/require"

"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/cauthdsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/common/policydsl"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/core/common/ccprovider"
pb "github.com/hyperledger/fabric-protos-go/peer"
)
Expand Down Expand Up @@ -205,7 +205,7 @@ func getConfigBlockPayload() []byte {
}

func getCCDataPayload() []byte {
ccPolicy := cauthdsl.SignedByMspMember("Org1MSP")
ccPolicy := policydsl.SignedByMspMember("Org1MSP")
pp, err := proto.Marshal(ccPolicy)
if err != nil {
panic(fmt.Sprintf("failed to build mock CC Policy: %s", err))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Notice: This file has been modified for Hyperledger Fabric SDK Go usage.
Please review third_party pinning scripts and patches for more details.
*/

package cauthdsl
package policydsl

import (
"sort"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Notice: This file has been modified for Hyperledger Fabric SDK Go usage.
Please review third_party pinning scripts and patches for more details.
*/

package cauthdsl
package policydsl

import (
"fmt"
Expand Down

0 comments on commit e11d47b

Please sign in to comment.