Commit 07270d2a authored by Alexandru Giurgiu's avatar Alexandru Giurgiu
Browse files

renaming cart to carts

parent 39963b86
...@@ -7,7 +7,7 @@ jdk: ...@@ -7,7 +7,7 @@ jdk:
install: true install: true
env: env:
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=cart; - GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=carts;
script: script:
- set -e - set -e
......
...@@ -11,7 +11,7 @@ from util.Dredd import Dredd ...@@ -11,7 +11,7 @@ from util.Dredd import Dredd
class CartContainerTest(unittest.TestCase): class CartContainerTest(unittest.TestCase):
TAG = "latest" TAG = "latest"
COMMIT = "" COMMIT = ""
container_name = Docker().random_container_name('cart') container_name = Docker().random_container_name('carts')
mongo_container_name = Docker().random_container_name('cart-db') mongo_container_name = Docker().random_container_name('cart-db')
def __init__(self, methodName='runTest'): def __init__(self, methodName='runTest'):
super(CartContainerTest, self).__init__(methodName) super(CartContainerTest, self).__init__(methodName)
...@@ -22,10 +22,10 @@ class CartContainerTest(unittest.TestCase): ...@@ -22,10 +22,10 @@ class CartContainerTest(unittest.TestCase):
command = ['docker', 'run', command = ['docker', 'run',
'-d', '-d',
'--name', CartContainerTest.container_name, '--name', CartContainerTest.container_name,
'-h', 'cart', '-h', 'carts',
'--link', '--link',
CartContainerTest.mongo_container_name, CartContainerTest.mongo_container_name,
'weaveworksdemos/cart:' + self.COMMIT] 'weaveworksdemos/carts:' + self.COMMIT]
Docker().execute(command) Docker().execute(command)
self.ip = Docker().get_container_ip(CartContainerTest.container_name) self.ip = Docker().get_container_ip(CartContainerTest.container_name)
...@@ -42,7 +42,7 @@ class CartContainerTest(unittest.TestCase): ...@@ -42,7 +42,7 @@ class CartContainerTest(unittest.TestCase):
sleep(1) sleep(1)
out = Dredd().test_against_endpoint( out = Dredd().test_against_endpoint(
"cart", "http://cart/", "carts", "http://carts/",
links=[self.mongo_container_name, self.container_name], links=[self.mongo_container_name, self.container_name],
env=[("MONGO_ENDPOINT", "mongodb://cart-db:27017/data")], env=[("MONGO_ENDPOINT", "mongodb://cart-db:27017/data")],
dump_streams=True) dump_streams=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment