Skip to content

Commit f1d0f13

Browse files
committed
Add broker image, fix port numbers
1 parent c224789 commit f1d0f13

File tree

5 files changed

+21
-47
lines changed

5 files changed

+21
-47
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ jobs:
44
working_directory: ~/circulate
55
docker:
66
- image: centos:7
7+
docker:
8+
- image: ecmi/fixml:sim
79
steps:
810
- run:
911
name: Install Git
1012
command: yum install -y git
13+
- run:
14+
name: Add hosts record
15+
command: echo 127.0.0.1 ecag-fixml-dev1 | sudo tee -a /etc/hosts
1116
- checkout
1217
- run:
1318
name: Install dependencies

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

tests/test_CppBinding.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
class CppBindingTests(unittest.TestCase):
1616
def setUp(self):
1717
hostname = "ecag-fixml-dev1"
18-
port = 35671
18+
port = 5671
1919
accountName = "ABCFR_ABCFRALMMACC1"
2020
self.options = Options(hostname, port, accountName, timeout=5)
2121

2222
def test_broadcastReceiver(self):
23-
broadcaster = Broadcaster(self.options.hostname, 35672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
23+
broadcaster = Broadcaster(self.options.hostname, 5672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
2424
broadcaster.run()
2525

2626
br = BroadcastReceiver(self.options)
@@ -29,7 +29,7 @@ def test_broadcastReceiver(self):
2929
self.assertGreaterEqual(br.message_counter, 1)
3030

3131
def test_requestResponse(self):
32-
responder = Responder(self.options.hostname, 35672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
32+
responder = Responder(self.options.hostname, 5672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
3333
responder.start()
3434

3535
rr = RequestResponse(self.options)
@@ -38,7 +38,7 @@ def test_requestResponse(self):
3838
self.assertGreaterEqual(rr.message_counter, 1)
3939

4040
def test_amqp10BroadcastReceiver(self):
41-
broadcaster = Broadcaster(self.options.hostname, 35672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
41+
broadcaster = Broadcaster(self.options.hostname, 5672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
4242
broadcaster.run()
4343

4444
br = Amqp10BroadcastReceiver(self.options)
@@ -47,7 +47,7 @@ def test_amqp10BroadcastReceiver(self):
4747
self.assertGreaterEqual(br.message_counter, 1)
4848

4949
def test_amqp10RequestResponse(self):
50-
responder = Responder(self.options.hostname, 35672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
50+
responder = Responder(self.options.hostname, 5672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
5151
responder.start()
5252

5353
rr = Amqp10RequestResponse(self.options)
@@ -56,4 +56,4 @@ def test_amqp10RequestResponse(self):
5656
self.assertGreaterEqual(rr.message_counter, 1)
5757

5858
if __name__ == '__main__':
59-
unittest.main()
59+
unittest.main()

tests/test_Proton.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class ProtonTests(unittest.TestCase):
1616
def setUp(self):
1717
hostname = "ecag-fixml-dev1"
18-
port = 35671
18+
port = 5671
1919
accountName = "ABCFR_ABCFRALMMACC1"
2020
accountPrivateKey = "./tests/resources/ABCFR_ABCFRALMMACC1.pem"
2121
accountPublicKey = "./tests/resources/ABCFR_ABCFRALMMACC1.crt"
@@ -24,7 +24,7 @@ def setUp(self):
2424
self.options = Options(hostname, port, accountName, accountPublicKey, accountPrivateKey, brokerPublicKey, timeout)
2525

2626
def test_broadcastReceiver(self):
27-
broadcaster = Broadcaster(self.options.hostname, 35672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
27+
broadcaster = Broadcaster(self.options.hostname, 5672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
2828
broadcaster.run()
2929

3030
br = BroadcastReceiver(self.options)
@@ -33,7 +33,7 @@ def test_broadcastReceiver(self):
3333
self.assertGreaterEqual(br.message_counter, 1)
3434

3535
def test_requestResponse(self):
36-
responder = Responder(self.options.hostname, 35672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
36+
responder = Responder(self.options.hostname, 5672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
3737
responder.start()
3838

3939
rr = RequestResponse(self.options)
@@ -42,7 +42,7 @@ def test_requestResponse(self):
4242
self.assertGreaterEqual(rr.message_counter, 1)
4343

4444
def test_blockingBroadcastReceiver(self):
45-
broadcaster = Broadcaster(self.options.hostname, 35672, "admin", "admin", "broadcast",
45+
broadcaster = Broadcaster(self.options.hostname, 5672, "admin", "admin", "broadcast",
4646
"broadcast.ABCFR.TradeConfirmation", 1)
4747
broadcaster.run()
4848

@@ -52,7 +52,7 @@ def test_blockingBroadcastReceiver(self):
5252
self.assertGreaterEqual(br.message_counter, 1)
5353

5454
def test_blockingRequestResponse(self):
55-
responder = Responder(self.options.hostname, 35672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
55+
responder = Responder(self.options.hostname, 5672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
5656
responder.start()
5757

5858
rr = BlockingRequestResponse(self.options)
@@ -61,4 +61,4 @@ def test_blockingRequestResponse(self):
6161
self.assertGreaterEqual(rr.message_counter, 1)
6262

6363
if __name__ == '__main__':
64-
unittest.main()
64+
unittest.main()

tests/test_PurePython.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
class PurePythonTests(unittest.TestCase):
1414
def setUp(self):
1515
hostname = "ecag-fixml-dev1"
16-
port = 35671
16+
port = 5671
1717
accountName = "ABCFR_ABCFRALMMACC1"
1818
accountPrivateKey = "./tests/resources/ABCFR_ABCFRALMMACC1.pem"
1919
accountPublicKey = "./tests/resources/ABCFR_ABCFRALMMACC1.crt"
2020
brokerPublicKey = "./tests/resources/ecag-fixml-dev1.crt"
2121
self.options = Options(hostname, port, accountName, accountPublicKey, accountPrivateKey, brokerPublicKey, timeout=5)
2222

2323
def test_broadcastReceiver(self):
24-
broadcaster = Broadcaster(self.options.hostname, 35672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
24+
broadcaster = Broadcaster(self.options.hostname, 5672, "admin", "admin", "broadcast", "broadcast.ABCFR.TradeConfirmation", 1)
2525
broadcaster.run()
2626

2727
br = BroadcastReceiver(self.options)
@@ -31,7 +31,7 @@ def test_broadcastReceiver(self):
3131

3232

3333
def test_requestResponse(self):
34-
responder = Responder(self.options.hostname, 35672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
34+
responder = Responder(self.options.hostname, 5672, "admin", "admin", "request_be.ABCFR_ABCFRALMMACC1", 5)
3535
responder.start()
3636

3737
rr = RequestResponse(self.options)
@@ -40,4 +40,4 @@ def test_requestResponse(self):
4040
self.assertGreaterEqual(rr.message_counter, 1)
4141

4242
if __name__ == '__main__':
43-
unittest.main()
43+
unittest.main()

0 commit comments

Comments
 (0)