39aecdfcdb5903e32ffd61868e52312b542e62fa,deploy/create_project_test.py,CreateProjectTest,test_project_config_validate_check_raise,#CreateProjectTest#,35

Before Change


      yaml.dump(root_config, f)
      f.flush()
      FLAGS.project_yaml = f.name
      with tempfile.NamedTemporaryFile() as fout:
        FLAGS.output_yaml_path = fout.name
        with self.assertRaises(utils.InvalidConfigError):
          create_project.main([])

  def test_project_config_validate_check_correct(self):
    FLAGS.projects = ["*"]
    datathon_path = (
        "deploy/samples/datathon_team_project.yaml"

After Change


    utils.resolve_env_vars(root_config)
    root_config["overall"]["allowed_apis"] = []
    with tempfile.TemporaryDirectory() as tmp_dir:
      FLAGS.output_yaml_path = os.path.join(tmp_dir, "conf.yaml")
      FLAGS.project_yaml = FLAGS.output_yaml_path
      FLAGS.output_cleanup_path = os.path.join(tmp_dir, "cleanup.sh")
      with open(FLAGS.project_yaml, "w") as f:
        yaml = ruamel.yaml.YAML()
        yaml.dump(root_config, f)
        f.flush()
      with self.assertRaises(utils.InvalidConfigError):
        create_project.main([])

  def test_project_config_validate_check_correct(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 39aecdfcdb5903e32ffd61868e52312b542e62fa
Time: 2019-02-11
Author: noreply@google.com
File Name: deploy/create_project_test.py
Class Name: CreateProjectTest
Method Name: test_project_config_validate_check_raise


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_from_config_file


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 39aecdfcdb5903e32ffd61868e52312b542e62fa
Time: 2019-02-11
Author: noreply@google.com
File Name: deploy/create_project_test.py
Class Name: CreateProjectTest
Method Name: test_project_config_validate_check_correct