Skip to content

Commit 84727c6

Browse files
authored
Instance /network-interfaces -> /networking (#2291)
instance /networking-interfaces -> /networking
1 parent e782bf2 commit 84727c6

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

app/pages/project/instances/instance/InstancePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function InstancePage() {
206206
<RouteTabs fullWidth>
207207
<Tab to={pb.instanceStorage(instanceSelector)}>Storage</Tab>
208208
<Tab to={pb.instanceMetrics(instanceSelector)}>Metrics</Tab>
209-
<Tab to={pb.nics(instanceSelector)}>Networking</Tab>
209+
<Tab to={pb.instanceNetworking(instanceSelector)}>Networking</Tab>
210210
<Tab to={pb.instanceConnect(instanceSelector)}>Connect</Tab>
211211
</RouteTabs>
212212
</>

app/routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export const routes = createRoutesFromElements(
314314
handle={{ crumb: 'Storage' }}
315315
/>
316316
<Route
317-
path="network-interfaces"
317+
path="networking"
318318
element={<NetworkingTab />}
319319
loader={NetworkingTab.loader}
320320
handle={{ crumb: 'Networking' }}

app/util/path-builder.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ test('path builder', () => {
4141
"instance": "/projects/p/instances/i/storage",
4242
"instanceConnect": "/projects/p/instances/i/connect",
4343
"instanceMetrics": "/projects/p/instances/i/metrics",
44+
"instanceNetworking": "/projects/p/instances/i/networking",
4445
"instanceStorage": "/projects/p/instances/i/storage",
4546
"instances": "/projects/p/instances",
4647
"instancesNew": "/projects/p/instances-new",
@@ -50,7 +51,6 @@ test('path builder', () => {
5051
"ipPoolRangeAdd": "/system/networking/ip-pools/pl/ranges-add",
5152
"ipPools": "/system/networking/ip-pools",
5253
"ipPoolsNew": "/system/networking/ip-pools-new",
53-
"nics": "/projects/p/instances/i/network-interfaces",
5454
"profile": "/settings/profile",
5555
"project": "/projects/p/instances",
5656
"projectAccess": "/projects/p/access",

app/util/path-builder.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export const pb = {
5959
instanceMetrics: (params: Instance) => `${instanceBase(params)}/metrics`,
6060
instanceStorage: (params: Instance) => `${instanceBase(params)}/storage`,
6161
instanceConnect: (params: Instance) => `${instanceBase(params)}/connect`,
62-
63-
nics: (params: Instance) => `${instanceBase(params)}/network-interfaces`,
64-
62+
instanceNetworking: (params: Instance) => `${instanceBase(params)}/networking`,
6563
serialConsole: (params: Instance) => `${instanceBase(params)}/serial-console`,
6664

6765
disksNew: (params: Project) => `${projectBase(params)}/disks-new`,

test/e2e/instance-networking.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test('Instance networking tab — NIC table', async ({ page }) => {
7979
})
8080

8181
test('Instance networking tab — Detach / Attach Ephemeral IPs', async ({ page }) => {
82-
await page.goto('/projects/mock-project/instances/db1/network-interfaces')
82+
await page.goto('/projects/mock-project/instances/db1/networking')
8383

8484
const attachEphemeralIpButton = page.getByRole('button', { name: 'Attach ephemeral IP' })
8585
const externalIpTable = page.getByRole('table', { name: 'External IPs' })
@@ -114,7 +114,7 @@ test('Instance networking tab — Detach / Attach Ephemeral IPs', async ({ page
114114
})
115115

116116
test('Instance networking tab — floating IPs', async ({ page }) => {
117-
await page.goto('/projects/mock-project/instances/db1/network-interfaces')
117+
await page.goto('/projects/mock-project/instances/db1/networking')
118118
const externalIpTable = page.getByRole('table', { name: 'External IPs' })
119119
const attachFloatingIpButton = page.getByRole('button', { name: 'Attach floating IP' })
120120

test/e2e/network-interface-create.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { expect, expectRowVisible, stopInstance } from './utils'
1111

1212
test('can create a NIC with a specified IP address', async ({ page }) => {
1313
// go to an instance’s Network Interfaces page
14-
await page.goto('/projects/mock-project/instances/db1/network-interfaces')
14+
await page.goto('/projects/mock-project/instances/db1/networking')
1515

1616
await stopInstance(page)
1717

@@ -38,7 +38,7 @@ test('can create a NIC with a specified IP address', async ({ page }) => {
3838

3939
test('can create a NIC with a blank IP address', async ({ page }) => {
4040
// go to an instance’s Network Interfaces page
41-
await page.goto('/projects/mock-project/instances/db1/network-interfaces')
41+
await page.goto('/projects/mock-project/instances/db1/networking')
4242

4343
await stopInstance(page)
4444

test/e2e/z-index.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test('Dropdown content can scroll off page and doesn’t hide TopBar', async ({
4343

4444
test('Dropdown content in SidebarModal shows on screen', async ({ page }) => {
4545
// go to an instance’s Network Interfaces page
46-
await page.goto('/projects/mock-project/instances/db1/network-interfaces')
46+
await page.goto('/projects/mock-project/instances/db1/networking')
4747

4848
await stopInstance(page)
4949

0 commit comments

Comments
 (0)