~jimbaker/pyjuju/debug-relation-hook-context

« back to all changes in this revision

Viewing changes to juju/environment/tests/test_config.py

[r=hazmat][f=781949] Make it so EC2 provider can check SSL cert validity

Show diffs side-by-side

added added

removed removed

Lines of Context:
628
628
        provider = self.config.get_default().get_machine_provider()
629
629
        self.assertEqual(provider.config["default-series"], "astounding")
630
630
 
 
631
    def test_ec2_respects_ssl_hostname_verification(self):
 
632
        self.config.write_sample()
 
633
        with open(self.default_path) as f:
 
634
            config = yaml.load(f.read())
 
635
        config["environments"]["sample"]["ssl-hostname-verification"] = True
 
636
        self.write_config(yaml.dump(config), other_path=True)
 
637
 
 
638
        self.config.load(self.other_path)
 
639
 
 
640
        provider = self.config.get_default().get_machine_provider()
 
641
        self.assertEqual(provider.config["ssl-hostname-verification"], True)
 
642
 
631
643
    def test_orchestra_schema_requires(self):
632
644
        requires = (
633
645
            "type orchestra-server orchestra-user orchestra-pass "