From 641544aa55e643404ff075507ad936d2703e2311 Mon Sep 17 00:00:00 2001 From: Romain FIHUE Date: Wed, 3 Jul 2024 11:09:19 +0200 Subject: [PATCH] Remove tests that cannot run without slurm --- cpus_test.go | 4 --- queue_test.go | 4 --- scheduler_test.go | 4 --- test_data/squeue.txt | 84 ++++++++++++++++++++++---------------------- 4 files changed, 42 insertions(+), 54 deletions(-) diff --git a/cpus_test.go b/cpus_test.go index 61b0ea2..1fdc332 100644 --- a/cpus_test.go +++ b/cpus_test.go @@ -30,7 +30,3 @@ func TestCPUsMetrics(t *testing.T) { data, err := ioutil.ReadAll(file) t.Logf("%+v", ParseCPUsMetrics(data)) } - -func TestCPUssGetMetrics(t *testing.T) { - t.Logf("%+v", CPUsGetMetrics()) -} diff --git a/queue_test.go b/queue_test.go index a9ab379..6e1bbf3 100644 --- a/queue_test.go +++ b/queue_test.go @@ -30,7 +30,3 @@ func TestParseQueueMetrics(t *testing.T) { data, err := ioutil.ReadAll(file) t.Logf("%+v", ParseQueueMetrics(data)) } - -func TestQueueGetMetrics(t *testing.T) { - t.Logf("%+v", QueueGetMetrics()) -} diff --git a/scheduler_test.go b/scheduler_test.go index 4a63c72..a4555c7 100644 --- a/scheduler_test.go +++ b/scheduler_test.go @@ -30,7 +30,3 @@ func TestSchedulerMetrics(t *testing.T) { data, err := ioutil.ReadAll(file) t.Logf("%+v", ParseSchedulerMetrics(data)) } - -func TestSchedulerGetMetrics(t *testing.T) { - t.Logf("%+v", SchedulerGetMetrics()) -} diff --git a/test_data/squeue.txt b/test_data/squeue.txt index 5f788ca..c2cb90a 100644 --- a/test_data/squeue.txt +++ b/test_data/squeue.txt @@ -1,42 +1,42 @@ -15451729,RUNNING -15452255,RUNNING -15452256,RUNNING -15452444,RUNNING -15451731,RUNNING -15451730,RUNNING -15451727,RUNNING -15452445,RUNNING -15452434,RUNNING -15452435,RUNNING -15452259,RUNNING -15451726,RUNNING -15451725,RUNNING -15306588,RUNNING -15452446,RUNNING -15452436,RUNNING -15452437,RUNNING -15452431,CONFIGURING -15452432,RUNNING -15452260,RUNNING -15452448,PREEMPTED -15452441,NODE_FAIL -15452442,COMPLETED -15452443,RUNNING -15452427,RUNNING -15452428,COMPLETING -15452429,RUNNING -15452424,COMPLETING -15452425,RUNNING -15452426,FAILED -15452422,RUNNING -15452423,PENDING -15452420,PENDING -15452421,PENDING -15452394,PENDING -15452401,RUNNING -15452258,TIMEOUT -15452468,RUNNING -15452466,SUSPENDED -15452465,CANCELLED -15452451,RUNNING -15452452,RUNNING +15451729,RUNNING,12,,foo +15452255,RUNNING,12,,foo +15452256,RUNNING,12,,foo +15452444,RUNNING,12,,foo +15451731,RUNNING,12,,foo +15451730,RUNNING,12,,foo +15451727,RUNNING,12,,foo +15452445,RUNNING,12,,foo +15452434,RUNNING,12,,foo +15452435,RUNNING,12,,foo +15452259,RUNNING,12,,foo +15451726,RUNNING,12,,foo +15451725,RUNNING,12,,foo +15306588,RUNNING,12,,foo +15452446,RUNNING,12,,foo +15452436,RUNNING,12,,foo +15452437,RUNNING,12,,foo +15452431,CONFIGURING,12,,foo +15452432,RUNNING,12,,foo +15452260,RUNNING,12,,foo +15452448,PREEMPTED,12,,bar +15452441,NODE_FAIL,12,,bar +15452442,COMPLETED,12,,bar +15452443,RUNNING,12,,bar +15452427,RUNNING,12,,bar +15452428,COMPLETING,12,,bar +15452429,RUNNING,12,,bar +15452424,COMPLETING,12,,bar +15452425,RUNNING,12,,bar +15452426,FAILED,12,,bar +15452422,RUNNING,12,,bar +15452423,PENDING,12,Licenses,bar +15452420,PENDING,12,Licenses,bar +15452421,PENDING,12,Licenses,bar +15452394,PENDING,12,Licenses,bar +15452401,RUNNING,12,,bar +15452258,TIMEOUT,12,,bar +15452468,RUNNING,12,,bar +15452466,SUSPENDED,12,,bar +15452465,CANCELLED,12,,bar +15452451,RUNNING,12,,bar +15452452,RUNNING,12,,bar