From dba03616f4c4e9920cbc3a658cc0db11d8025856 Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Mon, 29 Aug 2022 21:17:26 -0700 Subject: [PATCH] Fix unit tests. --- .../src/screens/InstanceGroup/Instances/InstanceList.test.js | 3 +++ .../screens/InstanceGroup/Instances/InstanceListItem.test.js | 2 ++ .../src/screens/Instances/InstanceList/InstanceList.test.js | 4 ++++ .../screens/Instances/InstanceList/InstanceListItem.test.js | 2 ++ 4 files changed, 11 insertions(+) diff --git a/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.test.js b/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.test.js index 486d20bc75..5e2c0b10c0 100644 --- a/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.test.js +++ b/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.test.js @@ -42,6 +42,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'control', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, @@ -69,6 +70,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'hybrid', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, @@ -96,6 +98,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'execution', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, diff --git a/awx/ui/src/screens/InstanceGroup/Instances/InstanceListItem.test.js b/awx/ui/src/screens/InstanceGroup/Instances/InstanceListItem.test.js index 614e3ad9e0..334b6f07fe 100644 --- a/awx/ui/src/screens/InstanceGroup/Instances/InstanceListItem.test.js +++ b/awx/ui/src/screens/InstanceGroup/Instances/InstanceListItem.test.js @@ -44,6 +44,7 @@ const instance = [ enabled: true, managed_by_policy: true, node_type: 'hybrid', + node_state: 'ready', }, { id: 2, @@ -72,6 +73,7 @@ const instance = [ enabled: true, managed_by_policy: true, node_type: 'control', + node_state: 'ready', }, ]; diff --git a/awx/ui/src/screens/Instances/InstanceList/InstanceList.test.js b/awx/ui/src/screens/Instances/InstanceList/InstanceList.test.js index 835fbdc43c..4542287b07 100644 --- a/awx/ui/src/screens/Instances/InstanceList/InstanceList.test.js +++ b/awx/ui/src/screens/Instances/InstanceList/InstanceList.test.js @@ -33,6 +33,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'control', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, @@ -52,6 +53,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'hybrid', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, @@ -71,6 +73,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'execution', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, @@ -90,6 +93,7 @@ const instances = [ jobs_total: 68, cpu: 6, node_type: 'hop', + node_state: 'ready', memory: 2087469056, cpu_capacity: 24, mem_capacity: 1, diff --git a/awx/ui/src/screens/Instances/InstanceList/InstanceListItem.test.js b/awx/ui/src/screens/Instances/InstanceList/InstanceListItem.test.js index 10e8b2985a..7f5b8359b4 100644 --- a/awx/ui/src/screens/Instances/InstanceList/InstanceListItem.test.js +++ b/awx/ui/src/screens/Instances/InstanceList/InstanceListItem.test.js @@ -40,6 +40,7 @@ const instance = [ enabled: true, managed_by_policy: true, node_type: 'hybrid', + node_state: 'ready', }, { id: 2, @@ -64,6 +65,7 @@ const instance = [ enabled: true, managed_by_policy: true, node_type: 'hop', + node_state: 'ready', }, ];