Skip to content

Commit 0509bed

Browse files
committed
FAB-3880 rename sys testnames and descripts
Fixed one failing sample test, and corrected more testcase descriptions to match testplan. Otherwise, No functional changes, but per our modified test plans: + rename many testnames to refer to the new FAB numbers associated with each testcase, and + modify test descriptions. Change-Id: I148916bead8cdaf98cc870629b1b192301f78953 Signed-off-by: Scott Zwierzynski <[email protected]>
1 parent 8f6a632 commit 0509bed

File tree

3 files changed

+133
-152
lines changed

3 files changed

+133
-152
lines changed

test/regression/daily/test_example.py

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def test_skipped(self):
1818
'''
1919
self.fail("I should not see this")
2020

21+
# This runs on ubuntu x86 laptop, but it fails when run by CI, because
22+
# "bc" is not installed on the servers used for CI jobs.
23+
@unittest.skip("skipping")
2124
def test_SampleAdditionTestWillPass(self):
2225
'''
2326
This test will pass.

test/regression/daily/test_pte.py

+54-135
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616

1717
class LevelDB_Perf_Stress(unittest.TestCase):
1818
@unittest.skip("skipping")
19-
def test_FAB3584_SkeletonQueries(self):
19+
def test_FAB3808_TPS_Queries_1_Thread_TinyNtwk(self):
2020
'''
21-
FAB-2032,FAB-3584
22-
Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC
23-
Launch skeleton network, use PTE in STRESS mode to continuously
21+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
22+
Launch tiny network, use PTE in STRESS mode to continuously
2423
send 10000 query transactions concurrently to 1 peer in both orgs,
2524
calculate tps, and remove network and cleanup
2625
'''
@@ -30,11 +29,10 @@ def test_FAB3584_SkeletonQueries(self):
3029
self.assertIn(TEST_PASS_STRING, result)
3130

