Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from microservices-demo/rename-to-carts
Browse files Browse the repository at this point in the history
Rename to carts
  • Loading branch information
nustiueudinastea authored Mar 8, 2017
2 parents 39963b8 + 829aa66 commit fd7fb7f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jdk:
install: true

env:
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=cart;
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=carts;

script:
- set -e
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CODE_DIR=$(cd $SCRIPT_DIR/..; pwd)
echo $CODE_DIR
$DOCKER_CMD run --rm -v $HOME/.m2:/root/.m2 -v $CODE_DIR:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn -q -DskipTests package

cp $CODE_DIR/target/*.jar $CODE_DIR/docker/cart
cp $CODE_DIR/target/*.jar $CODE_DIR/docker/carts

for m in ./docker/*/; do
REPO=${GROUP}/$(basename $m)
Expand Down
8 changes: 4 additions & 4 deletions test/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class CartContainerTest(unittest.TestCase):
TAG = "latest"
COMMIT = ""
container_name = Docker().random_container_name('cart')
container_name = Docker().random_container_name('carts')
mongo_container_name = Docker().random_container_name('cart-db')
def __init__(self, methodName='runTest'):
super(CartContainerTest, self).__init__(methodName)
Expand All @@ -22,10 +22,10 @@ def setUp(self):
command = ['docker', 'run',
'-d',
'--name', CartContainerTest.container_name,
'-h', 'cart',
'-h', 'carts',
'--link',
CartContainerTest.mongo_container_name,
'weaveworksdemos/cart:' + self.COMMIT]
'weaveworksdemos/carts:' + self.COMMIT]
Docker().execute(command)
self.ip = Docker().get_container_ip(CartContainerTest.container_name)

Expand All @@ -42,7 +42,7 @@ def test_api_validated(self):
sleep(1)

out = Dredd().test_against_endpoint(
"cart", "http://cart/",
"carts", "http://carts/",
links=[self.mongo_container_name, self.container_name],
env=[("MONGO_ENDPOINT", "mongodb://cart-db:27017/data")],
dump_streams=True)
Expand Down

0 comments on commit fd7fb7f

Please sign in to comment.