Skip to content

Commit

Permalink
e2e test for rollback/reset
Browse files Browse the repository at this point in the history
FAB-15683 #done

Change-Id: I60f683023746e210521ce90f96a42ac2b107b876
Signed-off-by: senthil <[email protected]>
  • Loading branch information
cendhu committed Jul 11, 2019
1 parent 04a8b72 commit 9aa045a
Show file tree
Hide file tree
Showing 6 changed files with 575 additions and 6 deletions.
47 changes: 47 additions & 0 deletions integration/ledger/ledger_suite_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
Copyright IBM Corp All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/

package e2e

import (
"encoding/json"

"github.com/hyperledger/fabric/integration/nwo"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"testing"
)

func TestEndToEnd(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Ledger Suite")
}

var components *nwo.Components
var suiteBase = 38000

var _ = SynchronizedBeforeSuite(func() []byte {
components = &nwo.Components{}
components.Build()

payload, err := json.Marshal(components)
Expect(err).NotTo(HaveOccurred())

return payload
}, func(payload []byte) {
err := json.Unmarshal(payload, &components)
Expect(err).NotTo(HaveOccurred())
})

var _ = SynchronizedAfterSuite(func() {
}, func() {
components.Cleanup()
})

func StartPort() int {
return suiteBase + (GinkgoParallelNode()-1)*100
}
Loading

0 comments on commit 9aa045a

Please sign in to comment.