Pull cord-tester images from dockerhub as they are available now on dockerhub.
Change image names to be compatible with dockerhub image names.
Update prerequisites.sh last step to pull all the cord-tester docker images.
This should make the cord-test.py build all step redundant now since images should be available for testing immediately after prerequisites.sh are run.
Change-Id: I64cf664a214924349d6728ca2a52974decdef47f
diff --git a/src/test/monitoring/monitoringTest.py b/src/test/monitoring/monitoringTest.py
index f9889de..6a24da8 100644
--- a/src/test/monitoring/monitoringTest.py
+++ b/src/test/monitoring/monitoringTest.py
@@ -58,7 +58,7 @@
serverDetails = cls.serverOptionsList
stats_choice = 'COLLECTD'
test_name = cls.testHostName
- test_image = 'cord-test/nose'
+ test_image = 'cordtest/nose'
if stats_choice in stats:
onos_ctrl = OnosCtrl('org.onosproject.cpman')
status, _ = onos_ctrl.activate()
diff --git a/src/test/netCondition/netConditionTest.py b/src/test/netCondition/netConditionTest.py
index 5005772..15156d7 100644
--- a/src/test/netCondition/netConditionTest.py
+++ b/src/test/netCondition/netConditionTest.py
@@ -2162,7 +2162,7 @@
threads = []
threads_status = []
clients = 1
- radius_image = 'cord-test/radius:candidate'
+ radius_image = 'cordtest/radius:candidate'
delay = 20
que = Queue.Queue()
def eap_tls_emulating_server_pkts(df):
@@ -2208,7 +2208,7 @@
threads = []
threads_status = []
clients = 1
- radius_image = 'cord-test/radius:candidate'
+ radius_image = 'cordtest/radius:candidate'
delay = 20
que = Queue.Queue()
def tls_client_packets(start):
@@ -2412,4 +2412,3 @@
df.callback(0)
reactor.callLater(0, eap_tls_emulating_server_pkts, df)
return df
-
diff --git a/src/test/setup/cord-test.py b/src/test/setup/cord-test.py
index aa8532b..ae2d336 100755
--- a/src/test/setup/cord-test.py
+++ b/src/test/setup/cord-test.py
@@ -49,7 +49,7 @@
)
basename = 'cord-tester'
switch_on_olt = False
- IMAGE = 'cord-test/nose'
+ IMAGE = 'cordtest/nose'
ALL_TESTS = ('tls', 'dhcp', 'dhcprelay','igmp', 'subscriber',
'cordSubscriber', 'vrouter', 'flows', 'proxyarp', 'acl', 'xos', 'fabric',
'cbench', 'cluster', 'netCondition', 'cordvtn', 'iperf', 'mini', 'vsg')
@@ -363,7 +363,7 @@
def modify_scapy_files_for_specific_tests(self):
name = self.name
- container_cmd_exec = Container(name = name, image = 'cord-test/nose')
+ container_cmd_exec = Container(name = name, image = CordTester.IMAGE)
tty = False
dckr = Client()
cmd = 'cp test/src/test/scapy/fields.py /usr/local/lib/python2.7/dist-packages/scapy/fields.py '
diff --git a/src/test/setup/prerequisites.sh b/src/test/setup/prerequisites.sh
index 1cbea42..4874838 100755
--- a/src/test/setup/prerequisites.sh
+++ b/src/test/setup/prerequisites.sh
@@ -117,3 +117,9 @@
service openvswitch-switch stop
install_ovs
fi
+
+test_images=(cordtest/radius:candidate cordtest/quagga:candidate cordtest/nose:candidate)
+for img in ${test_images[*]}; do
+ echo "Pulling cord-tester image $img"
+ docker pull $img 2>/dev/null
+done
diff --git a/src/test/utils/CordContainer.py b/src/test/utils/CordContainer.py
index cd31827..6ab5363 100644
--- a/src/test/utils/CordContainer.py
+++ b/src/test/utils/CordContainer.py
@@ -832,7 +832,7 @@
host_guest_map = ( (host_db_dir, guest_db_dir),
(host_config_dir, guest_config_dir)
)
- IMAGE = 'cord-test/radius'
+ IMAGE = 'cordtest/radius'
NAME = 'cord-radius'
def __init__(self, name = NAME, image = IMAGE, prefix = '', tag = 'candidate',
@@ -881,7 +881,7 @@
guest_quagga_config = '/root/config'
quagga_config_file = os.path.join(guest_quagga_config, 'testrib.conf')
host_guest_map = ( (host_quagga_config, guest_quagga_config), )
- IMAGE = 'cord-test/quagga'
+ IMAGE = 'cordtest/quagga'
NAME = 'cord-quagga'
def __init__(self, name = NAME, image = IMAGE, prefix = '', tag = 'candidate',
diff --git a/src/test/utils/CordLogger.py b/src/test/utils/CordLogger.py
index cc1845b..1efe086 100644
--- a/src/test/utils/CordLogger.py
+++ b/src/test/utils/CordLogger.py
@@ -170,7 +170,7 @@
serverDetails = cls.serverOptionsList
stat_choice = 'COLLECTD'
test_name = cls.testHostName
- test_image = 'cord-test/nose'
+ test_image = 'cordtest/nose'
if stat_choice in stat:
onos_ctrl = OnosCtrl('org.onosproject.cpman')
status, _ = onos_ctrl.activate()
@@ -222,4 +222,3 @@
if stat_choice in stat:
onos_ctrl = OnosCtrl('org.onosproject.cpman')
status, _ = onos_ctrl.deactivate()
-