From 261a4c8d55d415530e2d982e494a56858a7b87f6 Mon Sep 17 00:00:00 2001 From: GnsP Date: Tue, 26 Nov 2024 13:30:15 +0530 Subject: [PATCH] downgrade test fixture pipeline to cherrypick the test to lower versions --- src/e2e-test/features/pipeline.edit.feature | 6 +++--- ...pipeline-6-10-1.json => test-orphan-pipeline-6-7-4.json} | 6 +++--- .../java/io/cdap/cdap/ui/stepsdesign/CommonSteps.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/e2e-test/fixtures/{test-orphan-pipeline-6-10-1.json => test-orphan-pipeline-6-7-4.json} (94%) diff --git a/src/e2e-test/features/pipeline.edit.feature b/src/e2e-test/features/pipeline.edit.feature index 4d38135d07a..89726eccfd7 100644 --- a/src/e2e-test/features/pipeline.edit.feature +++ b/src/e2e-test/features/pipeline.edit.feature @@ -83,9 +83,9 @@ Feature: Pipeline Edit When Open HttpExecutor Page Then Create an orphan pipeline draft When Open pipeline draft list page - Then Go to pipeline "test-orphan-pipeline-6-10-1" draft + Then Go to pipeline "test-orphan-pipeline-6-7-4" draft Then Click on FixAll Button Then Verify Studio TopPanel is visible When Open pipeline draft list page - Then Delete Draft Pipeline "test-orphan-pipeline-6-10-1" - + Then Delete Draft Pipeline "test-orphan-pipeline-6-7-4" + diff --git a/src/e2e-test/fixtures/test-orphan-pipeline-6-10-1.json b/src/e2e-test/fixtures/test-orphan-pipeline-6-7-4.json similarity index 94% rename from src/e2e-test/fixtures/test-orphan-pipeline-6-10-1.json rename to src/e2e-test/fixtures/test-orphan-pipeline-6-7-4.json index 3a1e12ba271..825bfe837e4 100644 --- a/src/e2e-test/fixtures/test-orphan-pipeline-6-10-1.json +++ b/src/e2e-test/fixtures/test-orphan-pipeline-6-7-4.json @@ -1,12 +1,12 @@ { "artifact": { "name": "cdap-data-pipeline", - "version": "6.10.1", + "version": "6.7.4", "scope": "SYSTEM", "label": "Data Pipeline - Batch" }, "description": "", - "name": "test-orphan-pipeline-6-10-1", + "name": "test-orphan-pipeline-6-7-4", "change": { "description": "" }, @@ -35,7 +35,7 @@ "label": "File", "artifact": { "name": "core-plugins", - "version": "2.12.1", + "version": "2.9.3", "scope": "SYSTEM" }, "properties": { diff --git a/src/e2e-test/java/io/cdap/cdap/ui/stepsdesign/CommonSteps.java b/src/e2e-test/java/io/cdap/cdap/ui/stepsdesign/CommonSteps.java index bdc353e9482..dd7ca9267c5 100644 --- a/src/e2e-test/java/io/cdap/cdap/ui/stepsdesign/CommonSteps.java +++ b/src/e2e-test/java/io/cdap/cdap/ui/stepsdesign/CommonSteps.java @@ -333,7 +333,7 @@ public void createOrphanPipelineDraft() throws IOException { ElementHelper.sendKeys(requestPathInput, saveDraftPath); WebElement requestBodyInput = Helper.locateElementByTestId("request-body"); - String requestBody = Helper.readPipelineFixtureFile("test-orphan-pipeline-6-10-1.json"); + String requestBody = Helper.readPipelineFixtureFile("test-orphan-pipeline-6-7-4.json"); ElementHelper.sendKeys(requestBodyInput, requestBody); WebElement callApiButton = Helper.locateElementByTestId("send-btn");