Exemple #1
0
        public void GetBombardierDatabaseByConfigName()
        {
            var query = new TeamCitySharpClient(Host, UserName, Password);
            var ret   = query.GetDatabaseJsonByConfigName("Bombardier");

            Assert.NotNull(ret);
        }
Exemple #2
0
        public void GetJrEastFleetJson()
        {
            var query = new TeamCitySharpClient(Host, UserName, Password);
            var fleet = query.GetDatabaseJsonById(JrEastConfigId);

            Assert.NotNull(fleet);
        }
Exemple #3
0
        public void GetListOfRunningBuildsReturnsSomeOrEmpty()
        {
            var query  = new TeamCitySharpClient(Host, UserName, Password);
            var builds = query.GetListOfRunningBuilds();

            query.DownloadConfiguration(JrEastConfigId);
            Assert.IsTrue(builds != null);
        }
Exemple #4
0
        public void GetAllClientNamesReturnsSome()
        {
            var query = new TeamCitySharpClient(Host, UserName, Password);
            var found = query.GetAllClientNames("Clients");

            Assert.IsTrue(found.Count > 1);
            Assert.IsTrue(found.Any(x => x.Equals("Bombardier") || x.Equals("Kaneko")));
        }
Exemple #5
0
        public void GetAllProjectsReturnsAll()
        {
            var            query    = new TeamCitySharpClient(Host, UserName, Password);
            List <Project> projects = query.GetAllProjects();

            Assert.IsTrue(projects != null);
            Assert.IsTrue(projects.Count > 0);
        }
Exemple #6
0
        public void GetsDatabasesForAllClientNames()
        {
            var tc    = new TeamCitySharpClient(Host, UserName, Password);
            var rs    = new RestSharpHelper(Host, UserName, Password);
            var names = tc.GetAllClientNames();
            var bds   = new List <string>();

            names.ForEach(x => bds.Add(rs.GetDatabase(x)));
            Assert.IsTrue(bds.Count > 1);
        }
Exemple #7
0
        public void GetsBuildStatus()
        {
            var tc = new TeamCitySharpClient(Host, UserName, Password);

            Assert.IsTrue(!string.IsNullOrWhiteSpace(tc.GetBuildStatus("AtCaptureLibrary")));
        }