mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-2320] fixing test + modifying map browsing
This commit is contained in:
parent
78e2e912b6
commit
9ad16bc73a
2 changed files with 4 additions and 3 deletions
|
|
@ -969,9 +969,10 @@ public class NotebookRestApi {
|
|||
throw new BadRequestException("paragraph config cannot be empty");
|
||||
}
|
||||
Map<String, Object> origConfig = p.getConfig();
|
||||
for (String key : newConfig.keySet()) {
|
||||
origConfig.put(key, newConfig.get(key));
|
||||
for ( final Map.Entry<String, Object> entry : newConfig.entrySet()){
|
||||
origConfig.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
|
||||
p.setConfig(origConfig);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ public class ZeppelinRestApiTest extends AbstractTestRestApi {
|
|||
}
|
||||
assertTrue("paragraph title check failed", p.getTitle().startsWith("title"));
|
||||
assertTrue("paragraph text check failed", p.getText().startsWith("text"));
|
||||
if ( p.getTitle() == "titleConfig"){
|
||||
if ( p.getTitle().equals("titleConfig")){
|
||||
assertEquals("paragraph col width check failed", 9.0, p.getConfig().get("colWidth"));
|
||||
assertTrue("paragraph show title check failed", ((boolean) p.getConfig().get("title")));
|
||||
Map graph = ((List<Map>)p.getConfig().get("results")).get(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue