Skip to content

Commit b1b6482

Browse files
committed
Added debugging to figure out cause of test failure on CI.
1 parent 8836932 commit b1b6482

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault.Test/Models/UtilitiesTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@
1919
using System;
2020
using System.IO;
2121
using System.Linq;
22+
using System.Reflection;
2223
using Xunit;
2324
using Xunit.Abstractions;
2425

2526
namespace Microsoft.Azure.Commands.KeyVault.Test.Models
2627
{
2728
public class UtilitiesTests
2829
{
30+
private ITestOutputHelper _output;
31+
2932
public UtilitiesTests(ITestOutputHelper output)
3033
{
34+
_output = output;
3135
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
3236
}
3337

@@ -63,7 +67,11 @@ public void GetWebKeyFromByok()
6367
public void GetWebKeyFromCertificate()
6468
{
6569
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}");
6673
string path = Path.Combine(Directory.GetCurrentDirectory(), "Resources", "pshtest.pfx");
74+
_output.WriteLine($"Path: {path}");
6775

6876
IWebKeyConverter converters = WebKeyConverterFactory.CreateConverterChain();
6977
var webKey = converters.ConvertKeyFromFile(new FileInfo(path), password.ConvertToSecureString());

0 commit comments

Comments
 (0)