Skip to content

Commit 453dfb5

Browse files
committed
test(config-resolver): remove hostname from endpoint hash mocks
1 parent ebcb938 commit 453dfb5

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/config-resolver/src/regionInfo/getRegionInfo.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ describe(getRegionInfo.name, () => {
3030
const getMockRegionHash = (regionCase: RegionCase): RegionHash => ({
3131
...((regionCase === RegionCase.REGION || regionCase === RegionCase.REGION_AND_ENDPOINT) && {
3232
[mockRegion]: {
33-
hostname: mockHostname,
3433
variants: [{ hostname: mockHostname, tags: [] }],
3534
},
3635
}),
3736
...((regionCase === RegionCase.ENDPOINT || regionCase === RegionCase.REGION_AND_ENDPOINT) && {
3837
[mockEndpointRegion]: {
39-
hostname: mockEndpointHostname,
4038
variants: [{ hostname: mockEndpointHostname, tags: [] }],
4139
},
4240
}),
@@ -46,7 +44,6 @@ describe(getRegionInfo.name, () => {
4644
[mockPartition]: {
4745
regions: [mockRegion, `${mockRegion}2`, `${mockRegion}3`],
4846
regionRegex: mockRegionRegex,
49-
hostname: mockHostname,
5047
variants: [{ hostname: mockHostname, tags: [] }],
5148
...((regionCase === RegionCase.ENDPOINT || regionCase === RegionCase.REGION_AND_ENDPOINT) && {
5249
endpoint: mockEndpointRegion,

packages/config-resolver/src/regionInfo/getResolvedPartition.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ describe(getResolvedPartition.name, () => {
1212
[mockPartition]: {
1313
regions: [mockRegion, `${mockRegion}2`, `${mockRegion}3`],
1414
regionRegex: mockRegionRegex,
15-
hostname: mockHostname,
1615
variants: [{ hostname: mockHostname, tags: [] }],
1716
},
1817
};
@@ -24,7 +23,6 @@ describe(getResolvedPartition.name, () => {
2423
[`${mockPartition}2`]: {
2524
regions: [`${mockRegion}2`, `${mockRegion}3`],
2625
regionRegex: mockRegionRegex,
27-
hostname: mockHostname,
2826
variants: [{ hostname: mockHostname, tags: [] }],
2927
},
3028
};

0 commit comments

Comments
 (0)