Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue in installation when user miss host user name #210

Merged
merged 1 commit into from
Apr 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions testcases/InstallHostOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def setUp(self):
self.bmc_type = self.conf.args.bmc_type
if not (self.conf.args.os_repo or self.conf.args.os_cdrom):
self.fail("Provide installation media for installation, --os-repo is missing")
if not (self.conf.args.host_gateway and self.conf.args.host_dns and self.conf.args.host_submask and self.conf.args.host_mac):
self.fail("Provide host network details refer, --host-{gateway,dns,submask,mac}")
if not (self.conf.args.host_ip and self.conf.args.host_gateway and self.conf.args.host_dns
and self.conf.args.host_submask and self.conf.args.host_mac):
self.fail("Provide host network details refer, --host-{ip,gateway,dns,submask,mac}")
if not (self.conf.args.host_user and self.conf.args.host_password):
self.fail("Provide host user details refer, --host-{user,password}")
if not self.conf.args.host_scratch_disk:
self.fail("Provide proper host disk to install refer, --host-scratch-disk")

Expand Down
7 changes: 5 additions & 2 deletions testcases/InstallRhel.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def setUp(self):
self.bmc_type = self.conf.args.bmc_type
if not (self.conf.args.os_repo or self.conf.args.os_cdrom):
self.fail("Provide installation media for installation, --os-repo is missing")
if not (self.conf.args.host_gateway and self.conf.args.host_dns and self.conf.args.host_submask and self.conf.args.host_mac):
self.fail("Provide host network details refer, --host-{gateway,dns,submask,mac}")
if not (self.conf.args.host_ip and self.conf.args.host_gateway and self.conf.args.host_dns
and self.conf.args.host_submask and self.conf.args.host_mac):
self.fail("Provide host network details refer, --host-{ip,gateway,dns,submask,mac}")
if not (self.conf.args.host_user and self.conf.args.host_password):
self.fail("Provide host user details refer, --host-{user,password}")
if not self.conf.args.host_scratch_disk:
self.fail("Provide proper host disk to install refer, --host-scratch-disk")

Expand Down
6 changes: 4 additions & 2 deletions testcases/InstallUbuntu.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def setUp(self):
self.bmc_type = conf.args.bmc_type
if not (self.conf.args.os_repo or self.conf.args.os_cdrom):
self.fail("Provide installation media for installation with --os-repo or --os-cdrom")
if "qemu" not in self.bmc_type and not (self.conf.args.host_gateway and self.conf.args.host_dns and self.conf.args.host_submask and self.conf.args.host_mac):
self.fail("Provide host network details refer, --host-{gateway,dns,submask,mac}")
if "qemu" not in self.bmc_type and not (self.conf.args.host_ip and self.conf.args.host_gateway and self.conf.args.host_dns and self.conf.args.host_submask and self.conf.args.host_mac):
self.fail("Provide host network details refer, --host-{ip,gateway,dns,submask,mac}")
if not (self.conf.args.host_user and self.conf.args.host_password):
self.fail("Provide host user details refer, --host-{user,password}")
if not self.host.get_scratch_disk():
self.fail("Provide proper host disk to install refer, --host-scratch-disk")

Expand Down