|
@@ -105,6 +105,17 @@ class TestOozieServer(RMFTestCase):
|
|
owner = 'oozie',
|
|
owner = 'oozie',
|
|
group = 'hadoop',
|
|
group = 'hadoop',
|
|
)
|
|
)
|
|
|
|
+ self.assertResourceCalled('Directory', '/etc/security/limits.d',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ recursive=True,
|
|
|
|
+ )
|
|
|
|
+ self.assertResourceCalled('File', '/etc/security/limits.d/oozie.conf',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ mode=0644,
|
|
|
|
+ content=Template("oozie.conf.j2"),
|
|
|
|
+ )
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
content = 'log4jproperties\nline2',
|
|
content = 'log4jproperties\nline2',
|
|
owner = 'oozie',
|
|
owner = 'oozie',
|
|
@@ -313,6 +324,17 @@ class TestOozieServer(RMFTestCase):
|
|
owner = 'oozie',
|
|
owner = 'oozie',
|
|
group = 'hadoop',
|
|
group = 'hadoop',
|
|
)
|
|
)
|
|
|
|
+ self.assertResourceCalled('Directory', '/etc/security/limits.d',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ recursive=True,
|
|
|
|
+ )
|
|
|
|
+ self.assertResourceCalled('File', '/etc/security/limits.d/oozie.conf',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ mode=0644,
|
|
|
|
+ content=Template("oozie.conf.j2"),
|
|
|
|
+ )
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
content = 'log4jproperties\nline2',
|
|
content = 'log4jproperties\nline2',
|
|
owner = 'oozie',
|
|
owner = 'oozie',
|
|
@@ -673,6 +695,17 @@ class TestOozieServer(RMFTestCase):
|
|
content = InlineTemplate(self.getConfig()['configurations']['oozie-env']['content']),
|
|
content = InlineTemplate(self.getConfig()['configurations']['oozie-env']['content']),
|
|
group = 'hadoop',
|
|
group = 'hadoop',
|
|
)
|
|
)
|
|
|
|
+ self.assertResourceCalled('Directory', '/etc/security/limits.d',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ recursive=True,
|
|
|
|
+ )
|
|
|
|
+ self.assertResourceCalled('File', '/etc/security/limits.d/oozie.conf',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ mode=0644,
|
|
|
|
+ content=Template("oozie.conf.j2"),
|
|
|
|
+ )
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
owner = 'oozie',
|
|
owner = 'oozie',
|
|
group = 'hadoop',
|
|
group = 'hadoop',
|
|
@@ -852,6 +885,17 @@ class TestOozieServer(RMFTestCase):
|
|
content = InlineTemplate(self.getConfig()['configurations']['oozie-env']['content']),
|
|
content = InlineTemplate(self.getConfig()['configurations']['oozie-env']['content']),
|
|
group = 'hadoop',
|
|
group = 'hadoop',
|
|
)
|
|
)
|
|
|
|
+ self.assertResourceCalled('Directory', '/etc/security/limits.d',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ recursive=True,
|
|
|
|
+ )
|
|
|
|
+ self.assertResourceCalled('File', '/etc/security/limits.d/oozie.conf',
|
|
|
|
+ owner = 'root',
|
|
|
|
+ group = 'root',
|
|
|
|
+ mode=0644,
|
|
|
|
+ content=Template("oozie.conf.j2"),
|
|
|
|
+ )
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
self.assertResourceCalled('File', '/etc/oozie/conf/oozie-log4j.properties',
|
|
owner = 'oozie',
|
|
owner = 'oozie',
|
|
group = 'hadoop',
|
|
group = 'hadoop',
|