launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #15254
[Merge] lp:~matsubara/maas/set-proxy into lp:~maas-maintainers/maas/qa-lab-tests
Diogo Matsubara has proposed merging lp:~matsubara/maas/set-proxy into lp:~maas-maintainers/maas/qa-lab-tests.
Requested reviews:
MAAS Maintainers (maas-maintainers)
For more details, see:
https://code.launchpad.net/~matsubara/maas/set-proxy/+merge/151074
Add a test to the CI tests to set the http_proxy using the maas-cli.
--
https://code.launchpad.net/~matsubara/maas/set-proxy/+merge/151074
Your team MAAS Maintainers is requested to review the proposed merge of lp:~matsubara/maas/set-proxy into lp:~maas-maintainers/maas/qa-lab-tests.
=== modified file 'maas-integration.py'
--- maas-integration.py 2013-02-27 15:22:12 +0000
+++ maas-integration.py 2013-02-28 18:49:24 +0000
@@ -174,6 +174,7 @@
"test_import_pxe_files",
"test_update_preseed_arm",
"test_login_api",
+ "test_set_http_proxy",
"test_cluster_connected",
"test_set_up_dhcp_region",
"test_set_up_dhcp_cluster",
@@ -287,6 +288,14 @@
output, Contains(
"\nYou are now logged in to the MAAS server"))
+ def test_set_http_proxy(self):
+ output, err = self._run_maas_cli([
+ "maas", "set-config", "name=http://10.98.0.13:8000"])
+ self.assertThat(output, Contains("OK"))
+ output, err = self._run_maas_cli([
+ "maas", "get-config", "name=http_proxy"])
+ self.assertThat(output, Contains("http://10.98.0.13:8000"))
+
def get_master_ng_uuid(self):
output, err = self._run_maas_cli(["node-groups", "list"])
node_groups = loads(output)
Follow ups