update TestQstat_json.test_qstat_bf_json_valid

Description

TestQstat_json.test_qstat_bf_json_valid assumed certain fields to be set but after a fresh PBS install only following fields are set in qstat -Bf.

[anamika@x36-64-rhel6 functional]$ qstat -Bf
Server: x36-64-rhel6
server_state = Active
server_host = x36-64-rhel6.pbspro.com
scheduling = True
total_jobs = 0
state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 Begun
:0
managers = anamika@*
default_queue = workq
log_events = 511
mail_from = adm
query_other_jobs = True
resources_default.ncpus = 1
default_chunk.ncpus = 1
scheduler_iteration = 600
flatuid = True
FLicenses = 3333023
resv_enable = True
node_fail_requeue = 310
max_array_size = 10000
pbs_license_info = 6200@x80-lmx
pbs_license_linger_time = 3600
license_count = Avail_Global:3333023 Avail_Local:0 Used:0 High_Use:0 Avail_
Sockets:0 Unused_Sockets:0
pbs_version = 18.2.0.20171130010654
eligible_time_enable = False
max_concurrent_provision = 5

[anamika@x36-64-rhel6 functional]$ qstat -Bf -F json
{
"timestamp":1512717405,
"pbs_version":"18.2.0.20171130010654",
"pbs_server":"x36-64-rhel6",
"Server":{
"x36-64-rhel6":{
"server_state":"Active",
"server_host":"x36-64-rhel6.pbspro.com",
"scheduling":"True",
"total_jobs":0,
"state_count":"Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 Begun:0 ",
"managers":"anamika@*",
"default_queue":"workq",
"log_events":511,
"mail_from":"adm",
"query_other_jobs":"True",
"resources_default":{
"ncpus":1
},
"default_chunk":{
"ncpus":1
},
"scheduler_iteration":600,
"flatuid":"True",
"FLicenses":3333023,
"resv_enable":"True",
"node_fail_requeue":310,
"max_array_size":10000,
"pbs_license_info":"6200@x80-lmx",
"pbs_license_linger_time":3600,
"license_count":"Avail_Global:3333023 Avail_Local:0 Used:0 High_Use:0 Avail_Sockets:0 Unused_Sockets:0",
"pbs_version":"18.2.0.20171130010654",
"eligible_time_enable":"False",
"max_concurrent_provision":5
}
}
}

Also test do not print much data that will help for debugging. It would be nice to print intermediate outputs like value of qstat_attr.

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

anamika upadhyay

Severity

3-High

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Priority

High
Configure