@@ -36,6 +36,30 @@ def step_impl(context, networkType):
36
36
def compose_impl (context , dockerFile ):
37
37
pass
38
38
39
+ @given (u'an orderer connected to the kafka cluster' )
40
+ def step_impl (context ):
41
+ pass
42
+
43
+ @given (u'the orderer Batchsize MaxMessageCount is {maxMsgCount}' )
44
+ def step_impl (context , maxMsgCount ):
45
+ pass
46
+
47
+ @given (u'the orderer BatchTimeout is {timeout} {units}' )
48
+ def step_impl (context , timeout , units ):
49
+ pass
50
+
51
+ @given (u'a certificate from {organization} is added to the kafka orderer network' )
52
+ def step_impl (context , organization ):
53
+ pass
54
+
55
+ @given (u'the kafka default replication factor is {factor}' )
56
+ def step_impl (context , factor ):
57
+ pass
58
+
59
+ @given (u'a kafka cluster' )
60
+ def step_impl (context ):
61
+ pass
62
+
39
63
@when (u'a message is broadcasted' )
40
64
def step_impl (context ):
41
65
broadcast_impl (context , 1 )
@@ -44,12 +68,36 @@ def step_impl(context):
44
68
def broadcast_impl (context , count ):
45
69
pass
46
70
71
+ @when (u'the topic partition leader is stopped' )
72
+ def step_impl (context ):
73
+ pass
74
+
75
+ @when (u'a new organization {organization} certificate is added' )
76
+ def step_impl (context , organization ):
77
+ pass
78
+
79
+ @when (u'authorization for {organization} is removed from the kafka cluster' )
80
+ def step_impl (context , organization ):
81
+ pass
82
+
83
+ @when (u'authorization for {organization} is added to the kafka cluster' )
84
+ def step_impl (context , organization ):
85
+ pass
86
+
87
+ @then (u'the broadcasted message is delivered' )
88
+ def step_impl (context ):
89
+ verify_deliver_impl (context , 1 , 1 )
90
+
91
+ @then (u'all {count} messages are delivered in {numBlocks} block' )
92
+ def step_impl (context , count , numBlocks ):
93
+ verify_deliver_impl (context , count , numBlocks )
94
+
47
95
@then (u'all {count} messages are delivered within {timeout} seconds' )
48
96
def step_impl (context , count , timeout ):
49
- pass
97
+ verify_deliver_impl ( context , count , None , timeout )
50
98
51
99
@then (u'all {count} messages are delivered in {numBlocks} within {timeout} seconds' )
52
- def step_impl (context , count , numBlocks , timeout ):
100
+ def verify_deliver_impl (context , count , numBlocks , timeout = 60 ):
53
101
pass
54
102
55
103
@then (u'we get a successful broadcast response' )
@@ -60,11 +108,23 @@ def step_impl(context):
60
108
def recv_broadcast_impl (context , count ):
61
109
pass
62
110
63
- @then (u'the broadcasted message is delivered' )
111
+ @then (u'the {organization} cannot connect to the kafka cluster' )
112
+ def step_impl (context , organization ):
113
+ pass
114
+
115
+ @then (u'the {organization} is able to connect to the kafka cluster' )
116
+ def step_impl (context , organization ):
117
+ pass
118
+
119
+ @then (u'the zookeeper notifies the orderer of the disconnect' )
64
120
def step_impl (context ):
65
- verify_deliver_impl ( context , 1 , 1 )
121
+ pass
66
122
67
- @then (u'all {count} messages are delivered in {numBlocks} block' )
68
- def verify_deliver_impl (context , count , numBlocks ):
123
+ @then (u'the orderer functions successfully' )
124
+ def step_impl (context ):
125
+ # Check the logs for certain key info - be sure there are no errors in the logs
69
126
pass
70
127
128
+ @then (u'the orderer stops sending messages to the cluster' )
129
+ def step_impl (context ):
130
+ pass
0 commit comments