DMTF / YANG-to-Redfish-Converter

This tool converts a YANG model file to the corresponding Redfish schema, specified in OData CSDL, in accordance with the YANG-to-CSDL Mapping Specification.
Other
4 stars 5 forks source link

CSDLs are missing an Action #46

Closed jcleung5549 closed 5 years ago

jcleung5549 commented 5 years ago

The generated CSDL files needs a Action element. Below is a typical message.

  3) CSDL Tests
       metadata/ietf_inet_types_v1.xml
         All EntityType defintions have Actions:
     Error: Entity Type "ietf_inet_types" does not contain an Action
      at entityTypesHaveActions (node_modules\redfishrepotest\csdl-syntax-test.js:801:13)
      at Context.it (node_modules\redfishrepotest\csdl-syntax-test.js:110:59)
mraineri commented 5 years ago

Is this something we want to whitelist in the Travis tests? I thought one of the early decisions was to not produce actions for YANG-based resources, and only put actions at the "NetworkDevice" level.

jcleung5549 commented 5 years ago

Yes, let's whitelist.

mraineri commented 5 years ago

A check for the YANG whitelist will need to be made in the "entityTypesHaveActions" function of csdl-syntax-test.js.

jcleung5549 commented 5 years ago

Using branch yang-2019 and the latest update to csdl-syntax-test.js, this Travis error is gone.