Skip to content

Commit 7296d14

Browse files
committed
Fix composition start up
There are a couple of bugs when starting up a docker composition. These are small fixes that get us past those errors. Change-Id: I01ddf92ce27e3c2d232d89d39e94b573de59e1c3 Signed-off-by: Latitia M Haskins <[email protected]>
1 parent ab7e1da commit 7296d14

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bddtests/steps/compose.py

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def __init__(self, context, composeFilesYaml, projectName = None,
7474
self.containerDataList = []
7575
self.composeFilesYaml = composeFilesYaml
7676

77+
self.serviceNames = []
78+
self.serviceNames = self._collectServiceNames()
7779
[callback.composing(self, context) for callback in Composition.GetCompositionCallbacksFromContext(context)]
7880
self.up(context, force_recreate, components)
7981

bddtests/steps/contexthelper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def getTmpProjectPath(self):
4444

4545
def getTmpPathForName(self, name, extension=None, copyFromCache=False):
4646
'Returns the tmp path for a file, and a flag indicating if the file exists. Will also check in the cache and copy to tmp if copyFromCache==True'
47-
slugifiedName = ".".join([slugify(name), extension]) if extension else slugify(name)
47+
unicodeName = unicode(name)
48+
slugifiedName = ".".join([slugify(unicodeName), extension]) if extension else slugify(unicodeName)
4849
tmpPath = os.path.join(self.getTmpProjectPath(), slugifiedName)
4950
fileExists = False
5051
if os.path.isfile(tmpPath):

0 commit comments

Comments
 (0)