Skip to content

localhost not accepted as valid host #112

@prasadtalasila

Description

@prasadtalasila

Description

When localhost is provided as host name for gitlab or mainserver, the CLI generates an error.

Steps to Reproduce

  1. Install AutolabJS
  2. Install autolabjs CLI on the same host.
  3. Try to change the host name for gitlab or main server.

Expected behavior: [What you expect to happen]
Accepts localhost as a valid host name.

Actual behavior: [What actually happens]
Rejects localhost as an invalid host name.

Reproduces how often: [What percentage of the time does it reproduce?]
Every time

Additional Information

The relevant logs are as follows.

$git clone https://github.com/AutolabJS/autolabcli.git -b dev
$cd autolabcli
$npm i
$ nodejs index.js prefs changeserver --type gitlab --host localhost
Please provide a valid host
vagrant@ubuntu-xenial:~/autolabcli$ nodejs index.js prefs changeserver --type ms --host localhost --port 9000
Please provide a valid host

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions