chore(shorebird_cli): add delete app to end of integration test (#813)
Co-authored-by: Felix Angelov <felix@shorebird.dev>
This commit is contained in:
@@ -157,5 +157,35 @@ void main() {
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Delete the app to clean up after ourselves.
|
||||
final deleteAppResult = runCommand(
|
||||
'shorebird apps delete --app-id=${shorebirdYaml.appId} --force',
|
||||
workingDirectory: cwd,
|
||||
);
|
||||
expect(deleteAppResult.stderr, isEmpty);
|
||||
expect(deleteAppResult.exitCode, equals(0));
|
||||
expect(
|
||||
deleteAppResult.stdout,
|
||||
contains('Deleted app: ${shorebirdYaml.appId}'),
|
||||
);
|
||||
|
||||
// Verify that the app was deleted.
|
||||
final deleteAppAppsListResult = runCommand(
|
||||
'shorebird apps list',
|
||||
workingDirectory: cwd,
|
||||
);
|
||||
expect(deleteAppAppsListResult.stderr, isEmpty);
|
||||
expect(deleteAppAppsListResult.exitCode, equals(0));
|
||||
expect(
|
||||
(deleteAppAppsListResult.stdout as String).split('\n'),
|
||||
isNot(
|
||||
anyElement(
|
||||
matches(
|
||||
'^.+$testAppName.+${shorebirdYaml.appId}.+\$',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user