From 0d56abebbb21148929c6cfd414cfbb266f188027 Mon Sep 17 00:00:00 2001
From: Max Frederiksen <maxfrederiksen@Maxs-MacBook-Air.local>
Date: Tue, 7 Jan 2025 15:57:38 +0100
Subject: [PATCH] Remove null values from /mocks/fixtures

---
 src/mocks/fixtures/Hosts.json            |  3 ---
 src/mocks/fixtures/Jobs.json             |  4 ----
 src/mocks/fixtures/PagedIOCResponse.json | 28 ++++++++----------------
 3 files changed, 9 insertions(+), 26 deletions(-)

diff --git a/src/mocks/fixtures/Hosts.json b/src/mocks/fixtures/Hosts.json
index bd0480f0..94f2eceb 100644
--- a/src/mocks/fixtures/Hosts.json
+++ b/src/mocks/fixtures/Hosts.json
@@ -64,7 +64,6 @@
       "fqdn": "mebt-llrf1-mtca-ioc.tn.esss.lu.se",
       "name": "mebt-llrf1-mtca-ioc",
       "scope": "TechnicalNetwork",
-      "description": null,
       "network": "ChannelAccess-ACC",
       "deviceType": "MTCA-AMC",
       "hostId": "NDk5MV90cnVl",
@@ -75,7 +74,6 @@
       "fqdn": "mebt-llrf2-mtca-ioc.tn.esss.lu.se",
       "name": "mebt-llrf2-mtca-ioc",
       "scope": "TechnicalNetwork",
-      "description": null,
       "network": "ChannelAccess-ACC",
       "deviceType": "MTCA-AMC",
       "hostId": "MjE5M19mYWxzZQ",
@@ -86,7 +84,6 @@
       "fqdn": "mebt-llrf3-mtca-ioc.tn.esss.lu.se",
       "name": "mebt-llrf3-mtca-ioc",
       "scope": "TechnicalNetwork",
-      "description": null,
       "network": "ChannelAccess-ACC",
       "deviceType": "MTCA-AMC",
       "hostId": "NTU4MF90cnVl",
diff --git a/src/mocks/fixtures/Jobs.json b/src/mocks/fixtures/Jobs.json
index fa0b3d12..a0316bc4 100644
--- a/src/mocks/fixtures/Jobs.json
+++ b/src/mocks/fixtures/Jobs.json
@@ -289,7 +289,6 @@
       ],
       "awxJobId": 7471,
       "jobUrl": "https://awx-lab-01.cslab.esss.lu.se/#/jobs/command/7471",
-      "alerts": null,
       "user_info": [
         {
           "fullName": "Test User",
@@ -384,7 +383,6 @@
       },
       "awxJobId": 7466,
       "jobUrl": "https://awx-lab-01.cslab.esss.lu.se/#/jobs/command/7466",
-      "alerts": null,
       "git_project_info": {
         "id": 5970,
         "name": "e3-ioc-test-02",
@@ -435,7 +433,6 @@
       },
       "awxJobId": 7450,
       "jobUrl": "https://awx-lab-01.cslab.esss.lu.se/#/jobs/command/7450",
-      "alerts": null,
       "git_project_info": {
         "id": 5970,
         "name": "e3-ioc-test-02",
@@ -942,7 +939,6 @@
       },
       "awxJobId": 7390,
       "jobUrl": "https://awx-lab-01.cslab.esss.lu.se/#/jobs/command/7390",
-      "alerts": null,
       "user_info": [
         {
           "fullName": "Test User",
diff --git a/src/mocks/fixtures/PagedIOCResponse.json b/src/mocks/fixtures/PagedIOCResponse.json
index 747d3d11..0cc4b0b7 100644
--- a/src/mocks/fixtures/PagedIOCResponse.json
+++ b/src/mocks/fixtures/PagedIOCResponse.json
@@ -17,8 +17,7 @@
           "network": "ChannelAccess-FEB",
           "netBoxHostFromCache": true
         },
-        "sourceVersion": "correct_ioc",
-        "sourceVersionShort": null
+        "sourceVersion": "correct_ioc"
       }
     },
     {
@@ -38,7 +37,6 @@
           "externalIdValid": true
         },
         "sourceVersion": "correct_ioc",
-        "sourceVersionShort": null,
         "sourceUrl": "https://www.google.com"
       }
     },
@@ -47,8 +45,7 @@
       "namingName": "CCCE:MOCK3",
       "createdBy": "mock user 3",
       "gitProjectId": 5971,
-      "deployedWithOldPlaybook": false,
-      "activeDeployment": null
+      "deployedWithOldPlaybook": false
     },
     {
       "id": 39,
@@ -63,8 +60,7 @@
           "network": "CSLab-GeneralLab",
           "netBoxHostFromCache": true
         },
-        "sourceVersion": "alias",
-        "sourceVersionShort": null
+        "sourceVersion": "alias"
       }
     },
     {
@@ -80,8 +76,7 @@
           "network": "CSLab-GeneralLab",
           "netBoxHostFromCache": true
         },
-        "sourceVersion": "1.0.0",
-        "sourceVersionShort": null
+        "sourceVersion": "1.0.0"
       }
     },
     {
@@ -89,40 +84,35 @@
       "namingName": "CCCE:MOCK-TEST",
       "createdBy": "mock user",
       "gitProjectId": 12733,
-      "deployedWithOldPlaybook": true,
-      "activeDeployment": null
+      "deployedWithOldPlaybook": true
     },
     {
       "id": 49,
       "namingName": "CCCE:MOCK6",
       "createdBy": "mock user 6",
       "gitProjectId": 12972,
-      "deployedWithOldPlaybook": true,
-      "activeDeployment": null
+      "deployedWithOldPlaybook": true
     },
     {
       "id": 41,
       "namingName": "CCCE:MOCK7",
       "createdBy": "mock user 7",
       "gitProjectId": 12734,
-      "deployedWithOldPlaybook": true,
-      "activeDeployment": null
+      "deployedWithOldPlaybook": true
     },
     {
       "id": 42,
       "namingName": "CCCE:MOCK8",
       "createdBy": "mock user 8",
       "gitProjectId": 12735,
-      "deployedWithOldPlaybook": true,
-      "activeDeployment": null
+      "deployedWithOldPlaybook": true
     },
     {
       "id": 43,
       "namingName": "CCCE:MOCK9",
       "createdBy": "mock user 9",
       "gitProjectId": 12736,
-      "deployedWithOldPlaybook": true,
-      "activeDeployment": null
+      "deployedWithOldPlaybook": true
     }
   ]
 }
-- 
GitLab