@@ -42,8 +42,8 @@ func TestSystemsExportJSON(t *testing.T) {
4242 assert .Equal (t , "2018-09-09 16:00:00 +0000 UTC" , output [0 ].SystemItemAttributes .CulledTimestamp .String ())
4343 assert .Equal (t , "2018-08-26 16:00:00 +0000 UTC" , output [0 ].SystemItemAttributes .Created .String ())
4444 assert .Equal (t , SystemTagsList {{"k1" , "ns1" , "val1" }, {"k2" , "ns1" , "val2" }}, output [0 ].SystemItemAttributes .Tags )
45- assert .Equal (t , "baseline_1-1 " , output [0 ].SystemItemAttributes .BaselineName )
46- assert .Equal (t , int64 (1 ), output [0 ].SystemItemAttributes .BaselineID )
45+ assert .Equal (t , "" , output [0 ].SystemItemAttributes .BaselineName )
46+ assert .Equal (t , int64 (0 ), output [0 ].SystemItemAttributes .BaselineID )
4747}
4848
4949func TestSystemsExportCSV (t * testing.T ) {
@@ -58,9 +58,9 @@ func TestSystemsExportCSV(t *testing.T) {
5858
5959 assert .Equal (t , "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000001,RHEL 8.10,8.10," +
6060 "\" [{'key':'k1','namespace':'ns1','value':'val1'},{'key':'k2','namespace':'ns1','value':'val2'}]\" ," +
61- "2018-09-22T16:00:00Z,2,2,1,0,0,baseline_1-1 ," +
61+ "2018-09-22T16:00:00Z,2,2,1,0,0,," +
6262 "2020-09-22T16:00:00Z,2018-08-26T16:00:00Z,2018-09-02T16:00:00Z,2018-09-09T16:00:00Z,2018-08-26T16:00:00Z," +
63- "false,false,false,0,0,2,2,1,0,2,3,3,3,1 ,temp1-1,99900000-0000-0000-0000-000000000001," +
63+ "false,false,false,0,0,2,2,1,0,2,3,3,3,0 ,temp1-1,99900000-0000-0000-0000-000000000001," +
6464 "\" [{'id':'inventory-group-1','name':'group1'}]\" ,x86_64" ,
6565 lines [1 ])
6666}
@@ -115,17 +115,6 @@ func TestSystemsExportWorkloads(t *testing.T) {
115115 assert .Equal (t , "00000000-0000-0000-0000-000000000001" , output [0 ].ID )
116116}
117117
118- func TestSystemsExportBaselineFilter (t * testing.T ) {
119- w := makeRequest (t , "/?filter[baseline_name]=baseline_1-1" , "application/json" )
120-
121- var output []SystemDBLookup
122- CheckResponse (t , w , http .StatusOK , & output )
123-
124- assert .Equal (t , 3 , len (output ))
125- assert .Equal (t , "00000000-0000-0000-0000-000000000001" , output [0 ].ID )
126- assert .Equal (t , "00000000-0000-0000-0000-000000000002" , output [1 ].ID )
127- }
128-
129118func TestSystemsExportFilterPartialOS (t * testing.T ) {
130119 w := makeRequest (t , "/?filter[osname]=RHEL&filter[osmajor]=8&filter[osminor]=1" , "application/json" )
131120
0 commit comments