Skip to content

Commit 69ef600

Browse files
author
Bryan Kendall
committed
fixing https expectation in test
1 parent 94f15bd commit 69ef600

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/fixtures/expects.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,11 @@ function toHipacheEntryKey (containerPort, instanceName, user) {
279279
}
280280
function toHipacheEntryVal (containerPort, container, instanceName) {
281281
if (container.toJSON) { container = container.toJSON(); }
282+
var exposedPort = containerPort.split('/')[0];
282283
var actualPort = container.ports[containerPort][0].HostPort;
283284
var parsedDockerHost = url.parse(container.dockerHost);
284285
var backendUrl = url.format({
285-
protocol: 'http:',
286+
protocol: (exposedPort === '443') ? 'https:' : 'http:',
286287
slashes: true,
287288
hostname: parsedDockerHost.hostname,
288289
port: actualPort
@@ -340,4 +341,4 @@ function sortKeys (o) {
340341
});
341342
return out;
342343
}
343-
}
344+
}

0 commit comments

Comments
 (0)