AC: if the job has a valid user, cluster and account the job should process successfully if the job has a valid user, cluster, partition and account the job should process successfully if the job has a valid user and account but no cluster the job should process fail if the job has a valid user and cluster but no account account the job should process fail
I added test test_process_job_account_without_cluster_sbatch assuming that the test would fail but it passed. when I debug the resulting job it seems that there is a default cluster (atf) that is the reason that I did not get a failed job creation, possibly. I then attempted deleting the atf cluster in the test before the job post method with atf.run_command(f"sacctmgr -i delete cluster name=atf", fatal=False) and the atf cluster was still in place and the test still PASSED. After discussing with Albert, this is a rare case that is currently not testable due to the default atf general cluster.
I pushed the work for https://support.schedmd.com/show_bug.cgi?id=21607 in the ticket_21607_job_account_tests branch the test_process_job_without_account_with_cluster_partition_sbatch test should fail due to the account being missing but some how a default account is being used will work with Albert to get a better understanding of why and fix the issue.