- added raw data as input function

- added show text blob

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
SushantBawiskar
2021-04-16 23:43:02 +05:30
parent e6ffd12043
commit 8510cabef5

View File

@@ -47,18 +47,29 @@ class chamberview(LFCliBase):
time.sleep(2) time.sleep(2)
def show_changes(self,scenario_name): def pass_raw_lines_to_cv(self,
req_url = "/cli-json/show_text_blob" scenario_name="Automation",
Rawline=""):
req_url = "/cli-json/add_text_blob"
data = { data = {
"type": "ALL", "type": "Network-Connectivity",
"name": "ALL", "name": scenario_name,
"brief": "brief" "text": Rawline
} }
print("data: ",data)
rsp = self.json_post(req_url, data) rsp = self.json_post(req_url, data)
print(rsp) time.sleep(2)
print("scenario is pushed")
def show_text_blob(self, config_name, blob_test_name, brief):
req_url = "/cli-json/show_text_blob"
data = {"type": "Plugin-Settings"}
if config_name and blob_test_name:
data["name"] = "%s%s" % (blob_test_name, config_name) # config name
else:
data["name"] = "ALL"
if brief:
data["brief"] = "brief"
return self.json_post(req_url, data)
#This is for chamber view buttons #This is for chamber view buttons
def apply_cv_scenario(self, cv_scenario): def apply_cv_scenario(self, cv_scenario):