webosose / ares-cli

ares-cli is a command-line interface(CLI) for webOS
Apache License 2.0
38 stars 17 forks source link

Change getErrMsg to getErrMsgMap() #41

Closed YoungeunKim closed 3 years ago

YoungeunKim commented 3 years ago

:Release Notes: Fix invalid value error bug in ares-setup-device

:Detailed Notes:

:Testing Performed:

  1. TC passed on OSE/Auto target & Auto emulator.
  2. eslint passed
  3. Verified with CLI commands
    • Give invalid device name
      
      $ ares-setup-device
      Enter Device Name: emulator // Exist device name
      >> The specified value already exists

Enter Device Name: 123 // Invalid device name

Invalid device name. The device name should consist of letters, numbers, and special characters ('-','','#') and should start with letters or ''

Enter Device Name: // Empty device name

Please specify a value

- Give ip address/port on adding mode

Enter Device IP address: 123123adsf Invalid value

Enter Device Port: qwe

Invalid value

:Issues Addressed: [PLAT-138374] Prepare to system test of CLI v2.2.0

YoungeunKim commented 3 years ago

Code 👍 Verified 👍