@spinnaker/core 0.14.2 → 0.16.1
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/CHANGELOG.md +59 -0
- package/dist/config/settings.d.ts +1 -0
- package/dist/core.module.d.ts +1 -1
- package/dist/index.js +89 -47
- package/dist/index.js.map +1 -1
- package/dist/instance/instanceType.service.d.ts +3 -2
- package/dist/managed/artifactActions/ArtifactActions.d.ts +24 -0
- package/dist/managed/constraints/registry.d.ts +13 -2
- package/dist/managed/environmentBaseElements/EnvironmentItem.d.ts +3 -2
- package/dist/managed/graphql/graphql-sdk.d.ts +123 -11
- package/dist/managed/overview/Resource.d.ts +5 -2
- package/dist/managed/overview/artifact/Artifact.d.ts +2 -1
- package/dist/managed/overview/artifact/ArtifactActionModal.d.ts +20 -9
- package/dist/managed/overview/artifact/ArtifactCollapsibleSection.d.ts +7 -0
- package/dist/managed/overview/artifact/ArtifactVersions.d.ts +9 -0
- package/dist/managed/overview/artifact/CurrentVersion.d.ts +7 -6
- package/dist/managed/overview/artifact/VersionTitle.d.ts +9 -0
- package/dist/managed/overview/artifact/hooks.d.ts +6 -11
- package/dist/managed/overview/artifact/useCreateRollbackActions.hook.d.ts +3 -0
- package/dist/managed/overview/artifact/utils.d.ts +15 -14
- package/dist/managed/overview/useIsUpdatingResources.hook.d.ts +1 -0
- package/dist/managed/resources/ResourceTitle.d.ts +3 -3
- package/dist/managed/resources/resourceRegistry.d.ts +1 -1
- package/dist/managed/utils/ActionModal.d.ts +1 -0
- package/dist/managed/utils/defaults.d.ts +1 -0
- package/dist/managed/versionMetadata/MetadataComponents.d.ts +18 -19
- package/dist/managed/versionMetadata/VersionMetadata.d.ts +6 -2
- package/dist/search/infrastructure/infrastructureSearch.service.d.ts +2 -1
- package/dist/securityGroup/index.d.ts +2 -1
- package/package.json +6 -6
- package/src/account/AccountSelectInput.spec.tsx +9 -4
- package/src/account/AccountService.spec.ts +6 -6
- package/src/api/ApiService.spec.ts +2 -2
- package/src/api/ApiServiceDeprecated.spec.ts +5 -2
- package/src/application/application.model.spec.ts +78 -79
- package/src/application/applications.state.provider.ts +1 -1
- package/src/application/config/applicationAttributes.directive.html +6 -2
- package/src/application/config/applicationAttributes.directive.js +4 -0
- package/src/application/config/applicationConfig.view.html +14 -1
- package/src/application/config/customBanner/CustomBannerConfig.spec.tsx +3 -3
- package/src/application/config/dataSources/applicationDataSourceEditor.component.spec.ts +4 -3
- package/src/application/config/footer/configSectionFooter.component.spec.ts +2 -1
- package/src/application/listExtractor/AppListExtractor.spec.ts +4 -4
- package/src/application/modal/PermissionsConfigurer.spec.tsx +3 -2
- package/src/application/modal/createApplication.modal.controller.js +7 -6
- package/src/application/modal/createApplication.modal.controller.spec.js +1 -0
- package/src/application/modal/editApplication.controller.modal.js +1 -0
- package/src/application/modal/editApplication.html +2 -2
- package/src/application/modal/validation/ApplicationNameValidator.spec.ts +2 -1
- package/src/application/modal/validation/validateApplicationName.directive.spec.ts +3 -2
- package/src/application/nav/ApplicationNavigation.spec.tsx +12 -11
- package/src/application/nav/NavItem.spec.tsx +7 -5
- package/src/application/nav/NavSection.spec.tsx +3 -2
- package/src/application/search/Applications.tsx +48 -0
- package/src/application/service/ApplicationReader.spec.ts +13 -8
- package/src/application/service/ApplicationWriter.spec.ts +4 -2
- package/src/application/service/InferredApplicationWarningService.spec.ts +2 -3
- package/src/artifact/expectedArtifact.service.spec.ts +2 -1
- package/src/artifact/react/ExpectedArtifactSelector.spec.tsx +2 -3
- package/src/authentication/AuthenticationInitializer.spec.ts +2 -1
- package/src/authentication/AuthenticationService.spec.ts +2 -1
- package/src/authentication/authentication.interceptor.spec.ts +4 -2
- package/src/cache/cacheInitializer.service.spec.ts +7 -4
- package/src/cache/infrastructureCaches.spec.ts +4 -4
- package/src/chaosMonkey/chaosMonkeyExceptions.component.spec.ts +4 -2
- package/src/cloudProvider/providerSelection/ProviderSelectionService.spec.ts +23 -21
- package/src/cluster/ClusterRuleMatcher.spec.ts +2 -1
- package/src/cluster/cluster.service.spec.ts +7 -7
- package/src/cluster/filter/ClusterFilterService.spec.ts +15 -14
- package/src/cluster/filter/LabelFilter.spec.tsx +3 -3
- package/src/cluster/filter/MultiselectModel.spec.ts +2 -2
- package/src/cluster/filter/labelFilterUtils.spec.ts +3 -7
- package/src/config/settings.ts +1 -1
- package/src/core.module.ts +1 -1
- package/src/filterModel/dependentFilter/DependentFilterService.spec.ts +1 -1
- package/src/function/filter/FunctionFilterService.spec.ts +5 -3
- package/src/function/function.read.service.spec.ts +4 -3
- package/src/header/customBanner/CustomBanner.spec.tsx +3 -4
- package/src/healthCounts/HealthCounts.spec.tsx +2 -2
- package/src/history/recentHistory.service.spec.ts +2 -1
- package/src/insight/InsightMenu.spec.tsx +9 -6
- package/src/insight/InsightMenu.tsx +3 -0
- package/src/instance/instance.write.service.spec.ts +8 -7
- package/src/instance/instanceType.service.ts +12 -2
- package/src/instance/instanceTypeService.spec.ts +2 -1
- package/src/loadBalancer/LoadBalancersTag.spec.tsx +8 -6
- package/src/loadBalancer/filter/LoadBalancerFilterService.spec.ts +2 -2
- package/src/managed/Environments.less +4 -4
- package/src/managed/Environments.tsx +1 -1
- package/src/managed/RelativeTimestamp.tsx +8 -6
- package/src/managed/artifactActions/ArtifactActions.tsx +77 -0
- package/src/managed/constraints/AllowedTimes.spec.ts +2 -1
- package/src/managed/constraints/registry.tsx +27 -1
- package/src/managed/environmentBaseElements/BaseEnvironment.less +3 -3
- package/src/managed/environmentBaseElements/EnvironmentItem.tsx +11 -4
- package/src/managed/graphql/graphql-sdk.ts +218 -29
- package/src/managed/graphql/schema.graphql +14 -1
- package/src/managed/overview/EnvironmentOverview.tsx +12 -15
- package/src/managed/overview/EnvironmentsOverview.less +6 -5
- package/src/managed/overview/PreviewEnvironments.tsx +0 -3
- package/src/managed/overview/Resource.less +1 -1
- package/src/managed/overview/Resource.tsx +62 -47
- package/src/managed/overview/artifact/Artifact.less +27 -52
- package/src/managed/overview/artifact/Artifact.tsx +86 -22
- package/src/managed/overview/artifact/ArtifactActionModal.less +19 -0
- package/src/managed/overview/artifact/ArtifactActionModal.tsx +150 -68
- package/src/managed/overview/artifact/ArtifactCollapsibleSection.tsx +32 -0
- package/src/managed/overview/artifact/ArtifactVersionTasks.tsx +2 -0
- package/src/managed/overview/artifact/{PendingVersion.tsx → ArtifactVersions.tsx} +35 -25
- package/src/managed/overview/artifact/Constraints.tsx +61 -21
- package/src/managed/overview/artifact/CurrentVersion.tsx +42 -27
- package/src/managed/overview/artifact/VersionTitle.tsx +18 -0
- package/src/managed/overview/artifact/hooks.ts +71 -34
- package/src/managed/overview/artifact/useCreateRollbackActions.hook.ts +75 -0
- package/src/managed/overview/artifact/utils.spec.ts +1 -1
- package/src/managed/overview/artifact/utils.ts +47 -80
- package/src/managed/overview/baseStyles.less +124 -88
- package/src/managed/overview/queries.graphql +54 -13
- package/src/managed/overview/useIsUpdatingResources.hook.ts +9 -0
- package/src/managed/resources/ResourceTitle.tsx +12 -5
- package/src/managed/utils/ActionModal.tsx +4 -1
- package/src/managed/utils/defaults.ts +3 -0
- package/src/managed/utils/useNotifyOnError.hook.ts +1 -1
- package/src/managed/versionMetadata/MetadataComponents.tsx +100 -68
- package/src/managed/versionMetadata/VersionMetadata.less +17 -18
- package/src/managed/versionMetadata/VersionMetadata.tsx +23 -31
- package/src/managed/versionsHistory/VersionContent.tsx +20 -13
- package/src/managed/versionsHistory/VersionHeading.tsx +2 -1
- package/src/managed/versionsHistory/VersionsHistory.less +11 -3
- package/src/manifest/PodNameProvider.spec.ts +1 -1
- package/src/navigation/customParamTypes.spec.ts +1 -1
- package/src/pagerDuty/pagerDuty.read.service.spec.ts +4 -2
- package/src/pagerDuty/pagerDutyTag.component.spec.ts +7 -3
- package/src/pipeline/config/PipelineRegistry.spec.ts +38 -37
- package/src/pipeline/config/actions/templateJson/ShowPipelineTemplateJsonModal.spec.tsx +3 -3
- package/src/pipeline/config/pipelineConfigurer.controller.spec.ts +3 -3
- package/src/pipeline/config/services/PipelineConfigService.spec.ts +4 -3
- package/src/pipeline/config/stages/bakeManifest/helm/BakeHelmConfigForm.spec.tsx +51 -8
- package/src/pipeline/config/stages/bakeManifest/helm/BakeHelmConfigForm.tsx +36 -6
- package/src/pipeline/config/stages/findArtifactFromExecution/findArtifactFromExecution.controller.spec.ts +2 -1
- package/src/pipeline/config/stages/manualJudgment/manualJudgment.service.spec.ts +6 -4
- package/src/pipeline/config/stages/travis/travisExecutionDetails.controller.spec.ts +5 -2
- package/src/pipeline/config/stages/travis/travisStage.controller.spec.ts +3 -2
- package/src/pipeline/config/stages/unmatchedStageTypeStage/unmatchedStageTypeStage.controller.spec.ts +2 -1
- package/src/pipeline/config/stages/wait/SkipWait.tsx +3 -1
- package/src/pipeline/config/stages/wercker/werckerExecutionDetails.controller.spec.ts +5 -2
- package/src/pipeline/config/stages/wercker/werckerStage.controller.spec.ts +3 -2
- package/src/pipeline/config/templates/Variable.spec.tsx +6 -5
- package/src/pipeline/config/templates/configurePipelineTemplateModal.controller.spec.ts +7 -8
- package/src/pipeline/config/templates/v2/configurePipelineTemplateModalV2.controller.spec.ts +7 -8
- package/src/pipeline/config/templates/v2/pipelineTemplateV2.service.spec.ts +1 -1
- package/src/pipeline/config/triggers/TriggersPageContent.spec.tsx +4 -4
- package/src/pipeline/config/triggers/TriggersPageContent.tsx +1 -2
- package/src/pipeline/config/triggers/artifacts/docker/defaultDocker.artifact.spec.ts +1 -2
- package/src/pipeline/config/validation/pipelineConfig.validator.spec.ts +14 -15
- package/src/pipeline/create/CreatePipelineModal.spec.tsx +9 -7
- package/src/pipeline/details/StageFailureMessage.tsx +25 -10
- package/src/pipeline/details/executionDetailsSection.service.spec.ts +3 -2
- package/src/pipeline/executions/Executions.spec.tsx +9 -6
- package/src/pipeline/executions/executionAction/ExecutionAction.spec.tsx +1 -1
- package/src/pipeline/executions/executionGroup/ExecutionGroup.tsx +2 -1
- package/src/pipeline/filter/executionFilter.service.spec.ts +1 -1
- package/src/pipeline/pipeline.dataSource.spec.ts +8 -7
- package/src/pipeline/service/ExecutionsTransformer.spec.ts +2 -2
- package/src/pipeline/service/execution.service.spec.ts +7 -5
- package/src/pipeline/status/Artifact.spec.tsx +7 -6
- package/src/pipeline/status/ArtifactList.spec.tsx +7 -6
- package/src/pipeline/status/ExecutionParameters.spec.tsx +5 -4
- package/src/pipeline/status/ResolvedArtifactList.spec.tsx +7 -6
- package/src/plugins/deck.plugin.spec.ts +4 -2
- package/src/plugins/plugin.registry.spec.ts +6 -4
- package/src/presentation/forms/SpinFormik.spec.tsx +3 -2
- package/src/presentation/forms/fields/FormikFormField.spec.tsx +3 -3
- package/src/presentation/forms/hooks/useSaveRestoreMutuallyExclusiveFields.hook.spec.tsx +4 -3
- package/src/presentation/forms/inputs/ChecklistInput.spec.tsx +1 -1
- package/src/presentation/forms/inputs/RadioButtonInput.spec.tsx +2 -1
- package/src/presentation/forms/inputs/SelectInput.spec.tsx +2 -1
- package/src/presentation/forms/inputs/hooks/useInternalValidator.hook.spec.tsx +4 -3
- package/src/presentation/forms/validation/FormValidator.spec.ts +2 -2
- package/src/presentation/forms/validation/useValidationData.spec.tsx +4 -3
- package/src/presentation/hooks/useContainerClassNames.hook.spec.tsx +2 -1
- package/src/presentation/hooks/useData.hook.spec.tsx +3 -2
- package/src/presentation/hooks/useDebouncedValue.hook.spec.tsx +1 -1
- package/src/presentation/hooks/useDeepObjectDiff.hook.spec.tsx +2 -1
- package/src/presentation/hooks/useEventListener.hook.spec.tsx +2 -1
- package/src/presentation/hooks/useForceUpdate.hook.spec.tsx +2 -1
- package/src/presentation/hooks/useInterval.hook.spec.tsx +2 -1
- package/src/presentation/hooks/useIsMountedRef.hook.spec.tsx +1 -1
- package/src/presentation/hooks/useLatestCallback.hook.spec.tsx +2 -1
- package/src/presentation/hooks/useLatestPromise.hook.spec.tsx +9 -3
- package/src/presentation/hooks/useMountStatusRef.hook.spec.tsx +3 -1
- package/src/presentation/hooks/usePollingData.hook.spec.tsx +3 -2
- package/src/presentation/hooks/usePrevious.hook.spec.tsx +2 -1
- package/src/presentation/navigation/pageNavigator.component.spec.ts +3 -3
- package/src/presentation/spel/SpelInput.spec.tsx +9 -4
- package/src/presentation/spel/SpelService.spec.ts +1 -1
- package/src/scheduler/SchedulerFactory.spec.ts +2 -1
- package/src/search/infrastructure/infrastructure.controller.js +3 -0
- package/src/search/infrastructure/infrastructureSearch.service.ts +3 -2
- package/src/search/widgets/Filter.spec.tsx +5 -3
- package/src/search/widgets/Filters.spec.tsx +5 -3
- package/src/search/widgets/Search.spec.tsx +4 -2
- package/src/securityGroup/index.ts +2 -1
- package/src/securityGroup/securityGroupReader.service.spec.ts +8 -10
- package/src/serverGroup/configure/common/deployInitializer.component.spec.ts +7 -3
- package/src/serverGroup/configure/common/v2instanceArchetypeSelector.component.ts +1 -1
- package/src/serverGroup/details/capacity/CapacityDetailsSection.spec.tsx +1 -1
- package/src/serverGroup/details/scalingActivities/ScalingActivitiesModal.spec.ts +2 -1
- package/src/serverGroup/details/serverGroupWarningMessage.service.spec.ts +4 -4
- package/src/serverGroup/serverGroupWriter.service.spec.ts +10 -8
- package/src/slack/SlackReader.spec.ts +2 -1
- package/src/subnet/subnet.read.service.spec.ts +4 -3
- package/src/task/monitor/taskMonitor.spec.ts +6 -5
- package/src/task/task.dataSource.spec.ts +5 -4
- package/src/task/task.write.service.spec.ts +3 -1
- package/src/utils/clipboard/CopyToClipboard.spec.tsx +2 -1
- package/src/utils/json/json.utility.service.spec.ts +2 -1
- package/src/utils/timeFormatters.spec.ts +3 -2
- package/src/utils/workerPool.spec.ts +2 -1
- package/src/widgets/ApplicationsPickerInput.spec.tsx +3 -2
- package/src/widgets/spelText/SpelAutocompleteService.spec.ts +4 -3
- package/src/widgets/tags/Tag.spec.tsx +4 -2
- package/src/widgets/tags/TagList.spec.tsx +5 -3
- package/src/yamlEditor/yamlEditorUtils.spec.ts +1 -1
- package/dist/managed/overview/artifact/PendingVersion.d.ts +0 -7
|
@@ -20,8 +20,9 @@ export interface ISearchResultSet<T extends ISearchResult = ISearchResult> {
|
|
|
20
20
|
query?: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export type ISearchResultFormatter = (entry: ISearchResult, fromRoute?: boolean) => string | PromiseLike<string>;
|
|
23
24
|
export interface IProviderResultFormatter {
|
|
24
|
-
[category: string]:
|
|
25
|
+
[category: string]: ISearchResultFormatter;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export class InfrastructureSearcher {
|
|
@@ -65,7 +66,7 @@ export class InfrastructureSearcher {
|
|
|
65
66
|
if (!type) {
|
|
66
67
|
return this.$q.when('');
|
|
67
68
|
}
|
|
68
|
-
let formatter = type.displayFormatter;
|
|
69
|
+
let formatter: ISearchResultFormatter = type.displayFormatter;
|
|
69
70
|
|
|
70
71
|
if (this.providerServiceDelegate.hasDelegate(entry.provider, 'search.resultFormatter')) {
|
|
71
72
|
const providerFormatter: IProviderResultFormatter = this.providerServiceDelegate.getDelegate<
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ReactWrapper } from 'enzyme';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import { ReactWrapper, mount } from 'enzyme';
|
|
3
4
|
|
|
4
|
-
import { IFilterProps
|
|
5
|
-
import {
|
|
5
|
+
import type { IFilterProps } from './Filter';
|
|
6
|
+
import { Filter } from './Filter';
|
|
7
|
+
import type { IFilterType } from './SearchFilterTypeRegistry';
|
|
6
8
|
|
|
7
9
|
describe('<Filter/>', () => {
|
|
8
10
|
let component: ReactWrapper<IFilterProps, any>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ReactWrapper } from 'enzyme';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import { ReactWrapper, mount } from 'enzyme';
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import type { IFiltersLayout, IFiltersProps } from './Filters';
|
|
6
|
+
import { Filters } from './Filters';
|
|
7
|
+
import type { IFilterType } from './SearchFilterTypeRegistry';
|
|
6
8
|
|
|
7
9
|
describe('<Filters/>', () => {
|
|
8
10
|
let component: ReactWrapper<IFiltersProps, any>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ReactWrapper } from 'enzyme';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import { ReactWrapper, mount } from 'enzyme';
|
|
3
4
|
|
|
5
|
+
import type { ISearchProps } from './Search';
|
|
6
|
+
import { Search } from './Search';
|
|
4
7
|
import { SearchFilterTypeRegistry } from './SearchFilterTypeRegistry';
|
|
5
|
-
import { ISearchProps, Search } from './Search';
|
|
6
8
|
|
|
7
9
|
describe('<Search/>', () => {
|
|
8
10
|
SearchFilterTypeRegistry.register({ key: 'account', name: 'Account' });
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { mockHttpClient } from '../api/mock/jasmine';
|
|
2
1
|
import { mock } from 'angular';
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import { mockHttpClient } from '../api/mock/jasmine';
|
|
4
|
+
import type { Application } from '../application/application.model';
|
|
5
5
|
import { ApplicationModelBuilder } from '../application/applicationModel.builder';
|
|
6
6
|
import { InfrastructureCaches } from '../cache';
|
|
7
|
-
import { ISecurityGroup } from '../domain';
|
|
8
|
-
import {
|
|
7
|
+
import type { ISecurityGroup } from '../domain';
|
|
8
|
+
import type {
|
|
9
9
|
ISecurityGroupDetail,
|
|
10
|
-
SECURITY_GROUP_READER,
|
|
11
|
-
SecurityGroupReader,
|
|
12
10
|
ISecurityGroupsByAccountSourceData,
|
|
11
|
+
SecurityGroupReader,
|
|
13
12
|
} from './securityGroupReader.service';
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from './securityGroupTransformer.service';
|
|
13
|
+
import { SECURITY_GROUP_READER } from './securityGroupReader.service';
|
|
14
|
+
import type { SecurityGroupTransformerService } from './securityGroupTransformer.service';
|
|
15
|
+
import { SECURITY_GROUP_TRANSFORMER_SERVICE } from './securityGroupTransformer.service';
|
|
18
16
|
|
|
19
17
|
describe('Service: securityGroupReader', function () {
|
|
20
18
|
let $q: ng.IQService, $scope: ng.IRootScopeService, reader: SecurityGroupReader;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { IComponentControllerService
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import type { IComponentControllerService } from 'angular';
|
|
2
|
+
import { mock } from 'angular';
|
|
3
|
+
|
|
4
|
+
import type { Application } from '../../../application';
|
|
5
|
+
import { ApplicationModelBuilder } from '../../../application';
|
|
6
|
+
import type { DeployInitializerController } from './deployInitializer.component';
|
|
7
|
+
import { DEPLOY_INITIALIZER_COMPONENT } from './deployInitializer.component';
|
|
4
8
|
|
|
5
9
|
describe('Component: deployInitializer', () => {
|
|
6
10
|
let ctrl: DeployInitializerController, $componentController: IComponentControllerService, application: Application;
|
|
@@ -54,7 +54,6 @@ class V2InstanceArchetypeSelectorController implements IComponentController {
|
|
|
54
54
|
$scope.selectedInstanceProfile = null;
|
|
55
55
|
}
|
|
56
56
|
this.command.viewState.instanceProfile = type;
|
|
57
|
-
this.onProfileChanged && this.onProfileChanged(type);
|
|
58
57
|
$scope.instanceProfiles.forEach((profile: IInstanceTypeCategory) => {
|
|
59
58
|
if (profile.type === type) {
|
|
60
59
|
$scope.selectedInstanceProfile = profile;
|
|
@@ -69,6 +68,7 @@ class V2InstanceArchetypeSelectorController implements IComponentController {
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
});
|
|
71
|
+
this.onProfileChanged && this.onProfileChanged(type);
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
private updateInstanceType = () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IScalingEventSummary } from './ScalingActivitiesModal';
|
|
2
|
+
import { groupScalingActivities } from './ScalingActivitiesModal';
|
|
2
3
|
|
|
3
4
|
describe('Group Scaling Activities', () => {
|
|
4
5
|
it('groups activities by cause, parsing availability zone from details, sorted by start date, newest first', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Application } from '../../application/application.model';
|
|
2
2
|
import { ApplicationModelBuilder } from '../../application/applicationModel.builder';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { IConfirmationModalParams } from '../../confirmationModal/confirmationModal.service';
|
|
4
|
+
import type { IServerGroup } from '../../domain';
|
|
5
|
+
import { ServerGroupWarningMessageService } from './serverGroupWarningMessage.service';
|
|
6
6
|
|
|
7
7
|
describe('ServerGroupWarningMessageService', () => {
|
|
8
8
|
let app: Application, serverGroup: IServerGroup;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { mockHttpClient } from '../api/mock/jasmine';
|
|
2
1
|
import { mock, noop } from 'angular';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
IServerGroupCommand,
|
|
7
|
-
IServerGroupCommandViewState,
|
|
8
|
-
} from './configure/common/serverGroupCommandBuilder.service';
|
|
9
|
-
import { ITaskCommand } from '../task/taskExecutor';
|
|
2
|
+
|
|
3
|
+
import { mockHttpClient } from '../api/mock/jasmine';
|
|
4
|
+
import type { MockHttpClient } from '../api/mock/mockHttpClient';
|
|
10
5
|
import { Application } from '../application/application.model';
|
|
11
6
|
import { ApplicationModelBuilder } from '../application/applicationModel.builder';
|
|
12
7
|
import { ApplicationDataSourceRegistry } from '../application/service/ApplicationDataSourceRegistry';
|
|
8
|
+
import type {
|
|
9
|
+
IServerGroupCommand,
|
|
10
|
+
IServerGroupCommandViewState,
|
|
11
|
+
} from './configure/common/serverGroupCommandBuilder.service';
|
|
12
|
+
import type { ServerGroupWriter } from './serverGroupWriter.service';
|
|
13
|
+
import { SERVER_GROUP_WRITER } from './serverGroupWriter.service';
|
|
14
|
+
import type { ITaskCommand } from '../task/taskExecutor';
|
|
13
15
|
|
|
14
16
|
interface IApplicationTask {
|
|
15
17
|
refresh: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ISlackChannel } from './SlackReader';
|
|
2
|
+
import { SlackReader } from './SlackReader';
|
|
1
3
|
import { mockHttpClient } from '../api/mock/jasmine';
|
|
2
|
-
import { ISlackChannel, SlackReader } from './SlackReader';
|
|
3
4
|
|
|
4
5
|
const mockSlackChannels: ISlackChannel[] = [
|
|
5
6
|
{
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mock
|
|
1
|
+
import type { IRootScopeService, IScope } from 'angular';
|
|
2
|
+
import { mock } from 'angular';
|
|
3
3
|
|
|
4
|
+
import { mockHttpClient } from '../api/mock/jasmine';
|
|
5
|
+
import type { ISubnet } from '../domain';
|
|
4
6
|
import { SubnetReader } from './subnet.read.service';
|
|
5
|
-
import { ISubnet } from '../domain';
|
|
6
7
|
|
|
7
8
|
describe('SubnetReader', function () {
|
|
8
9
|
let $scope: IScope;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { mockHttpClient } from '../../api/mock/jasmine';
|
|
2
1
|
import { mock } from 'angular';
|
|
3
|
-
import { IModalServiceInstance } from 'angular-ui-bootstrap';
|
|
2
|
+
import type { IModalServiceInstance } from 'angular-ui-bootstrap';
|
|
4
3
|
import { $q, $timeout } from 'ngimport';
|
|
5
|
-
import Spy = jasmine.Spy;
|
|
6
4
|
|
|
7
|
-
import { ITask } from '../../domain';
|
|
8
5
|
import { TaskMonitor } from './TaskMonitor';
|
|
9
|
-
import {
|
|
6
|
+
import { mockHttpClient } from '../../api/mock/jasmine';
|
|
10
7
|
import { ApplicationModelBuilder } from '../../application/applicationModel.builder';
|
|
8
|
+
import type { ITask } from '../../domain';
|
|
9
|
+
import { OrchestratedItemTransformer } from '../../orchestratedItem/orchestratedItem.transformer';
|
|
10
|
+
|
|
11
|
+
import Spy = jasmine.Spy;
|
|
11
12
|
|
|
12
13
|
describe('TaskMonitor', () => {
|
|
13
14
|
let $scope: ng.IScope;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IQService } from 'angular';
|
|
2
|
+
import { mock } from 'angular';
|
|
2
3
|
|
|
3
|
-
import { Application } from '../application/application.model';
|
|
4
|
+
import type { Application } from '../application/application.model';
|
|
4
5
|
import { ApplicationModelBuilder } from '../application/applicationModel.builder';
|
|
5
6
|
import { ApplicationDataSourceRegistry } from '../application/service/ApplicationDataSourceRegistry';
|
|
6
7
|
import { TaskReader } from './task.read.service';
|
|
@@ -79,8 +80,8 @@ describe('Task Data Source', function () {
|
|
|
79
80
|
|
|
80
81
|
it('sets appropriate flags when task reload fails; subscriber is responsible for error checking', function () {
|
|
81
82
|
spyOn(TaskReader, 'getTasks').and.callFake(() => $q.reject(null));
|
|
82
|
-
let errorsHandled = 0
|
|
83
|
-
|
|
83
|
+
let errorsHandled = 0;
|
|
84
|
+
let successesHandled = 0;
|
|
84
85
|
configureApplication();
|
|
85
86
|
application.getDataSource('tasks').onRefresh(
|
|
86
87
|
$scope,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { ITimeoutService } from 'angular';
|
|
2
|
+
import { mock } from 'angular';
|
|
3
|
+
|
|
1
4
|
import { mockHttpClient } from '../api/mock/jasmine';
|
|
2
|
-
import { mock, ITimeoutService } from 'angular';
|
|
3
5
|
import { TaskWriter } from './task.write.service';
|
|
4
6
|
|
|
5
7
|
describe('Service: TaskWriter', () => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { mount } from 'enzyme';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { CopyToClipboard } from './CopyToClipboard';
|
|
5
|
+
import { logger } from '../Logger';
|
|
5
6
|
|
|
6
7
|
describe('<CopyToClipboard />', () => {
|
|
7
8
|
beforeEach(() => spyOn(logger, 'log'));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { IFilterService
|
|
1
|
+
import type { IFilterService } from 'angular';
|
|
2
|
+
import { mock } from 'angular';
|
|
3
|
+
import { DateTime, Settings } from 'luxon';
|
|
2
4
|
|
|
3
5
|
import { SETTINGS } from '../config/settings';
|
|
4
6
|
import { duration, timeDiffToString } from './timeFormatters';
|
|
5
|
-
import { DateTime, Settings } from 'luxon';
|
|
6
7
|
|
|
7
8
|
describe('Filter: timeFormatters', function () {
|
|
8
9
|
beforeEach(function () {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ApplicationReader } from '../application';
|
|
2
|
-
import { IValidator } from '../presentation';
|
|
3
1
|
import { mount } from 'enzyme';
|
|
4
2
|
import React from 'react';
|
|
3
|
+
|
|
5
4
|
import { ApplicationsPickerInput } from './ApplicationsPickerInput';
|
|
5
|
+
import { ApplicationReader } from '../application';
|
|
6
|
+
import type { IValidator } from '../presentation';
|
|
6
7
|
|
|
7
8
|
describe('ApplicationsPickerInput', () => {
|
|
8
9
|
function listApplicationsSpy() {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SpelAutocompleteService } from './SpelAutocompleteService';
|
|
2
1
|
import { $q } from 'ngimport';
|
|
3
|
-
|
|
4
|
-
import {
|
|
2
|
+
|
|
3
|
+
import { SpelAutocompleteService } from './SpelAutocompleteService';
|
|
4
|
+
import type { IExecution, IPipeline, IStage } from '../../domain';
|
|
5
|
+
import type { ExecutionService } from '../../pipeline';
|
|
5
6
|
|
|
6
7
|
describe('SpelAutocompleteService', () => {
|
|
7
8
|
describe('addPipelineInfo', () => {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ReactWrapper } from 'enzyme';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import { mount, ReactWrapper } from 'enzyme';
|
|
3
4
|
|
|
4
5
|
import { Key } from '../Keys';
|
|
5
|
-
import {
|
|
6
|
+
import type { ITag, ITagProps } from './Tag';
|
|
7
|
+
import { DeleteType, Tag } from './Tag';
|
|
6
8
|
|
|
7
9
|
describe('<Tag/>', () => {
|
|
8
10
|
let component: ReactWrapper<ITagProps, any>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ReactWrapper } from 'enzyme';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import { ReactWrapper, mount } from 'enzyme';
|
|
3
4
|
|
|
4
|
-
import { ITag } from './Tag';
|
|
5
|
-
import { ITagListProps
|
|
5
|
+
import type { ITag } from './Tag';
|
|
6
|
+
import type { ITagListProps } from './TagList';
|
|
7
|
+
import { TagList } from './TagList';
|
|
6
8
|
|
|
7
9
|
describe('<TagList/>', () => {
|
|
8
10
|
let component: ReactWrapper<ITagListProps, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { QueryArtifact, QueryArtifactVersion } from '../types';
|
|
3
|
-
export interface IPendingVersionsProps {
|
|
4
|
-
artifact: QueryArtifact;
|
|
5
|
-
pendingVersions?: QueryArtifactVersion[];
|
|
6
|
-
}
|
|
7
|
-
export declare const PendingVersions: ({ artifact, pendingVersions }: IPendingVersionsProps) => JSX.Element;
|