Ejemplo n.º 1
0
 def test_12527(self, fixture, monkeypatch):
     monkeypatch.setattr(Strategy, "_system_memory_mb_java", lambda x: (2000, 4000))
     p = write_config(fixture.input)
     old_templates = path(__file__).dirname() / "old_templates.xml"
     xml = XML(old_templates.abspath().text())
     config = ConfigXml(filename=str(p), env_config="default")
     with pytest.raises(Exception):
         adjust_settings(config, xml, **fixture.kwargs)
Ejemplo n.º 2
0
 def test_12527(self, fixture, monkeypatch):
     monkeypatch.setattr(Strategy, '_system_memory_mb_java', lambda x:
                         (2000, 4000))
     p = write_config(fixture.input)
     old_templates = old_div(path(__file__).dirname(), "old_templates.xml")
     xml = XML(old_templates.abspath().text())
     config = ConfigXml(filename=str(p), env_config="default")
     with pytest.raises(Exception):
         adjust_settings(config, xml, **fixture.kwargs)
Ejemplo n.º 3
0
 def test_adjust(self, fixture):
     p = write_config(fixture.input)
     xml = template_xml()
     config = ConfigXml(filename=str(p), env_config="default")
     try:
         rv = adjust_settings(config, xml, **fixture.kwargs)
         fixture.validate(rv)
     finally:
         config.close()
Ejemplo n.º 4
0
 def test_adjust(self, fixture, monkeypatch):
     monkeypatch.setattr(Strategy, "_system_memory_mb_java", lambda x: (2000, 4000))
     p = write_config(fixture.input)
     xml = template_xml()
     config = ConfigXml(filename=str(p), env_config="default")
     try:
         rv = adjust_settings(config, xml, **fixture.kwargs)
         fixture.validate(rv)
     finally:
         config.close()
Ejemplo n.º 5
0
 def test_adjust(self, fixture, monkeypatch):
     monkeypatch.setattr(Strategy, '_system_memory_mb_java', lambda x:
                         (2000, 4000))
     p = write_config(fixture.input)
     xml = template_xml()
     config = ConfigXml(filename=str(p), env_config="default")
     try:
         rv = adjust_settings(config, xml, **fixture.kwargs)
         fixture.validate(rv)
     finally:
         config.close()