/// <summary> /// Run the fixture /// </summary> public static void Run() { _repository = OctopusRepository.GetRepository().Result; Log.Logger.Information("**Running Library Fixture**"); CreateLibraryStuff(); }
/// <summary> /// Run the fixture /// </summary> public static void Run() { _repository = OctopusRepository.GetRepository().Result; Log.Logger.Information("**Running Configuration Fixture**"); SetFeatures(); CreateTeams(); CreateUserRoles(); CreateUsers(); }
/// <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**"); }
/// <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**"); }