| 3 | = 8/13/15 = |
| 4 | |
| 5 | * If you add the field for an install or execute script in Jacks, but then don't fill in the various fields (command, url, install path) the RSpec includes `<execute>` and/or `<install>` tags which have no attributes and violate the schema. For example, the following RSpec was generated by Jacks and does not pass rspeclint: |
| 6 | {{{ |
| 7 | <rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:tour="http://www.protogeni.net/resources/rspec/ext/apt-tour/1" xmlns:jacks="http://www.protogeni.net/resources/rspec/ext/jacks/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" type="request"> |
| 8 | <node xmlns="http://www.geni.net/resources/rspec/3" client_id="node-0"> |
| 9 | <icon xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" url="https://portal.geni.net/images/VM-noTxt-centered.svg"/> |
| 10 | <site xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" id="Site 1"/> |
| 11 | <sliver_type xmlns="http://www.geni.net/resources/rspec/3" name="default-vm"/> |
| 12 | <services xmlns="http://www.geni.net/resources/rspec/3"> |
| 13 | <execute xmlns="http://www.geni.net/resources/rspec/3" shell="/bin/sh"/> |
| 14 | <install xmlns="http://www.geni.net/resources/rspec/3"/> |
| 15 | </services> |
| 16 | </node> |
| 17 | </rspec> |
| 18 | }}} |
| 19 | In particular, it generates the following error: |
| 20 | {{{ |
| 21 | Line 1: Failed validation with root at element: Schemas validity error : Element '{http://www.geni.net/resources/rspec/3}execute': The attribute 'command' is required but missing. |
| 22 | Schemas validity error : Element '{http://www.geni.net/resources/rspec/3}install': The attribute 'url' is required but missing. |
| 23 | Schemas validity error : Element '{http://www.geni.net/resources/rspec/3}install': The attribute 'install_path' is required but missing. |
| 24 | : rspec |
| 25 | }}} |