From 6a817fbd4a6a68412fae9c4e0f0d2e02fe282167 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 12 Jul 2022 17:58:25 +0200 Subject: [PATCH] chore: reset fixture Signed-off-by: blam Signed-off-by: blam --- .../fixtures/test-v1beta3/template.yaml | 96 ++++--------------- 1 file changed, 21 insertions(+), 75 deletions(-) diff --git a/plugins/scaffolder-backend/fixtures/test-v1beta3/template.yaml b/plugins/scaffolder-backend/fixtures/test-v1beta3/template.yaml index c56e5a0d79..10d4a39ff7 100644 --- a/plugins/scaffolder-backend/fixtures/test-v1beta3/template.yaml +++ b/plugins/scaffolder-backend/fixtures/test-v1beta3/template.yaml @@ -8,82 +8,28 @@ spec: type: website owner: team-a parameters: - - name: Repositories - description: Some repo + - name: Enter some stuff + description: Enter some stuff properties: - appRepoUrl: + inputString: type: string - title: First Repository - ui:field: RepoUrlPicker - serviceRepoUrl: - type: string - title: First Repository - ui:field: RepoUrlPicker + title: string input test + inputObject: + type: object + title: object input test + description: a little nested thing never hurt anyone right? + properties: + first: + type: string + title: first + second: + type: number + title: second steps: - # First get the app template folder, and template into ./app - - id: app_template - name: Fetch Skeleton + Template - action: fetch:template + - id: debug + if: ${{ true === true }} + name: Debug + action: debug:log input: - url: ./skeleton - targetPath: ./app - copyWithoutRender: - - .github/* - values: - component_id: ${{ parameters.component_id }} - description: ${{ parameters.description }} - services_app_port: ${{ parameters.services_app_port }} - owner: ${{ parameters.owner }} - destination: ${{ parameters.appRepoUrl | parseRepoUrl }} - - # First then service into ./service - - id: app_service_config_template - name: Fetch App Servcie Config. Skeleton + Template - action: fetch:template - input: - url: https://github.com/my-org/helm-values-template - targetPath: ./service - copyWithoutRender: - - .github/* - values: - component_id: ${{ parameters.component_id }} - description: ${{ parameters.description }} - services_app_port: ${{ parameters.services_app_port }} - owner: ${{ parameters.owner }} - destination: ${{ parameters.serviceRepoUrl | parseRepoUrl }} - - # Publish the app - - id: publish_app - name: Publish App - action: publish:github - input: - sourcePath: ./app - allowedHosts: ['github.com'] - description: This is ${{ parameters.component_id }} - repoUrl: ${{ parameters.appRepoUrl }} - - # Publish the service - - id: publish_service - name: Publish Service - action: publish:github - input: - sourcePath: ./service - allowedHosts: ['github.com'] - description: This is ${{ parameters.component_id }} - repoUrl: ${{ parameters.serviceRepoUrl }} - - # Register the app - - id: register_app - name: Register Application - action: catalog:register - input: - repoContentsUrl: ${{ steps.publish_app.output.repoContentsUrl }} - catalogInfoPath: '/catalog-info.yaml' - - # Register the service - - id: register_service - name: Register Application - action: catalog:register - input: - repoContentsUrl: ${{ steps.publish_service.output.repoContentsUrl }} - catalogInfoPath: '/catalog-info.yaml' + message: ${{ parameters.inputString }} + extra: ${{ parameters.inputObject }}