Skip to content

Commit d689816

Browse files
committed
Update test display
1 parent 0ff2e01 commit d689816

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/ingress/getDefaultPort.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ import { IngressContext, PortRange, getDefaultPort } from "../../extension.bundl
88
import type { MockIngressContext } from "./MockIngressContext";
99

1010
suite('getDefaultPort', async () => {
11-
test('correctly suggests when provided detected expose ports and no existing container app port', async () => {
11+
test('correctly suggests a new port when Dockerfile expose ports are detected with no existing container app port', async () => {
1212
const context: MockIngressContext = {
1313
dockerfileExposePorts: [new PortRange(443), new PortRange(8080, 8090)]
1414
};
1515
assert.equal(getDefaultPort(context as IngressContext), 443);
1616
});
1717

18-
test('correctly suggests deployed port when detected expose ports overlap with existing container app port', async () => {
18+
test('correctly suggests deployed port when Dockerfile expose ports are detected that overlap with existing container app port', async () => {
1919
const context: MockIngressContext = {
2020
containerApp: { configuration: { ingress: { targetPort: 8081 } } },
2121
dockerfileExposePorts: [new PortRange(80), new PortRange(443), new PortRange(8080, 8090)]
2222
};
2323
assert.equal(getDefaultPort(context as IngressContext), 8081);
2424
});
2525

26-
test('correctly suggests existing deploy port when no expose ports detected', async () => {
26+
test('correctly suggests existing deploy port when no expose ports are detected', async () => {
2727
const context: MockIngressContext = {
2828
containerApp: { configuration: { ingress: { targetPort: 3000 } } },
2929
};
3030
assert.equal(getDefaultPort(context as IngressContext), 3000);
3131
});
3232

33-
test('correctly suggests fallback port when no other port numbers are available', async () => {
33+
test('correctly suggests fallback port when no other ports are available', async () => {
3434
assert.equal(getDefaultPort({} as IngressContext), 80);
3535
});
3636
});

0 commit comments

Comments
 (0)