Skip to content

Commit b960322

Browse files
author
Yehudit Kerido
committed
feat(ws): Notebooks 2.0 // Frontend // Fetch workspaces
Signed-off-by: Yehudit Kerido <[email protected]>
1 parent 57f96b9 commit b960322

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

workspaces/frontend/src/__tests__/cypress/cypress/tests/mocked/workspace.mock.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const generateMockWorkspace = (
4545
};
4646
};
4747
};
48-
activity: { last_activity: number; last_update: number };
48+
activity: { lastActivity: number; lastUpdate: number };
4949
services: { httpService: { displayName: string; httpPath: string } }[];
5050
} => {
5151
const currentTime = Date.now();
@@ -109,8 +109,8 @@ const generateMockWorkspace = (
109109
},
110110
},
111111
activity: {
112-
last_activity: lastActivityTime,
113-
last_update: lastUpdateTime,
112+
lastActivity: lastActivityTime,
113+
lastUpdate: lastUpdateTime,
114114
},
115115
services: [
116116
{
@@ -126,14 +126,14 @@ const generateMockWorkspace = (
126126
const generateMockWorkspaces = (numWorkspaces: number, byNamespace = false) => {
127127
const mockWorkspaces = [];
128128
const podConfigs = [
129-
{ id: 'small-cpu', display_name: 'Small CPU' },
130-
{ id: 'medium-cpu', display_name: 'Medium CPU' },
131-
{ id: 'large-cpu', display_name: 'Large CPU' },
129+
{ id: 'small-cpu', displayName: 'Small CPU' },
130+
{ id: 'medium-cpu', displayName: 'Medium CPU' },
131+
{ id: 'large-cpu', displayName: 'Large CPU' },
132132
];
133133
const imageConfigs = [
134-
{ id: 'jupyterlab_scipy_180', display_name: 'JupyterLab SciPy 1.8.0' },
135-
{ id: 'jupyterlab_tensorflow_230', display_name: 'JupyterLab TensorFlow 2.3.0' },
136-
{ id: 'jupyterlab_pytorch_120', display_name: 'JupyterLab PyTorch 1.2.0' },
134+
{ id: 'jupyterlab_scipy_180', displayName: 'JupyterLab SciPy 1.8.0' },
135+
{ id: 'jupyterlab_tensorflow_230', displayName: 'JupyterLab TensorFlow 2.3.0' },
136+
{ id: 'jupyterlab_pytorch_120', displayName: 'JupyterLab PyTorch 1.2.0' },
137137
];
138138
const namespaces = byNamespace ? ['kubeflow'] : ['kubeflow', 'system', 'user-example', 'default'];
139139

@@ -159,9 +159,9 @@ const generateMockWorkspaces = (numWorkspaces: number, byNamespace = false) => {
159159
state,
160160
paused,
161161
imageConfig.id,
162-
imageConfig.display_name,
162+
imageConfig.displayName,
163163
podConfig.id,
164-
podConfig.display_name,
164+
podConfig.displayName,
165165
pvcName,
166166
),
167167
);

0 commit comments

Comments
 (0)