Merge pull request #5601 from backstage/mob/dryrun

Catalog/next: Add support for dryRun
This commit is contained in:
Johan Haals
2021-05-11 11:36:26 +02:00
committed by GitHub
5 changed files with 213 additions and 32 deletions
@@ -134,6 +134,7 @@ export class CatalogClient implements CatalogApi {
throw new Error(`Location wasn't added: ${target}`);
}
// TODO(jhaals): This will throw using the experimental catalog since all discovered entities are deferred.
if (entities.length === 0) {
throw new Error(
`Location was added but has no entities specified yet: ${target}`,