File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -278,12 +278,8 @@ def test_customized_tmpl(self):
278
278
self .assertEqual (update_tmpl ['cpu_info' ], cpu_info_data ['cpu_info' ])
279
279
280
280
# Test memory and max memory
281
- # - memory greated than max memory (1024 default on x86
282
- # otherwise 2048)
283
- if os .uname ()[4 ] == 's390x' :
284
- req = json .dumps ({'memory' : {'current' : 4096 }})
285
- else :
286
- req = json .dumps ({'memory' : {'current' : 2048 }})
281
+ # - memory greated than max memory
282
+ req = json .dumps ({'memory' : {'current' : 4096 }})
287
283
resp = self .request (new_tmpl_uri , req , 'PUT' )
288
284
self .assertEqual (400 , resp .status )
289
285
# - max memory greater than limit: 16TiB to PPC and 4TiB to x86
Original file line number Diff line number Diff line change @@ -138,10 +138,7 @@ def test_to_xml(self):
138
138
# max memory tag is not set
139
139
self .assertEqual (0 , len (xpath_get_text (xml , expr )))
140
140
expr = '/domain/memory'
141
- if os .uname ()[4 ] == 's390x' :
142
- self .assertEqual (str (2048 ), xpath_get_text (xml , expr )[0 ])
143
- else :
144
- self .assertEqual (str (1024 ), xpath_get_text (xml , expr )[0 ])
141
+ self .assertEqual (str (2048 ), xpath_get_text (xml , expr )[0 ])
145
142
146
143
if hasattr (psutil , 'virtual_memory' ):
147
144
host_memory = psutil .virtual_memory ().total >> 10
You can’t perform that action at this time.
0 commit comments