mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(edge): show heartbeat for async env [EE-3380] (#7097)
This commit is contained in:
parent
60cd7b5527
commit
825269c119
13 changed files with 188 additions and 115 deletions
|
@ -2,6 +2,7 @@ import _ from 'lodash';
|
|||
|
||||
import { Team } from '@/portainer/teams/types';
|
||||
import { Role, User, UserId } from '@/portainer/users/types';
|
||||
import { Environment } from '@/portainer/environments/types';
|
||||
|
||||
export function createMockUsers(
|
||||
count: number,
|
||||
|
@ -59,3 +60,25 @@ export function createMockResourceGroups(subscription: string, count: number) {
|
|||
|
||||
return { value: resourceGroups };
|
||||
}
|
||||
|
||||
export function createMockEnvironment(): Environment {
|
||||
return {
|
||||
TagIds: [],
|
||||
GroupId: 1,
|
||||
Type: 1,
|
||||
Name: 'environment',
|
||||
Status: 1,
|
||||
URL: 'url',
|
||||
Snapshots: [],
|
||||
Kubernetes: { Snapshots: [] },
|
||||
EdgeKey: '',
|
||||
Id: 3,
|
||||
UserTrusted: false,
|
||||
Edge: {
|
||||
AsyncMode: false,
|
||||
PingInterval: 0,
|
||||
CommandInterval: 0,
|
||||
SnapshotInterval: 0,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue