Add test to configure invalid hostname and verify

Changes:
   - New test case for invalid hostname scenarios.

Tested:
   - Ran and tested on BMC Environment.

Change-Id: I143b2c6c0a6787dd8f89c5e40be1b1227d461d34
Signed-off-by: Anvesh-Kumar_Rayankula <anvesh.kumar.rayankula@ibm.com>
diff --git a/redfish/managers/test_bmc_network_conf.robot b/redfish/managers/test_bmc_network_conf.robot
index d1a9fe4..6df4f5e 100644
--- a/redfish/managers/test_bmc_network_conf.robot
+++ b/redfish/managers/test_bmc_network_conf.robot
@@ -122,6 +122,14 @@
     ${new_hostname}=  Redfish_Utils.Get Attribute  ${REDFISH_NW_PROTOCOL_URI}  HostName
     Should Be Equal  ${new_hostname}  ${test_hostname}
 
+Configure Invalid HostName And Verify
+    [Documentation]  Configure invalid hostname via Redfish and Verify.
+    [Tags]  Configure_Invalid_HostName_And_Verify
+    [Template]  Configure Hostname
+
+    # hostname          status_code
+    !#@                 [${HTTP_BAD_REQUEST}]
+    ${EMPTY}            [${HTTP_BAD_REQUEST}]
 
 Add Valid IPv4 Address And Verify
     [Documentation]  Add IPv4 Address via Redfish and verify.