Skip to content
Merged
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
8 changes: 4 additions & 4 deletions tests/automation.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
DestroyResult,
LocalProgramArgs,
InlineProgramArgs,
LocalWorkspace,
OutputMap
} from '@pulumi/pulumi/automation';
import { createSpinner } from 'nanospinner';

export async function deploy(args: LocalProgramArgs): Promise<OutputMap> {
export async function deploy(args: InlineProgramArgs): Promise<OutputMap> {
const spinner = createSpinner('Deploying stack...').start();
const stack = await LocalWorkspace.createOrSelectStack(args);
await stack.setConfig('aws:region', { value: 'us-east-2' });
Expand All @@ -16,7 +16,7 @@ export async function deploy(args: LocalProgramArgs): Promise<OutputMap> {
return up.outputs;
}

export async function destroy(args: LocalProgramArgs): Promise<DestroyResult> {
export async function destroy(args: InlineProgramArgs): Promise<DestroyResult> {
const spinner = createSpinner('Destroying stack...').start();
const stack = await LocalWorkspace.createOrSelectStack(args);
const result = await stack.destroy();
Expand All @@ -25,7 +25,7 @@ export async function destroy(args: LocalProgramArgs): Promise<DestroyResult> {
return result;
}

export async function getOutputs(args: LocalProgramArgs): Promise<OutputMap> {
export async function getOutputs(args: InlineProgramArgs): Promise<OutputMap> {
const stack = await LocalWorkspace.createOrSelectStack(args);

return stack.outputs();
Expand Down
7 changes: 4 additions & 3 deletions tests/ecs-service/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, before, after } from 'node:test';
import * as assert from 'node:assert';
import { LocalProgramArgs } from '@pulumi/pulumi/automation';
import { InlineProgramArgs } from '@pulumi/pulumi/automation';
import {
ECSClient,
ListTasksCommand,
Expand All @@ -21,9 +21,10 @@ import { testEcsServiceWithStorage } from './persistent-storage.test';
import { testEcsServiceWithServiceDiscovery } from './service-discovery.test';
import { testEcsServiceWithAutoscaling } from './autoscaling.test';

const programArgs: LocalProgramArgs = {
const programArgs: InlineProgramArgs = {
stackName: 'dev',
workDir: path.join(__dirname, 'infrastructure')
projectName: 'icb-test-ecs-service',
program: () => import('./infrastructure')
};

describe('EcsService component deployment', () => {
Expand Down
2 changes: 0 additions & 2 deletions tests/ecs-service/infrastructure/Pulumi.dev.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/ecs-service/infrastructure/Pulumi.yaml

This file was deleted.

Loading