From 0fae93600228880419972f858343bb0e6dae4f26 Mon Sep 17 00:00:00 2001
From: Satyajit Bulage <satyajit.bulage@suse.com>
Date: Tue, 2 Jul 2024 17:15:35 +0530
Subject: [PATCH] Restrict test to 2.7 and 2.8 for now

Signed-off-by: Satyajit Bulage <satyajit.bulage@suse.com>
---
 tests/cypress/e2e/unit_tests/p1_fleet.spec.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/cypress/e2e/unit_tests/p1_fleet.spec.ts b/tests/cypress/e2e/unit_tests/p1_fleet.spec.ts
index 60789314..767a5ab7 100644
--- a/tests/cypress/e2e/unit_tests/p1_fleet.spec.ts
+++ b/tests/cypress/e2e/unit_tests/p1_fleet.spec.ts
@@ -383,6 +383,9 @@ if (/\/2\.9/.test(Cypress.env('rancher_version'))) {
     )  
   });
 
+// Perform this test only if rancher_version does not contain "/2.9"
+// Re-iterate this test cases once 2.9.0 released.
+if (!/\/2\.7/.test(Cypress.env('rancher_version'))) {
   describe('Test Self-Healing on IMMUTABLE resources when correctDrift is enabled', { tags: '@p1'}, () => {
     const correctDriftTestData: testData[] = [
       { qase_id: 80,
@@ -456,3 +459,4 @@ if (/\/2\.9/.test(Cypress.env('rancher_version'))) {
       }
     )
   });
+}
\ No newline at end of file