Explorar o código

HUE-3160 [metastore] Update test to read the correct response field

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
d2ae48774f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/metastore/src/metastore/tests.py

+ 1 - 1
apps/metastore/src/metastore/tests.py

@@ -403,7 +403,7 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
                             {'column': 'before_alter', 'new_column_name': 'foo'})
     json_resp = json.loads(resp.content)
     assert_equal(1, json_resp['status'], json_resp)
-    assert_true('Failed to alter column' in json_resp['data'], json_resp)
+    assert_true('Failed to alter column' in json_resp['message'], json_resp)
 
 
 class TestParser(object):