diff options
author | WouterTinus <wouter.tinus@gmail.com> | 2019-05-30 12:49:22 +0200 |
---|---|---|
committer | WouterTinus <wouter.tinus@gmail.com> | 2019-05-30 12:49:22 +0200 |
commit | f72762638cb6deb2fdccac211a3a6c320412d56f (patch) | |
tree | f94e8685bac90364bff653bc231777348fe13f38 /src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs | |
parent | 9336ea242d9a561e6abc7b4011058895b7ef18ba (diff) | |
download | letsencrypt-win-simple-origin/2.0.7.zip letsencrypt-win-simple-origin/2.0.7.tar.gz letsencrypt-win-simple-origin/2.0.7.tar.bz2 |
Fix unit testsv2.0.7origin/2.0.7
Diffstat (limited to 'src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs')
-rw-r--r-- | src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs b/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs index 7244acc..274233f 100644 --- a/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs +++ b/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs @@ -64,13 +64,14 @@ namespace PKISharp.WACS.UnitTests.Tests.InstallationPluginTests var store = new CertificateStore(log, iis, storeOptions); var oldCert = cs.RequestCertificate(null, RunLevel.Unattended, renewal, new Target() { CommonName = "test.local" }, null); var newCert = cs.RequestCertificate(null, RunLevel.Unattended, renewal, new Target() { CommonName = "test.local" }, null); + newCert.StoreInfo.Add(typeof(CertificateStore), new StoreInfo() { }); var options = new ScriptOptions { Script = script, ScriptParameters = parameters }; var installer = new Script(renewal, options, log); - installer.Install(store, newCert, oldCert); + installer.Install(new[] { store }, newCert, oldCert); } [TestMethod] |