private void DetermineVaultServerStatus() { VaultCheckout _vaultTest = new VaultCheckout(); _vaultTest.BuildEngine = _buildEngine; _vaultTest.Username = _username; _vaultTest.Password = _password; _vaultTest.Url = _url; try { _vaultTest.Login(); } catch (Exception) { Assert.Ignore(@"The Vault server was not found and is required to run this test fixture."); } }
public void VaultCheckoutTest() { VaultCheckout checkout = new VaultCheckout(); checkout.BuildEngine = _buildEngine; checkout.Username = _username; checkout.Password = _password; checkout.Url = _url; checkout.Repository = _repository; checkout.Path = _repositoryPath + _repositoryFile; checkout.Comment = _checkoutComment; checkout.WorkingFolder = _workingFolder; Assert.IsNotNull(checkout); bool result = checkout.Execute(); Assert.IsTrue(result, "Checkout failed!"); Assert.IsTrue(checkout.Version > 0, "Version number is not greater than zero."); UndoCheckout(); }
private void CheckoutFile() { VaultCheckout checkout = new VaultCheckout(); checkout.BuildEngine = _buildEngine; checkout.Username = _username; checkout.Password = _password; checkout.Url = _url; checkout.Repository = _repository; checkout.Path = _repositoryPath; checkout.Comment = _checkoutComment; checkout.WorkingFolder = _workingFolder; checkout.Execute(); }