3231
@unittest.skip("skipping")
33-
def test_FAB3586_SkeletonInvokes(self):
32+
def test_FAB3811_TPS_Invokes_1_Thread_TinyNtwk(self):
3433
'''
35-
FAB-2032,FAB-3586
36-
Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC
37-
Launch skeleton network, use PTE in STRESS mode to continuously
34+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
35+
Launch tiny network, use PTE in STRESS mode to continuously
3836
send 10000 query transactions concurrently to 1 peer in both orgs,
3937
query the ledger to ensure the last transaction was written,
4038
calculate tps, remove network and cleanup
@@ -43,52 +41,25 @@ def test_FAB3586_SkeletonInvokes(self):
4341
self.assertIn(TEST_PASS_STRING, result)
4442

4543
@unittest.skip("skipping")
46-
def test_FAB3593_Standard_basic_TLS(self):
44+
def test_FAB3833_TPS_Queries_8_Thread_TinyNtwk(self):
4745
'''
48-
FAB-2032,FAB-3593
49-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
50-
Launch network, use PTE stress mode to send 100 invoke transactions
51-
concurrently to all peers on all channels on all chaincodes,
52-
query the ledger for each to ensure the last transaction was written,
53-
calculate tps, remove network and cleanup
54-
'''
55-
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
56-
self.assertIn(TEST_PASS_STRING, result)
57-
58-
@unittest.skip("skipping")
59-
def test_FAB3595_Standard_basic_1M(self):
60-
'''
61-
FAB-2032,FAB-3595
62-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
63-
Launch network, use PTE stress mode to send 100 invoke transactions
64-
concurrently to all peers on all channels on all chaincodes,
65-
query the ledger for each to ensure the last transaction was written,
66-
calculate tps, remove network and cleanup
67-
'''
68-
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
69-
self.assertIn(TEST_PASS_STRING, result)
70-
71-
@unittest.skip("skipping")
72-
def test_FAB3597_Standard_basic_Gossip(self):
73-
'''
74-
FAB-2032,FAB-3597
75-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
76-
Launch network, use PTE stress mode to send 100 invoke transactions
77-
concurrently to all peers on all channels on all chaincodes,
78-
query the ledger for each to ensure the last transaction was written,
79-
calculate tps, remove network and cleanup
46+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
47+
Launch tiny network, use PTE in STRESS mode to continuously
48+
send 10000 query transactions concurrently to 1 peer in both orgs,
49+
calculate tps, and remove network and cleanup
8050
'''
51+
# Replace TestPlaceholder.sh with actual test name, something like:
52+
# ../../tools/PTE/tests/runSkeletonQueriesLevel.sh
8153
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
8254
self.assertIn(TEST_PASS_STRING, result)
8355

8456
@unittest.skip("skipping")
85-
def test_FAB3599_Standard_12Hr(self):
57+
def test_FAB3835_TPS_Invokes_8_Thread_TinyNtwk(self):
8658
'''
87-
FAB-2032,FAB-3599
88-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
89-
Launch network, use PTE stress mode to send invoke transactions
90-
concurrently to all peers on all channels on all chaincodes,
91-
query the ledger for each to ensure the last transaction was written,
59+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
60+
Launch tiny network, use PTE in STRESS mode to continuously
61+
send 10000 query transactions concurrently to 1 peer in both orgs,
62+
query the ledger to ensure the last transaction was written,
9263
calculate tps, remove network and cleanup
9364
'''
9465
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
@@ -101,11 +72,10 @@ def test_FAB3599_Standard_12Hr(self):
10172

10273
class CouchDB_Perf_Stress(unittest.TestCase):
10374
@unittest.skip("skipping")
104-
def test_FAB3585_SkeletonQueries(self):
75+
def test_FAB3807_TPS_Queries_1_Thread_TinyNtwk(self):
10576
'''
106-
FAB-2032,FAB-3585
107-
Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC
108-
Launch skeleton network, use PTE in STRESS mode to continuously
77+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
78+
Launch tiny network, use PTE in STRESS mode to continuously
10979
send 10000 query transactions concurrently to 1 peer in both orgs,
11080
calculate tps, and remove network and cleanup
11181
'''
@@ -115,11 +85,10 @@ def test_FAB3585_SkeletonQueries(self):
11585
self.assertIn(TEST_PASS_STRING, result)
11686

11787
@unittest.skip("skipping")
118-
def test_FAB3587_SkeletonInvokes(self):
88+
def test_FAB3810_TPS_Invokes_1_Thread_TinyNtwk(self):
11989
'''
120-
FAB-2032,FAB-3587
121-
Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC
122-
Launch skeleton network, use PTE in STRESS mode to continuously
90+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
91+
Launch tiny network, use PTE in STRESS mode to continuously
12392
send 10000 query transactions concurrently to 1 peer in both orgs,
12493
query the ledger to ensure the last transaction was written,
12594
calculate tps, remove network and cleanup
@@ -128,116 +97,66 @@ def test_FAB3587_SkeletonInvokes(self):
12897
self.assertIn(TEST_PASS_STRING, result)
12998

