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 @@ ...@@ -147,7 +147,20 @@
"key": "parameter_output", "key": "parameter_output",
"hidden": gadget.state.parameter_output === undefined, "hidden": gadget.state.parameter_output === undefined,
"type": "TextAreaField" "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": { "_links": {
"type": { "type": {
...@@ -159,7 +172,7 @@ ...@@ -159,7 +172,7 @@
form_definition: { form_definition: {
group_list: [[ group_list: [[
"center", "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 @@ ...@@ -277,7 +277,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1003.56160.64867.20462</string> </value> <value> <string>1003.56162.18447.41164</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1666625416.83</float> <float>1666635866.16</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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