Пример #1
0
 def setUp(self):
     raw_yaml = {
         "evergreen_projects": [
             "mongodb-mongo-master",
             "mongodb-mongo-v4.4",
         ]
     }
     self.config = SetupMultiversionConfig(raw_yaml)
Пример #2
0
 def setUp(self):
     raw_yaml = {
         "evergreen_buildvariants": [{
             "name": "generic-buildvariant-name",
             "edition": evergreen_conn.GENERIC_EDITION,
             "platform": evergreen_conn.GENERIC_PLATFORM,
             "architecture": evergreen_conn.GENERIC_ARCHITECTURE,
             "versions": ["3.4", "3.6", "4.0"],
         }, ]
     }
     self.config = SetupMultiversionConfig(raw_yaml)
Пример #3
0
    def setUp(self):
        self.buildvariant_name = "buildvariant-name"
        self.generic_buildvariant_name = "generic-buildvariant-name"
        edition = "edition"
        platform = "platform"
        architecture = "architecture"
        raw_yaml_config = {
            "evergreen_projects": [
                "mongodb-mongo-master",
                "mongodb-mongo-v4.4",
            ],
            "evergreen_buildvariants": [
                {
                    "name": self.buildvariant_name,
                    "edition": edition,
                    "platform": platform,
                    "architecture": architecture,
                },
                {
                    "name": self.generic_buildvariant_name,
                    "edition": evergreen_conn.GENERIC_EDITION,
                    "platform": evergreen_conn.GENERIC_PLATFORM,
                    "architecture": evergreen_conn.GENERIC_ARCHITECTURE,
                },
            ]
        }

        download_options = _DownloadOptions(db=True,
                                            ds=False,
                                            da=False,
                                            dv=False)

        options = Namespace(
            install_dir="install",
            link_dir="link",
            edition=edition,
            mv_platform=platform,
            architecture=architecture,
            use_latest=False,
            versions=["4.2.1"],
            evergreen_config=None,
            github_oauth_token=None,
            download_options=download_options,
            debug=False,
        )
        with patch(
                "buildscripts.resmokelib.setup_multiversion.config.SetupMultiversionConfig"
        ) as mock_config:
            mock_config.return_value = SetupMultiversionConfig(raw_yaml_config)
            self.setup_multiversion = SetupMultiversion(**vars(options))
Пример #4
0
 def setUp(self):
     raw_yaml = {
         "evergreen_buildvariants": [
             {
                 "name": "macos-any",
                 "edition": "base",
                 "platform": "osx",
                 "architecture": "x86_64",
             },
             {
                 "name": "macos-4.0",
                 "edition": "base",
                 "platform": "osx",
                 "architecture": "x86_64",
                 "versions": ["4.0"],
             },
         ]
     }
     self.config = SetupMultiversionConfig(raw_yaml)