13099
@unittest.skip("skipping")
131-
def test_FAB3588_Scaleup1(self):
132-
'''
133-
FAB-2032,FAB-3588
134-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 20 Chan, 2 CC
135-
Launch network, use PTE stress mode to send 100 invoke transactions
136-
concurrently to all peers on all channels on all chaincodes,
137-
query the ledger for each to ensure the last transaction was written,
138-
calculate tps, remove network and cleanup
139-
'''
140-
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
141-
self.assertIn(TEST_PASS_STRING, result)
142-
143-
@unittest.skip("skipping")
144-
def test_FAB3589_Scaleup2(self):
100+
def test_FAB3832_TPS_Queries_8_Thread_TinyNtwk(self):
145101
'''
146-
FAB-2032,FAB-3589
147-
Network: 2 Ord, 5 KB, 3 ZK, 4 Org, 8 Peers, 40 Chan, 4 CC
148-
Launch network, use PTE stress mode to send 100 invoke transactions
149-
concurrently to all peers on all channels on all chaincodes,
150-
query the ledger for each to ensure the last transaction was written,
151-
calculate tps, remove network and cleanup
152-
'''
153-
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
154-
self.assertIn(TEST_PASS_STRING, result)
155-
156-
@unittest.skip("skipping")
157-
def test_FAB3590_Scaleup3(self):
158-
'''
159-
FAB-2032,FAB-3590
160-
Network: 2 Ord, 5 KB, 3 ZK, 8 Org, 16 Peers, 80 Chan, 8 CC
161-
Launch network, use PTE stress mode to send 100 invoke transactions
162-
concurrently to all peers on all channels on all chaincodes,
163-
query the ledger for each to ensure the last transaction was written,
164-
calculate tps, remove network and cleanup
165-
'''
166-
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
167-
self.assertIn(TEST_PASS_STRING, result)
168-
169-
@unittest.skip("skipping")
170-
def test_FAB3591_Scaleup4(self):
171-
'''
172-
FAB-2032,FAB-3591
173-
Network: 4 Ord, 5 KB, 3 ZK, 16 Org, 32 Peers, 160 Chan, 16 CC
174-
Launch network, use PTE stress mode to send 100 invoke transactions
175-
concurrently to all peers on all channels on all chaincodes,
176-
query the ledger for each to ensure the last transaction was written,
177-
calculate tps, remove network and cleanup
178-
'''
179-
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
180-
self.assertIn(TEST_PASS_STRING, result)
181-
182-
@unittest.skip("skipping")
183-
def test_FAB3592_Scaleup5(self):
184-
'''
185-
FAB-2032,FAB-3592
186-
Network: 4 Ord, 5 KB, 3 ZK, 32 Org, 64 Peers, 320 Chan, 32 CC
187-
Launch network, use PTE stress mode to send 100 invoke transactions
188-
concurrently to all peers on all channels on all chaincodes,
189-
query the ledger for each to ensure the last transaction was written,
190-
calculate tps, remove network and cleanup
102+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
103+
Launch tiny network, use PTE in STRESS mode to continuously
104+
send 10000 query transactions concurrently to 1 peer in both orgs,
105+
calculate tps, and remove network and cleanup
191106
'''
107+
# Replace TestPlaceholder.sh with actual test name, something like:
108+
# ../../tools/PTE/tests/runSkeletonQueriesCouch.sh
192109
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
193110
self.assertIn(TEST_PASS_STRING, result)
194111

195112
@unittest.skip("skipping")
196-
def test_FAB3594_Standard_basic_TLS(self):
113+
def test_FAB3834_TPS_Invokes_8_Thread_TinyNtwk(self):
197114
'''
198-
FAB-2032,FAB-3594
199-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
200-
Launch network, use PTE stress mode to send 100 invoke transactions
201-
concurrently to all peers on all channels on all chaincodes,
202-
query the ledger for each to ensure the last transaction was written,
115+
Tiny Network: 1 Ord, 1 KB, 1 ZK, 2 Org, 2 Peers, 1 Chan, 1 CC, 2 thrds
116+
Launch tiny network, use PTE in STRESS mode to continuously
117+
send 10000 query transactions concurrently to 1 peer in both orgs,
118+
query the ledger to ensure the last transaction was written,
203119
calculate tps, remove network and cleanup
204120
'''
205121
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
206122
self.assertIn(TEST_PASS_STRING, result)
207123

208124
@unittest.skip("skipping")
209-
def test_FAB3596_Standard_basic_1M(self):
125+
def test_FAB3813_Baseline_StandardNtwk_8_Thread(self):
210126
'''
211-
FAB-2032,FAB-3596
212-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
213-
Launch network, use PTE stress mode to send 100 invoke transactions
214-
concurrently to all peers on all channels on all chaincodes,
127+
"Standard Network": 2 Orderers, 3 KafkaBrokers, 3 ZooKeepers,
128+
2 Certificate Authorities (CAs - 1 per Org), 2 Organizations,
129+
2 Peers per Org, 4 Peers, 2 Channels, 2 ChainCodes, 8 total threads.
130+
Launch network, use PTE stress mode to send 10000 invoke transactions
131+
concurrently to a peer in each org on all channels on all chaincodes,
215132
query the ledger for each to ensure the last transaction was written,
216133
calculate tps, remove network and cleanup
217134
'''
218135
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
219136
self.assertIn(TEST_PASS_STRING, result)
220137

