Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Feature: mesh / dataplanes / DataplaneDetailsTraffic
Background:
Given the CSS selectors
| Alias | Selector |
| about-section | [data-testid='dataplane-about-section'] |
| detail-view | [data-testid='data-plane-detail-tabs-view'] |
| loading-warning | [data-testid^='notification-data-planes.notifications.stats-not-enhanced'] |
| traffic | [data-testid='dataplane-traffic'] |
Expand Down Expand Up @@ -59,6 +60,7 @@ Feature: mesh / dataplanes / DataplaneDetailsTraffic
body:
dataplane:
networking:
address: 58.25.181.133
gateway: !!js/undefined
dataplaneInsight:
mTLS: !!js/undefined
Expand All @@ -78,3 +80,4 @@ Feature: mesh / dataplanes / DataplaneDetailsTraffic
When I visit the "/meshes/default/data-planes/dpp-1-name-of-dataplane/overview" URL
And the "$traffic" element exists
And the "$loading-warning" element exists
And the "$about-section" element contains "58.25.181.133"
74 changes: 37 additions & 37 deletions packages/kuma-gui/src/app/data-planes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,43 @@ import { routes as connections, networking } from '@/app/connections/routes'
import { routes as subscriptions } from '@/app/subscriptions/routes'
import type { RouteRecordRaw } from 'vue-router'

export const routes = () => {
const item = (): RouteRecordRaw[] => [
{
path: '',
name: 'data-plane-root-view',
component: () => import('@/app/data-planes/views/RootView.vue'),
children: [...dataplaneRoutes()],
},
]

const summary = (prefix?: string): RouteRecordRaw[] => {
const fullPrefix = prefix?.length ? `${prefix}-` : ''

return [
{
path: ':proxy',
name: `${fullPrefix}data-plane-summary-view`,
component: () => import('@/app/data-planes/views/DataPlaneSummaryView.vue'),
},
]
}

return {
items: (): RouteRecordRaw[] => {
return [
{
path: 'data-planes',
name: 'data-plane-list-view',
component: () => import('@/app/data-planes/views/DataPlaneListView.vue'),
children: summary(),
},
]
},
item,
summary,
}
}
export const dataplaneRoutes = (): RouteRecordRaw[] => {
return [
{
Expand Down Expand Up @@ -77,40 +114,3 @@ export const dataplaneRoutes = (): RouteRecordRaw[] => {
]
}

export const routes = () => {
const item = (): RouteRecordRaw[] => [
{
path: '',
name: 'data-plane-root-view',
component: () => import('@/app/legacy-data-planes/views/RootView.vue'),
children: [...dataplaneRoutes()],
},
]

const summary = (prefix?: string): RouteRecordRaw[] => {
const fullPrefix = prefix?.length ? `${prefix}-` : ''

return [
{
path: ':proxy',
name: `${fullPrefix}data-plane-summary-view`,
component: () => import('@/app/data-planes/views/DataPlaneSummaryView.vue'),
},
]
}

return {
items: (): RouteRecordRaw[] => {
return [
{
path: 'data-planes',
name: 'data-plane-list-view',
component: () => import('@/app/data-planes/views/DataPlaneListView.vue'),
children: summary(),
},
]
},
item,
summary,
}
}
74 changes: 37 additions & 37 deletions packages/kuma-gui/src/app/legacy-data-planes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,43 @@ import { routes as connections, networking } from '@/app/connections/routes'
import { routes as subscriptions } from '@/app/subscriptions/routes'
import type { RouteRecordRaw } from 'vue-router'

export const routes = () => {
const item = (): RouteRecordRaw[] => [
{
path: '',
name: 'data-plane-root-view',
component: () => import('@/app/data-planes/views/RootView.vue'),
children: [...legacyDataplaneRoutes()],
},
]

const summary = (prefix?: string): RouteRecordRaw[] => {
const fullPrefix = prefix?.length ? `${prefix}-` : ''

return [
{
path: ':proxy',
name: `${fullPrefix}data-plane-summary-view`,
component: () => import('@/app/data-planes/views/DataPlaneSummaryView.vue'),
},
]
}

return {
items: (): RouteRecordRaw[] => {
return [
{
path: 'data-planes',
name: 'data-plane-list-view',
component: () => import('@/app/data-planes/views/DataPlaneListView.vue'),
children: summary(),
},
]
},
item,
summary,
}
}
export const legacyDataplaneRoutes = (): RouteRecordRaw[] => {
return [
{
Expand Down Expand Up @@ -85,40 +122,3 @@ export const legacyDataplaneRoutes = (): RouteRecordRaw[] => {
]
}

export const routes = () => {
const item = (): RouteRecordRaw[] => [
{
path: '',
name: 'data-plane-root-view',
component: () => import('@/app/legacy-data-planes/views/RootView.vue'),
children: [...legacyDataplaneRoutes()],
},
]

const summary = (prefix?: string): RouteRecordRaw[] => {
const fullPrefix = prefix?.length ? `${prefix}-` : ''

return [
{
path: ':proxy',
name: `${fullPrefix}data-plane-summary-view`,
component: () => import('@/app/data-planes/views/DataPlaneSummaryView.vue'),
},
]
}

return {
items: (): RouteRecordRaw[] => {
return [
{
path: 'data-planes',
name: 'data-plane-list-view',
component: () => import('@/app/data-planes/views/DataPlaneListView.vue'),
children: summary(),
},
]
},
item,
summary,
}
}
Loading