diff --git a/cmd/integrationArtifactTriggerIntegrationTest_generated.go b/cmd/integrationArtifactTriggerIntegrationTest_generated.go index 727d586d1..117a8580a 100644 --- a/cmd/integrationArtifactTriggerIntegrationTest_generated.go +++ b/cmd/integrationArtifactTriggerIntegrationTest_generated.go @@ -17,7 +17,6 @@ import ( type integrationArtifactTriggerIntegrationTestOptions struct { IFlowServiceKey string `json:"iFlowServiceKey,omitempty"` IntegrationFlowID string `json:"integrationFlowId,omitempty"` - Platform string `json:"platform,omitempty"` IFlowServiceEndpointURL string `json:"iFlowServiceEndpointUrl,omitempty"` ContentType string `json:"contentType,omitempty"` MessageBodyPath string `json:"messageBodyPath,omitempty"` @@ -99,7 +98,6 @@ func IntegrationArtifactTriggerIntegrationTestCommand() *cobra.Command { func addIntegrationArtifactTriggerIntegrationTestFlags(cmd *cobra.Command, stepConfig *integrationArtifactTriggerIntegrationTestOptions) { cmd.Flags().StringVar(&stepConfig.IFlowServiceKey, "iFlowServiceKey", os.Getenv("PIPER_iFlowServiceKey"), "User to authenticate to the SAP Cloud Platform Integration Service") cmd.Flags().StringVar(&stepConfig.IntegrationFlowID, "integrationFlowId", os.Getenv("PIPER_integrationFlowId"), "Specifies the ID of the Integration Flow artifact") - cmd.Flags().StringVar(&stepConfig.Platform, "platform", `cf`, "Specifies the running platform of the SAP Cloud platform integraion service") cmd.Flags().StringVar(&stepConfig.IFlowServiceEndpointURL, "iFlowServiceEndpointUrl", os.Getenv("PIPER_iFlowServiceEndpointUrl"), "Specifies the URL endpoint of the iFlow. Please provide in the format `://:`. Supported protocols are `http` and `https`.") cmd.Flags().StringVar(&stepConfig.ContentType, "contentType", os.Getenv("PIPER_contentType"), "Specifies the content type of the file defined in messageBodyPath e.g. application/json") cmd.Flags().StringVar(&stepConfig.MessageBodyPath, "messageBodyPath", os.Getenv("PIPER_messageBodyPath"), "Speficfies the relative file path to the message body.") @@ -147,15 +145,6 @@ func integrationArtifactTriggerIntegrationTestMetadata() config.StepData { Aliases: []config.Alias{}, Default: os.Getenv("PIPER_integrationFlowId"), }, - { - Name: "platform", - ResourceRef: []config.ResourceReference{}, - Scope: []string{"PARAMETERS", "STAGES", "STEPS"}, - Type: "string", - Mandatory: false, - Aliases: []config.Alias{}, - Default: `cf`, - }, { Name: "iFlowServiceEndpointUrl", ResourceRef: []config.ResourceReference{ diff --git a/cmd/integrationArtifactTriggerIntegrationTest_test.go b/cmd/integrationArtifactTriggerIntegrationTest_test.go index 30101f89e..f56db87ea 100644 --- a/cmd/integrationArtifactTriggerIntegrationTest_test.go +++ b/cmd/integrationArtifactTriggerIntegrationTest_test.go @@ -37,7 +37,6 @@ func TestRunIntegrationArtifactTriggerIntegrationTest(t *testing.T) { config := integrationArtifactTriggerIntegrationTestOptions{ IFlowServiceKey: iFlowServiceKey, IntegrationFlowID: "CPI_IFlow_Call_using_Cert", - Platform: "cf", MessageBodyPath: "/file.txt", ContentType: "", } @@ -66,7 +65,6 @@ func TestRunIntegrationArtifactTriggerIntegrationTest(t *testing.T) { config := integrationArtifactTriggerIntegrationTestOptions{ IFlowServiceKey: iFlowServiceKey, IntegrationFlowID: "CPI_IFlow_Call_using_Cert", - Platform: "cf", MessageBodyPath: "test.txt", ContentType: "txt", } @@ -98,7 +96,6 @@ func TestRunIntegrationArtifactTriggerIntegrationTest(t *testing.T) { config := integrationArtifactTriggerIntegrationTestOptions{ IFlowServiceKey: iFlowServiceKey, IntegrationFlowID: "CPI_IFlow_Call_using_Cert", - Platform: "cf", MessageBodyPath: filepath.Join(dir, "test.txt"), ContentType: "txt", } @@ -130,7 +127,6 @@ func TestRunIntegrationArtifactTriggerIntegrationTest(t *testing.T) { config := integrationArtifactTriggerIntegrationTestOptions{ IFlowServiceKey: iFlowServiceKey, IntegrationFlowID: "CPI_IFlow_Call_using_Cert", - Platform: "cf", MessageBodyPath: "", ContentType: "txt", } @@ -166,7 +162,6 @@ func TestRunIntegrationArtifactTriggerIntegrationTest(t *testing.T) { config := integrationArtifactTriggerIntegrationTestOptions{ IFlowServiceKey: iFlowServiceKey, IntegrationFlowID: "CPI_IFlow_Call_using_Cert", - Platform: "cf", MessageBodyPath: filepath.Join(dir, "test.txt"), ContentType: "txt", } diff --git a/resources/metadata/integrationArtifactTriggerIntegrationTest.yaml b/resources/metadata/integrationArtifactTriggerIntegrationTest.yaml index 94dc92020..dce6badc0 100644 --- a/resources/metadata/integrationArtifactTriggerIntegrationTest.yaml +++ b/resources/metadata/integrationArtifactTriggerIntegrationTest.yaml @@ -31,18 +31,6 @@ spec: - STEPS - GENERAL mandatory: true - - name: platform - type: string - description: Specifies the running platform of the SAP Cloud platform integraion service - scope: - - PARAMETERS - - STAGES - - STEPS - mandatory: false - default: cf - possibleValues: - - cf - - neo - name: iFlowServiceEndpointUrl resourceRef: - name: commonPipelineEnvironment