-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two TMS on the same fabric network (#476)
Signed-off-by: Angelo De Caro <[email protected]> Signed-off-by: Alexandros Filios <[email protected]>
- Loading branch information
Showing
31 changed files
with
572 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Copyright IBM Corp All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package mixed | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
|
||
"github.com/hyperledger-labs/fabric-token-sdk/integration" | ||
) | ||
|
||
func TestEndToEnd(t *testing.T) { | ||
if testing.Short() { | ||
t.Skip("skipping test in short mode.") | ||
} | ||
|
||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "EndToEnd Fungible (DLOG) Suite") | ||
} | ||
|
||
func StartPortDlog() int { | ||
return integration.ZKATDLogFungible.StartPortForNode() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Copyright IBM Corp All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package mixed | ||
|
||
import ( | ||
"github.com/hyperledger-labs/fabric-smart-client/integration" | ||
"github.com/hyperledger-labs/fabric-token-sdk/integration/nwo/token" | ||
"github.com/hyperledger-labs/fabric-token-sdk/integration/token/fungible" | ||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
var _ = Describe("EndToEnd", func() { | ||
var ( | ||
network *integration.Infrastructure | ||
) | ||
|
||
AfterEach(func() { | ||
network.Stop() | ||
}) | ||
|
||
Describe("Fungible with Auditor ne Issuer", func() { | ||
BeforeEach(func() { | ||
var err error | ||
network, err = integration.New(StartPortDlog(), "", Topology()...) | ||
Expect(err).NotTo(HaveOccurred()) | ||
network.DeleteOnStop = false | ||
network.DeleteOnStart = true | ||
network.RegisterPlatformFactory(token.NewPlatformFactory()) | ||
network.Generate() | ||
network.Start() | ||
}) | ||
|
||
It("succeeded", func() { | ||
fungible.TestMixed(network) | ||
}) | ||
|
||
}) | ||
|
||
}) |
Oops, something went wrong.