@spinnaker/mocks 2026.2.3 → 2026.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/spinnaker/spinnaker.git"
6
6
  },
7
- "version": "2026.2.3",
7
+ "version": "2026.3.0",
8
8
  "module": "dist/index.js",
9
9
  "typings": "dist/index.d.ts",
10
10
  "license": "Apache-2.0",
@@ -16,16 +16,13 @@
16
16
  "prepublishOnly": "tsc"
17
17
  },
18
18
  "devDependencies": {
19
- "@spinnaker/amazon": "2026.2.3",
20
- "@spinnaker/core": "2026.2.3",
21
- "@spinnaker/eslint-plugin": "2026.2.3",
19
+ "@spinnaker/amazon": "2026.3.0",
20
+ "@spinnaker/core": "2026.3.0",
21
+ "@spinnaker/eslint-plugin": "2026.3.0",
22
22
  "typescript": "5.0.4"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@spinnaker/core": "*"
26
26
  },
27
- "dependencies": {
28
- "ngimport": "0.6.1"
29
- },
30
- "gitHead": "a4e60ac0d767ffea0a41057a8bd9b0df110dfaa4"
27
+ "gitHead": "0f7d75f5d4b42c1675e2ecc69a53f8eb73090eb9"
31
28
  }
@@ -4,9 +4,11 @@ import { mockLaunchTemplate } from './mockAmazonLaunchTemplate';
4
4
  import { mockInstanceCounts } from './../mockInstanceCounts';
5
5
 
6
6
  export const mockAmazonAsg: IAmazonAsg = {
7
+ autoScalingGroupName: 'deck-test-123',
7
8
  minSize: 2,
8
9
  maxSize: 2,
9
10
  desiredCapacity: 2,
11
+ loadBalancerNames: ['lb-123'],
10
12
  tags: [],
11
13
  availabilityZones: ['a', 'b', 'c'],
12
14
  vpczoneIdentifier: '',
@@ -1,4 +1,3 @@
1
- import { $q } from 'ngimport';
2
1
  import type { ILoadBalancer, IPipeline, ISecurityGroup, IServerGroup } from '@spinnaker/core';
3
2
  import type { Application, IDataSourceConfig, ITask } from '@spinnaker/core';
4
3
  import { mockLoadBalancer } from './mockLoadBalancer';
@@ -12,8 +11,8 @@ export const mockLoadBalancerDataSourceConfig: IDataSourceConfig<ILoadBalancer>
12
11
  sref: '.insight.loadBalancers',
13
12
  category: 'infrastructure',
14
13
  optional: true,
15
- loader: (application: Application) => $q(() => application),
16
- onLoad: (application: Application) => $q(() => application),
14
+ loader: (application: Application) => Promise.resolve(application),
15
+ onLoad: (_application: Application, result: ILoadBalancer) => Promise.resolve(result),
17
16
  afterLoad: (application: Application) => application,
18
17
  providerField: 'cloudProvider',
19
18
  credentialsField: 'account',
@@ -30,8 +29,8 @@ export const mockPipelineDataSourceConfig: IDataSourceConfig<IPipeline> = {
30
29
  category: 'delivery',
31
30
  sref: '.pipelines.executions',
32
31
  activeState: '**.pipelines.**',
33
- loader: (application: Application) => $q(() => application),
34
- onLoad: (application: Application) => $q(() => application),
32
+ loader: (application: Application) => Promise.resolve(application),
33
+ onLoad: (_application: Application, result: IPipeline) => Promise.resolve(result),
35
34
  afterLoad: (application: Application) => application,
36
35
  lazy: true,
37
36
  badge: 'runningExecutions',
@@ -45,8 +44,8 @@ export const mockSecurityGroupDataSourceConfig: IDataSourceConfig<ISecurityGroup
45
44
  category: 'infrastructure',
46
45
  sref: '.insight.firewalls',
47
46
  optional: true,
48
- loader: (application: Application) => $q(() => application),
49
- onLoad: (application: Application) => $q(() => application),
47
+ loader: (application: Application) => Promise.resolve(application),
48
+ onLoad: (_application: Application, result: ISecurityGroup) => Promise.resolve(result),
50
49
  afterLoad: (application: Application) => application,
51
50
  providerField: 'provider',
52
51
  credentialsField: 'accountName',
@@ -62,8 +61,8 @@ export const mockServerGroupDataSourceConfig: IDataSourceConfig<IServerGroup> =
62
61
  sref: '.insight.clusters',
63
62
  optional: true,
64
63
  primary: true,
65
- loader: (application: Application) => $q(() => application),
66
- onLoad: (application: Application) => $q(() => application),
64
+ loader: (application: Application) => Promise.resolve(application),
65
+ onLoad: (_application: Application, result: IServerGroup) => Promise.resolve(result),
67
66
  afterLoad: (application: Application) => application,
68
67
  providerField: 'type',
69
68
  credentialsField: 'account',
@@ -77,8 +76,8 @@ export const mockTaskDataSourceConfig: IDataSourceConfig<ITask> = {
77
76
  sref: '.tasks',
78
77
  badge: 'runningTasks',
79
78
  category: 'tasks',
80
- loader: (application: Application) => $q(() => application),
81
- onLoad: (application: Application) => $q(() => application),
79
+ loader: (application: Application) => Promise.resolve(application),
80
+ onLoad: (_application: Application, result: ITask) => Promise.resolve(result),
82
81
  afterLoad: (application: Application) => application,
83
82
  lazy: true,
84
83
  primary: true,
package/src/mockHealth.ts CHANGED
@@ -10,5 +10,6 @@ export const mockLoadBalancerHealth: ILoadBalancerHealth = {
10
10
  export const mockHealth: IHealth = {
11
11
  type: 'Discovery',
12
12
  state: 'Up',
13
+ description: 'Discovery health',
13
14
  loadBalancers: [mockLoadBalancerHealth],
14
15
  };
package/src/mockTask.ts CHANGED
@@ -4,6 +4,7 @@ export const mockOrchestratedItem: IOrchestratedItem = {
4
4
  getValueFor: () => {},
5
5
  originalStatus: 'SUCCEEDED',
6
6
  status: 'SUCCEEDED',
7
+ failureMessages: [],
7
8
  failureMessage: '',
8
9
  isBuffered: true,
9
10
  isCompleted: true,