221138
@unittest.skip("skipping")
222-
def test_FAB3598_Standard_basic_Gossip(self):
139+
def test_FAB3814_Payload_1Meg(self):
223140
'''
224-
FAB-2032,FAB-3598
225-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
226-
Launch network, use PTE stress mode to send 100 invoke transactions
227-
concurrently to all peers on all channels on all chaincodes,
141+
Standard Network: 2 Orderers, 3 KafkaBrokers, 3 ZooKeepers,
142+
2 Certificate Authorities (CAs - 1 per Org), 2 Organizations,
143+
2 Peers per Org, 4 Peers, 2 Channels, 2 ChainCodes, 8 total threads.
144+
Launch network, use PTE stress mode to send 10000 invoke transactions
145+
concurrently to a peer in each org on all channels on all chaincodes,
228146
query the ledger for each to ensure the last transaction was written,
229147
calculate tps, remove network and cleanup
230148
'''
231149
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
232150
self.assertIn(TEST_PASS_STRING, result)
233151

234152
@unittest.skip("skipping")
235-
def test_FAB3600_Standard_12Hr(self):
153+
def test_FAB3816_GossipStress_10_PeersPerOrg(self):
236154
'''
237-
FAB-2032,FAB-3600
238-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
239-
Launch network, use PTE stress mode to send invoke transactions
240-
concurrently to all peers on all channels on all chaincodes,
155+
Standard Network plus extra peers: 2 Orderers, 3 KafkaBrokers, 3 ZKs,
156+
2 Certificate Authorities (CAs - 1 per Org), 2 Organizations,
157+
10 Peers per Org, 4 Peers, 2 Channels, 2 ChainCodes, 8 total threads.
158+
Launch network, use PTE stress mode to send 10000 invoke transactions
159+
concurrently to a peer in each org on all channels on all chaincodes,
241160
query the ledger for each to ensure the last transaction was written,
242161
calculate tps, remove network and cleanup
243162
'''

test/regression/weekly/test_pte.py

+76-17
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,98 @@
1111

1212

1313
######################################################################
14-
### LEVELDB
14+
### COUCHDB
1515
######################################################################
1616

17-
class LevelDB_Perf_Stress(unittest.TestCase):
17+
class CouchDB_Perf_Stress(unittest.TestCase):
18+
1819
@unittest.skip("skipping")
19-
def test_FAB3601_Standard_72Hr(self):
20+
def test_FAB3820_TimedRun_12Hr(self):
2021
'''
21-
FAB-2032,FAB-3601
22-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
22+
Standard Network: 2 Orderers, 3 KafkaBrokers, 3 ZooKeepers,
23+
2 Certificate Authorities (CAs - 1 per Org), 2 Organizations,
24+
2 Peers per Org, 4 Peers, 2 Channels, 2 ChainCodes, 8 total threads.
2325
Launch network, use PTE stress mode to send invoke transactions
24-
concurrently to all peers on all channels on all chaincodes,
26+
with 1K Payload concurrently to one peer in each organization
27+
on all channels on all chaincodes, for the specified duration.
28+
Query the ledger for each to ensure the last transaction was written,
29+
calculate tps, remove network and cleanup.
30+
'''
31+
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
32+
self.assertIn(TEST_PASS_STRING, result)
33+
34+
@unittest.skip("skipping")
35+
def test_FAB3821_TimedRun_72Hr(self):
36+
'''
37+
Standard Network: 2 Orderers, 3 KafkaBrokers, 3 ZooKeepers,
38+
2 Certificate Authorities (CAs - 1 per Org), 2 Organizations,
39+
2 Peers per Org, 4 Peers, 2 Channels, 2 ChainCodes, 8 total threads.
40+
Launch network, use PTE stress mode to send invoke transactions
41+
with 1K Payload concurrently to one peer in each organization
42+
on all channels on all chaincodes, for the specified duration.
43+
Query the ledger for each to ensure the last transaction was written,
44+
calculate tps, remove network and cleanup.
45+
'''
46+
result = subprocess.check_output("../daily/TestPlaceholder.sh", shell=True)
47+
self.assertIn(TEST_PASS_STRING, result)
48+
49+
@unittest.skip("skipping")
50+
def test_FAB3822_Scaleup1(self):
51+
'''
52+
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 2 PeersPerOrg, 2 Chan, 1 CC, 4 thrds
53+
Launch network, use PTE stress mode to send 10000 invoke transactions
54+
concurrently to a peer in each org on all channels on all chaincodes,
2555
query the ledger for each to ensure the last transaction was written,
2656
calculate tps, remove network and cleanup
2757
'''
28-
result = subprocess.check_output("../daily/TestPlaceholder.sh", shell=True)
58+
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
2959
self.assertIn(TEST_PASS_STRING, result)
3060

61+
@unittest.skip("skipping")
62+
def test_FAB3823_Scaleup2(self):
63+
'''
64+
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 2 PeersPerOrg, 2 Chan, 2 CC, 8 thrds
65+
Launch network, use PTE stress mode to send 10000 invoke transactions
66+
concurrently to a peer in each org on all channels on all chaincodes,
67+
query the ledger for each to ensure the last transaction was written,
68+
calculate tps, remove network and cleanup
69+
'''
70+
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
71+
self.assertIn(TEST_PASS_STRING, result)
3172

32-
######################################################################
33-
### COUCHDB
34-
######################################################################
73+
@unittest.skip("skipping")
74+
def test_FAB3824_Scaleup3(self):
75+
'''
76+
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 PeersPerOrg, 4 Chan, 2 CC, 16 thrds
77+
Launch network, use PTE stress mode to send 10000 invoke transactions
78+
concurrently to a peer in each org on all channels on all chaincodes,
79+
query the ledger for each to ensure the last transaction was written,
80+
calculate tps, remove network and cleanup
81+
'''
82+
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
83+
self.assertIn(TEST_PASS_STRING, result)
3584

36-
class CouchDB_Perf_Stress(unittest.TestCase):
3785
@unittest.skip("skipping")
38-
def test_FAB3602_Standard_72Hr(self):
86+
def test_FAB3825_Scaleup4(self):
3987
'''
40-
FAB-2032,FAB-3602
41-
Network: 2 Ord, 5 KB, 3 ZK, 2 Org, 4 Peers, 10 Chan, 10 CC
42-
Launch network, use PTE stress mode to send invoke transactions
43-
concurrently to all peers on all channels on all chaincodes,
88+
Network: 4 Ord, 5 KB, 3 ZK, 2 Org, 4 PeersPerOrg, 8 Chan, 2 CC, 32 thrds
89+
Launch network, use PTE stress mode to send 10000 invoke transactions
90+
concurrently to a peer in each org on all channels on all chaincodes,
4491
query the ledger for each to ensure the last transaction was written,
4592
calculate tps, remove network and cleanup
4693
'''
47-
result = subprocess.check_output("../daily/TestPlaceholder.sh", shell=True)
94+
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
95+
self.assertIn(TEST_PASS_STRING, result)
96+
97+
@unittest.skip("skipping")
98+
def test_FAB3826_Scaleup5(self):
99+
'''
100+
Network: 4 Ord, 5 KB, 3 ZK, 3 Org, 4 PeersPerOrg (12 Peers), 8 Chan, 2 CC, 48 thrds
101+
Launch network, use PTE stress mode to send 10000 invoke transactions
102+
concurrently to a peer in each org on all channels on all chaincodes,
103+
query the ledger for each to ensure the last transaction was written,
104+
calculate tps, remove network and cleanup
105+
'''
106+
result = subprocess.check_output("./TestPlaceholder.sh", shell=True)
48107
self.assertIn(TEST_PASS_STRING, result)
49108

0 commit comments

Comments
 (0)