Commit 59b51f5b authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Display hash on parameter test gadget

   This makes tests much easier to be written, for while asserting the result as a simple hashed string.
parent 9fc658c2
......@@ -147,7 +147,20 @@
"key": "parameter_output",
"hidden": gadget.state.parameter_output === undefined,
"type": "TextAreaField"
}
},
"your_parameter_hash": {
"description": "",
"title": "Parameters Hash",
"default": parameter_hash,
"css_class": "",
"required": 0,
"editable": 0,
"sandbox": "",
"key": "parameter_hash",
"hidden": gadget.state.parameter_output === undefined,
"type": "StringField"
},
}},
"_links": {
"type": {
......@@ -159,7 +172,7 @@
form_definition: {
group_list: [[
"center",
[["my_url_string"], ["your_parameter_output"], ["your_text_content"]]
[["my_url_string"], ["your_parameter_output"], ["your_parameter_hash"], ["your_text_content"]]
]]
}
})
......
......@@ -277,7 +277,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1003.56160.64867.20462</string> </value>
<value> <string>1003.56162.18447.41164</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -295,7 +295,7 @@
</tuple>
<state>
<tuple>
<float>1666625416.83</float>
<float>1666635866.16</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment