|
@@ -126,8 +126,9 @@ class TestHiveMetastore(RMFTestCase):
|
|
|
conf_dir = '/etc/hive/conf.server',
|
|
|
configurations = self.getConfig()['configurations']['hive-site'],
|
|
|
)
|
|
|
- self.assertResourceCalled('Execute', "/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl --noproxy c6401.ambari.apache.org -kf --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'",
|
|
|
+ self.assertResourceCalled('Execute', "/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'",
|
|
|
not_if = '[ -f DBConnectionVerification.jar]',
|
|
|
+ environment = {'no_proxy': 'c6401.ambari.apache.org'},
|
|
|
)
|
|
|
self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh',
|
|
|
content = Template('hive-env.sh.j2', conf_dir="/etc/hive/conf.server"),
|
|
@@ -193,8 +194,9 @@ class TestHiveMetastore(RMFTestCase):
|
|
|
conf_dir = '/etc/hive/conf.server',
|
|
|
configurations = self.getConfig()['configurations']['hive-site'],
|
|
|
)
|
|
|
- self.assertResourceCalled('Execute', "/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl --noproxy c6401.ambari.apache.org -kf --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'",
|
|
|
+ self.assertResourceCalled('Execute', "/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'",
|
|
|
not_if = '[ -f DBConnectionVerification.jar]',
|
|
|
+ environment = {'no_proxy': 'c6401.ambari.apache.org'},
|
|
|
)
|
|
|
self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh',
|
|
|
content = Template('hive-env.sh.j2', conf_dir="/etc/hive/conf.server"),
|