Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1578#discussion_r77756445
  
    --- Diff: test/integration/plugins/nuagevsp/nuageTestCase.py ---
    @@ -490,57 +581,75 @@ def execute_cmd(self, ssh_client, cmd):
                 self.debug("SSH client executed command result is None")
             return ret_data
     
    -    # wget_from_server - Fetches index.html file from a web server 
listening on the given public IP address and port
    -    def wget_from_server(self, public_ip, port):
    +    # wget_from_server - Fetches file with the given file name from a web
    +    # server listening on the given public IP address and port
    +    def wget_from_server(self, public_ip, port, file_name="index.html"):
             import urllib
    -        self.debug("wget index.html file from a http web server listening 
on public IP address - %s and port - %s" %
    -                   (public_ip.ipaddress.ipaddress, port))
    -        filename, headers = urllib.urlretrieve("http://%s:%s/index.html"; % 
(public_ip.ipaddress.ipaddress, port),
    -                                               filename="index.html"
    -                                               )
    +        self.debug("wget file - %s from a http web server listening on "
    +                   "public IP address - %s and port - %s" %
    +                   (file_name, public_ip.ipaddress.ipaddress, port))
    +        filename, headers = urllib.urlretrieve(
    +            "http://%s:%s/%s"; %
    +            (public_ip.ipaddress.ipaddress, port, file_name),
    +            filename=file_name
    +        )
    --- End diff --
    
    Please add assertions that ``filename`` and ``header`` are as expected 
(e.g. not ``None``).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to