From 1caf663093ab18ab3e5e49da8081991faf4e6b00 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 26 Jun 2002 19:27:35 +0000
Subject: [PATCH] Changed job configs to match system (node and partition)
 configs.

---
 .../slurm_unit/api/manual/allocate-tst.c      | 30 ++++++++++++-------
 testsuite/slurm_unit/api/manual/submit-tst.c  |  3 +-
 2 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/testsuite/slurm_unit/api/manual/allocate-tst.c b/testsuite/slurm_unit/api/manual/allocate-tst.c
index e59fb42754d..286fb90a192 100644
--- a/testsuite/slurm_unit/api/manual/allocate-tst.c
+++ b/testsuite/slurm_unit/api/manual/allocate-tst.c
@@ -16,7 +16,6 @@ main (int argc, char *argv[])
 
 	slurm_init_job_desc_msg( &job_mesg );
 	job_mesg. contiguous = 1;
-	job_mesg. features = "bigDisk\0";
 	job_mesg. groups = ("students,employee\0");
 	job_mesg. job_id = 12345;
 	job_mesg. name = ("job01\0");
@@ -43,14 +42,26 @@ main (int argc, char *argv[])
 	}
 
 
+	slurm_init_job_desc_msg( &job_mesg );
+	job_mesg. contiguous = 1;
+	job_mesg. groups = ("students,employee\0");
+	job_mesg. name = ("more.big\0");
+	job_mesg. partition_key = "1234";
+	job_mesg. min_procs = 4;
+	job_mesg. min_memory = 1024;
+	job_mesg. min_tmp_disk = 2034;
+	job_mesg. partition = "batch\0";
+	job_mesg. priority = 100;
+	job_mesg. req_nodes = "lx[3000-3003]\0";
+	job_mesg. job_script = "/bin/hostname\0";
+	job_mesg. shared = 0;
+	job_mesg. time_limit = 200;
+	job_mesg. num_procs = 4000;
+	job_mesg. user_id = 1500;
+
 	while (1) {
 		/* the string also had Immediate */
 		error_code = slurm_allocate_resources ( &job_mesg , & resp_msg , true ); 
-		job_mesg. name = ("more\0");
-		job_mesg. partition_key = "1234";
-		job_mesg. partition = "batch\0";
-		job_mesg. num_procs = 4000;
-		job_mesg. user_id = 1500;
 
 		error_code = slurm_allocate_resources ( &job_mesg , & resp_msg , false ); 
 		if (error_code) {
@@ -62,13 +73,10 @@ main (int argc, char *argv[])
 		}
 	}
 
+	job_mesg. name = ("more.tiny\0");
+	job_mesg. num_procs = 40;
 	while (1) {
 		slurm_init_job_desc_msg( &job_mesg );
-		job_mesg. name = ("more\0");
-		job_mesg. partition_key = "1234";
-		job_mesg. partition = "batch\0";
-		job_mesg. num_procs = 40;
-		job_mesg. user_id = 1500;
 
 		error_code = slurm_allocate_resources ( &job_mesg , & resp_msg , false ); 
 		if (error_code) {
diff --git a/testsuite/slurm_unit/api/manual/submit-tst.c b/testsuite/slurm_unit/api/manual/submit-tst.c
index 4eeaeccea9d..bbe93fb134a 100644
--- a/testsuite/slurm_unit/api/manual/submit-tst.c
+++ b/testsuite/slurm_unit/api/manual/submit-tst.c
@@ -13,10 +13,9 @@ main (int argc, char *argv[])
 	int error_code, i, count;
 	job_desc_msg_t job_mesg;
 	
+	slurm_init_job_desc_msg( &job_mesg );
 	job_mesg. contiguous = 1; 
-/*	job_mesg. features = "bigDisk\0"; */
 	job_mesg. groups = ("students,employee\0");
-	job_mesg. job_id = 12345;
 	job_mesg. name = ("job01\0");
 	job_mesg. partition_key = NULL;
 	job_mesg. min_procs = 4;
-- 
GitLab