File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/ResourceManager/KeyVault/Commands.KeyVault.Test/Models Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 19
19
using System ;
20
20
using System . IO ;
21
21
using System . Linq ;
22
+ using System . Reflection ;
22
23
using Xunit ;
23
24
using Xunit . Abstractions ;
24
25
25
26
namespace Microsoft . Azure . Commands . KeyVault . Test . Models
26
27
{
27
28
public class UtilitiesTests
28
29
{
30
+ private ITestOutputHelper _output ;
31
+
29
32
public UtilitiesTests ( ITestOutputHelper output )
30
33
{
34
+ _output = output ;
31
35
XunitTracingInterceptor . AddToContext ( new XunitTracingInterceptor ( output ) ) ;
32
36
}
33
37
@@ -63,7 +67,11 @@ public void GetWebKeyFromByok()
63
67
public void GetWebKeyFromCertificate ( )
64
68
{
65
69
string password = "123" ;
70
+ _output . WriteLine ( $ "Assembly: { Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) } ") ;
71
+ _output . WriteLine ( $ "Current: { Directory . GetCurrentDirectory ( ) } ") ;
72
+ _output . WriteLine ( $ "Exists: { new FileInfo ( "./Resources/pshtest.pfx" ) . Exists } ") ;
66
73
string path = Path . Combine ( Directory . GetCurrentDirectory ( ) , "Resources" , "pshtest.pfx" ) ;
74
+ _output . WriteLine ( $ "Path: { path } ") ;
67
75
68
76
IWebKeyConverter converters = WebKeyConverterFactory . CreateConverterChain ( ) ;
69
77
var webKey = converters . ConvertKeyFromFile ( new FileInfo ( path ) , password . ConvertToSecureString ( ) ) ;
You can’t perform that action at this time.
0 commit comments