summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-08-13 10:06:28 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-13 10:34:19 +1000
commit18dda20b4167cb24ecd0d8b2029aaabb60b79936 (patch)
tree92fc608fd51b5b2f0f9aa869f5bd24a6f865f78b /test
parentab4cb6a6acaa6f045bdceb93eb105617d42b23b2 (diff)
downloadpuppet-18dda20b4167cb24ecd0d8b2029aaabb60b79936.tar.gz
puppet-18dda20b4167cb24ecd0d8b2029aaabb60b79936.tar.xz
puppet-18dda20b4167cb24ecd0d8b2029aaabb60b79936.zip
Fixed $1456 - add proxy configuration to yum repo
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/type/yumrepo.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ral/type/yumrepo.rb b/test/ral/type/yumrepo.rb
index 899a02135..21865e6b5 100755
--- a/test/ral/type/yumrepo.rb
+++ b/test/ral/type/yumrepo.rb
@@ -47,7 +47,10 @@ class TestYumRepo < Test::Unit::TestCase
:enabled => "1",
:gpgcheck => "1",
:includepkgs => "absent",
- :gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora"
+ :gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora",
+ :proxy => "http://proxy.example.com:80/",
+ :proxy_username => "username",
+ :proxy_password => "password"
}
repo = make_repo("base", values)
@@ -101,6 +104,9 @@ baseurl=http://example.com/yum/$releasever/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
+proxy=http://proxy.example.com:80/
+proxy_username=username
+proxy_password=password
EOF
end