예제 #1
0
        /// <summary>
        /// Run the fixture
        /// </summary>
        public static void Run()
        {
            _repository = OctopusRepository.GetRepository().Result;

            Log.Logger.Information("**Running Library Fixture**");

            CreateLibraryStuff();
        }
예제 #2
0
        /// <summary>
        /// Run the fixture
        /// </summary>
        public static void Run()
        {
            _repository = OctopusRepository.GetRepository().Result;

            Log.Logger.Information("**Running Configuration Fixture**");

            SetFeatures();
            CreateTeams();
            CreateUserRoles();
            CreateUsers();
        }
예제 #3
0
        /// <summary>
        /// Run the fixture
        /// </summary>
        public static void Run()
        {
            _repository = OctopusRepository.GetRepository().Result;

            Log.Logger.Information("**Running Infrastructure Fixture**");

            var pgs = CreateProjectGroups();

            CreateLifecycles();
            CreateProjects(pgs);
            CreateLifecycles();
            CreateTagSets();
            CreateTenants();

            Log.Logger.Information("**Finished running Infrastructure Fixture**");
        }
예제 #4
0
        /// <summary>
        /// Run the fixture
        /// </summary>
        public static void Run()
        {
            _repository = OctopusRepository.GetRepository().Result;

            Log.Logger.Information("**Running Deployment Fixture**");

            //Getting all projects from ProjectNames
            _allProjects = _repository.Projects.FindMany(p => ProjectNames.Contains(p.Name)).Result;

            //Getting all releases for projects in _allProjects
            _allReleases = _repository.Releases.FindMany(r => _allProjects.Select(p => p.Id).ToList().Contains(r.ProjectId)).Result;

            //Getting all environments
            _allEnvironments = _repository.Environments.FindAll().Result;

            //Create and deploy releases
            CreateAndDeployReleases();

            Log.Logger.Information("**Finished running Deployment Fixture**");
        }