From 64673eaeba44b6ddb3b43123b0298e8b12083d96 Mon Sep 17 00:00:00 2001 From: Nikita Nek Dudnik Date: Thu, 4 Jun 2020 14:03:54 +0200 Subject: [PATCH] fix: mock data script --- plugins/catalog-backend/package.json | 2 +- plugins/catalog-backend/scripts/mock-db | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/catalog-backend/package.json b/plugins/catalog-backend/package.json index 436afbfcd2..253959c61b 100644 --- a/plugins/catalog-backend/package.json +++ b/plugins/catalog-backend/package.json @@ -13,7 +13,7 @@ "prepack": "backstage-cli prepack", "postpack": "backstage-cli postpack", "clean": "backstage-cli clean", - "mock-db": "sh ./scripts/mock-db" + "mock-data": "./scripts/mock-data" }, "dependencies": { "@backstage/backend-common": "^0.1.1-alpha.6", diff --git a/plugins/catalog-backend/scripts/mock-db b/plugins/catalog-backend/scripts/mock-db index af5de1cb1b..7edc8c422b 100644 --- a/plugins/catalog-backend/scripts/mock-db +++ b/plugins/catalog-backend/scripts/mock-db @@ -1,12 +1,9 @@ -curl --location --request POST 'localhost:3003/locations' \ ---header 'Content-Type: application/json' \ ---data-raw '{ - "type": "github", - "target": "https://github.com/spotify/backstage/blob/master/plugins/catalog-backend/fixtures/one_component.yaml" -}' -curl --location --request POST 'localhost:3003/locations' \ +#!/usr/bin/env sh +curl \ +--location \ +--request POST 'localhost:3003/locations' \ --header 'Content-Type: application/json' \ --data-raw '{ "type": "github", "target": "https://github.com/spotify/backstage/blob/master/plugins/catalog-backend/fixtures/two_components.yaml" -}' \ No newline at end of file +}'