test: format description in dynamic test
This commit is contained in:
parent
49ccadd5a2
commit
1cf3fe2a09
|
@ -29,7 +29,7 @@ import (
|
|||
"github.com/getamis/istanbul-tools/tests"
|
||||
)
|
||||
|
||||
var _ = Describe("Dynamic validators addition/removal testing", func() {
|
||||
var _ = Describe("TFS-02: Dynamic validators addition/removal testing", func() {
|
||||
const (
|
||||
numberOfValidators = 4
|
||||
)
|
||||
|
@ -47,7 +47,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
blockchain.Finalize()
|
||||
})
|
||||
|
||||
It("TFS-02-01 Add validators", func() {
|
||||
It("TFS-02-01: Add validators", func() {
|
||||
testValidators := 1
|
||||
|
||||
By("Ensure the number of validators is correct", func() {
|
||||
|
@ -81,7 +81,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("TFS-02-02 New validators consensus participation", func() {
|
||||
It("TFS-02-02: New validators consensus participation", func() {
|
||||
testValidator := 1
|
||||
|
||||
newValidators, err := blockchain.AddValidators(testValidator)
|
||||
|
@ -93,7 +93,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("TFS-02-03 Remove validators", func() {
|
||||
It("TFS-02-03: Remove validators", func() {
|
||||
numOfCandidates := 3
|
||||
|
||||
By("Ensure that numbers of validator is equal to $numberOfValidators", func() {
|
||||
|
@ -148,7 +148,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("TFS-02-04 Reduce validator network size below 2F+1", func() {
|
||||
It("TFS-02-04: Reduce validator network size below 2F+1", func() {
|
||||
By("Ensure that blocks are generated by validators", func() {
|
||||
tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) {
|
||||
Expect(geth.WaitForBlocks(5)).To(BeNil())
|
||||
|
@ -182,7 +182,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("TFS-02-05 Reduce validator network size below 2F+1", func() {
|
||||
It("TFS-02-05: Reduce validator network size below 2F+1", func() {
|
||||
By("Ensure that blocks are generated by validators", func() {
|
||||
tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) {
|
||||
Expect(geth.WaitForBlocks(5)).To(BeNil())
|
||||
|
|
|
@ -29,7 +29,7 @@ import (
|
|||
"github.com/getamis/istanbul-tools/tests"
|
||||
)
|
||||
|
||||
var _ = Describe("Dynamic validators addition/removal testing", func() {
|
||||
var _ = Describe("QFS-02: Dynamic validators addition/removal testing", func() {
|
||||
const (
|
||||
numberOfValidators = 4
|
||||
)
|
||||
|
@ -52,7 +52,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
constellationNetwork.Finalize()
|
||||
})
|
||||
|
||||
It("QFS-02-01 Add validators", func() {
|
||||
It("QFS-02-01: Add validators", func() {
|
||||
testValidators := 1
|
||||
|
||||
By("Ensure the number of validators is correct", func() {
|
||||
|
@ -86,7 +86,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("QFS-02-02 New validators consensus participation", func() {
|
||||
It("QFS-02-02: New validators consensus participation", func() {
|
||||
testValidator := 1
|
||||
|
||||
newValidators, err := blockchain.AddValidators(testValidator)
|
||||
|
@ -98,7 +98,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("QFS-02-03 Remove validators", func() {
|
||||
It("QFS-02-03: Remove validators", func() {
|
||||
numOfCandidates := 3
|
||||
|
||||
By("Ensure that numbers of validator is equal to $numberOfValidators", func() {
|
||||
|
@ -153,7 +153,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("QFS-02-04 Reduce validator network size below 2F+1", func() {
|
||||
It("QFS-02-04: Reduce validator network size below 2F+1", func() {
|
||||
By("Ensure that blocks are generated by validators", func() {
|
||||
tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) {
|
||||
Expect(geth.WaitForBlocks(5)).To(BeNil())
|
||||
|
@ -187,7 +187,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
It("QFS-02-05 Reduce validator network size below 2F+1", func() {
|
||||
It("QFS-02-05: Reduce validator network size below 2F+1", func() {
|
||||
By("Ensure that blocks are generated by validators", func() {
|
||||
tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) {
|
||||
Expect(geth.WaitForBlocks(5)).To(BeNil())
|
||||
|
|
Loading…
Reference in New Issue