Browse Source

HUE-3410 [notebook] Update tests to the use the saved parent id

Romain Rigaux 9 years ago
parent
commit
7b44854

+ 3 - 1
desktop/libs/notebook/src/notebook/connectors/tests/tests_hiveserver2.py

@@ -240,7 +240,9 @@ class TestHiveserver2ApiWithHadoop(BeeswaxSampleProvider):
         "id": 1234,
         "sessions": [{"type": "hive", "properties": [], "id": "1234"}],
         "type": "query-hive",
-        "name": "Test Hiveserver2 Editor"
+        "name": "Test Hiveserver2 Editor",
+        "isSaved": false,
+        "parentUuid": null
       }
     """
     self.statement = 'SELECT description, salary FROM sample_07 WHERE (sample_07.salary > 100000) ORDER BY salary DESC LIMIT 1000'

+ 3 - 1
desktop/libs/notebook/src/notebook/tests.py

@@ -57,7 +57,9 @@ class TestNotebookApi(object):
         "type": "query-hive",
         "id": 50010,
         "snippets": [],
-        "uuid": "5982a274-de78-083c-2efc-74f53dce744c"
+        "uuid": "5982a274-de78-083c-2efc-74f53dce744c",
+        "isSaved": false,
+        "parentUuid": null
     }
     """