public void Should_Rebuild_Server()
        {
            var provider = new CloudServersProvider(_testIdentity);
            _preBuildDetails = provider.GetDetails(_testServer.Id);
            var image = provider.ListImages().First(i => i.Name.Contains("CentOS") && i.Id != _preBuildDetails.Image.Id);
            var flavor = int.Parse(_preBuildDetails.Flavor.Id) + 1;

            _rebuildServer = provider.RebuildServer(_testServer.Id, string.Format("{0}_REBUILD", _preBuildDetails.Name), image.Id, flavor.ToString(), _testServer.AdminPassword);

            Assert.IsNotNull(_rebuildServer);
        }
Esempio n. 2
0
        public void Should_Mark_Server_To_Be_UnRescued()
        {
            var provider = new ComputeProvider(_testIdentity);

            _unRescueDetails = provider.UnRescueServer(_testServer.Id);

            Assert.IsNotNull(_unRescueDetails);
        }