X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fhoneycomb%2Fvhost_user.robot;h=0c662993b45a5424b2718f8762c97ff08d661851;hp=1d585041a4e50d684b1947a5b33838fd3fbc1754;hb=9ce4ca3b24e45bc9c4ad06e09829ccba1addbd62;hpb=95bf11e637855dc91e490f526406fa7538a21ac6 diff --git a/resources/libraries/robot/honeycomb/vhost_user.robot b/resources/libraries/robot/honeycomb/vhost_user.robot index 1d585041a4..0c662993b4 100644 --- a/resources/libraries/robot/honeycomb/vhost_user.robot +++ b/resources/libraries/robot/honeycomb/vhost_user.robot @@ -13,9 +13,7 @@ *** Settings *** | Library | resources.libraries.python.InterfaceUtil -| ... | WITH NAME | interfaceCLI | Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords -| ... | WITH NAME | InterfaceAPI | Documentation | Keywords used to manipulate vhost-user unterfaces. *** Keywords *** @@ -33,7 +31,7 @@ | | ... | \| ${nodes['DUT1']} \| vhost_test \| ${vhost_user_settings} \| | | ... | | [Arguments] | ${node} | ${interface} | ${settings} -| | interfaceAPI.Create vhost user interface | ${node} | ${interface} +| | Create vhost user interface | ${node} | ${interface} | | ... | &{settings} | Honeycomb removes vhost-user interface @@ -48,7 +46,7 @@ | | ... | \| ${nodes['DUT1']} \| vhost_test \| | | ... | | [Arguments] | ${node} | ${interface} -| | interfaceAPI.Delete interface | ${node} | ${interface} +| | Delete interface | ${node} | ${interface} | Honeycomb configures vhost-user interface | | [Documentation] | Configure a vhost-user interface using Honeycomb API. @@ -64,10 +62,10 @@ | | ... | \| ${nodes['DUT1']} \| vhost_test \| ${new_vhost_user_settings} \| | | ... | | [Arguments] | ${node} | ${interface} | ${settings} -| | interfaceAPI.Configure interface vhost user | ${node} | ${interface} +| | Configure interface vhost user | ${node} | ${interface} | | ... | &{settings} -| Vhost-user configuration from Honeycomb should be +| Vhost-user Operational Data From Honeycomb Should Be | | [Documentation] | Retrieves interface vhost-user configuration through\ | | ... | Honeycomb and compares it with settings supplied in argument. | | ... @@ -78,16 +76,16 @@ | | ... | Type: dictionary | | ... | | ... | *Example:* -| | ... | \| Vhost-user configuration from Honeycomb should be\ +| | ... | \| Vhost-user Operational Data From Honeycomb Should Be\ | | ... | \| ${nodes['DUT1']} \| vhost_test \| ${vhost_user_settings} \| | | ... | | [Arguments] | ${node} | ${interface} | ${settings} -| | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface} +| | ${api_data}= | Get interface oper data | ${node} | ${interface} | | ${api_vhost}= | Set Variable | ${api_data['v3po:vhost-user']} | | :FOR | ${key} | IN | @{settings.keys()} | | | Should be equal | ${api_vhost['${key}']} | ${settings['${key}']} -| Vhost-user configuration from VAT should be +| Vhost-user Operational Data From VAT Should Be | | [Documentation] | Retrieves interface vhost-user configuration through VAT\ | | ... | and compares it with settings supplied in argument. | | ... @@ -97,7 +95,7 @@ | | ... | Type: dictionary | | ... | | ... | *Example:* -| | ... | \| Vhost-user configuration from VAT should be\ +| | ... | \| Vhost-user Operational Data From VAT Should Be\ | | ... | \| ${nodes['DUT1']} \| vhost_test \| | | ... | | ... | *Note:* @@ -113,7 +111,7 @@ | | should be equal as strings | ${vat_data['is_server']} | | ... | ${translate['${settings['role']}']} -| Vhost-user configuration from Honeycomb should be empty +| Vhost-user Operational Data From Honeycomb Should Be empty | | [Documentation] | Attempts to retrieve interface vhost-user configuration\ | | ... | through Honeycomb and expects to recieve an empty dictionary. | | ... @@ -122,15 +120,15 @@ | | ... | - interface - name of an interface on the specified node. Type: string | | ... | | ... | *Example:* -| | ... | \| Vhost-user configuration from Honeycomb should be empty\ +| | ... | \| Vhost-user Operational Data From Honeycomb Should Be empty\ | | ... | \| ${nodes['DUT1']} \| vhost_test \| | | ... | | [Arguments] | ${node} | ${interface} -| | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface} +| | ${api_data}= | Get interface oper data | ${node} | ${interface} | | Run keyword and expect error | *KeyError: 'v3po:vhost-user' | | ... | Should be empty | ${api_data['v3po:vhost-user']} -| Vhost-user configuration from VAT should be empty +| Vhost-user Operational Data From VAT Should Be empty | | [Documentation] | Attempts to retrieve interface vhost-user configuration\ | | ... | through VAT and expects a "no data" error. | | ... @@ -138,7 +136,7 @@ | | ... | - node - information about a DUT node. Type: dictionary | | ... | | ... | *Example:* -| | ... | \| Vhost-user configuration from VAT should be empty\ +| | ... | \| Vhost-user Operational Data From VAT Should Be empty\ | | ... | \| ${nodes['DUT1']} \| | | ... | | [Arguments] | ${node} @@ -160,7 +158,7 @@ | | ... | | [Arguments] | ${node} | ${interface} | ${settings} | | Run Keyword And Expect Error | HoneycombError: * Status code: 500. -| | ... | interfaceAPI.Configure interface vhost user | ${node} | ${interface} +| | ... | Configure interface vhost user | ${node} | ${interface} | | ... | &{settings} | Honeycomb fails setting invalid vhost-user configuration @@ -178,5 +176,5 @@ | | ... | | [Arguments] | ${node} | ${interface} | ${settings} | | Run Keyword And Expect Error | HoneycombError: * Status code: 400. -| | ... | interfaceAPI.Configure interface vhost user | ${node} | ${interface} | +| | ... | Configure interface vhost user | ${node} | ${interface} | | ... | &{settings}