Merge pull request #259 from NoxOrg/feature/implement-find-aad-group-… #474
GitHub Actions / Tests Results
failed
Jul 10, 2024 in 0s
11 passed, 2 failed and 1 skipped
✅ tests/Nox.Cli.Tests/TestResults/test-results.trx
1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Nox.Cli.Tests.Extensions.JobExtensionsTests | 1✅ | 264ms |
✅ Nox.Cli.Tests.Extensions.JobExtensionsTests
✅ WhenCloneJobShouldSucceed(fixture: [···])
❌ tests/Plugin.AzDevOps.Tests/TestResults/test-results.trx
2 tests were completed in 3s with 0 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Plugin.AzDevOps.Tests.GroupTests | 2❌ | 2ms |
❌ Plugin.AzDevOps.Tests.GroupTests
❌ Can_verify_whether_an_aad_group_exists_or_not(groupName: "NOX_PROJECT_DOESNOTEXIST", result: False)
System.AggregateException : One or more errors occurred. (One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)) (The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture)
---- System.AggregateException : One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)
-------- Azure.Identity.AuthenticationFailedException : InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
------------ Microsoft.Identity.Client.Extensions.Msal.MsalCachePersistenceException : Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
---------------- Microsoft.Identity.Extensions.InteropException : An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0
-------------------- Microsoft.Identity.Extensions.InteropException : An error was encountered while saving secret to keyring in the Storage domain:'95' code:'2' message:'The name org.freedesktop.secrets was not provided by any .service files' .Error code: 2
---- The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture
❌ Can_verify_whether_an_aad_group_exists_or_not(groupName: "NOX_PROJECTS_ALL", result: True)
System.AggregateException : One or more errors occurred. (One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)) (The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture)
---- System.AggregateException : One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)
-------- Azure.Identity.AuthenticationFailedException : InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
------------ Microsoft.Identity.Client.Extensions.Msal.MsalCachePersistenceException : Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
---------------- Microsoft.Identity.Extensions.InteropException : An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0
-------------------- Microsoft.Identity.Extensions.InteropException : An error was encountered while saving secret to keyring in the Storage domain:'95' code:'2' message:'The name org.freedesktop.secrets was not provided by any .service files' .Error code: 2
---- The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture
✅ tests/Plugin.Core.Tests/TestResults/test-results.trx
1 tests were completed in 895ms with 0 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Plugin.Core.Tests.SnakeNameTests | 1⚪ | 1ms |
✅ Plugin.Core.Tests.SnakeNameTests
⚪ Can_Convert_To_Snake_Name
✅ tests/Plugin.File.Tests/TestResults/test-results.trx
6 tests were completed in 1s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Plugin.File.Tests.CopyFileTests | 3✅ | 30ms | ||
Plugin.File.Tests.CopyFolderTests | 1✅ | 174ms | ||
Plugin.File.Tests.FileRenameTests | 1✅ | 188ms | ||
Plugin.File.Tests.FolderRenameTests | 1✅ | 191ms |
✅ Plugin.File.Tests.CopyFileTests
✅ Can_copy_a_File_if_destination_folder_does_not_exist
✅ Can_copy_a_File_if_destination_folder_exists_and_overwrite_specified
✅ Must_not_copy_if_destination_folder_exists_and_overwrite_not_specified
✅ Plugin.File.Tests.CopyFolderTests
✅ Can_copy_a_File_if_destination_folder_does_not_exist
✅ Plugin.File.Tests.FileRenameTests
✅ Can_Rename_a_File
✅ Plugin.File.Tests.FolderRenameTests
✅ Can_Rename_a_Folder
✅ tests/Plugin.Git.Tests/TestResults/test-results.trx
3 tests were completed in 1s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Plugin.Git.Tests.InitTests | 3✅ | 293ms |
✅ Plugin.Git.Tests.InitTests
✅ Can_initialize_a_local_git_repo
✅ Must_get_warning_if_initializing_more_than_once
✅ Must_not_get_warning_if_initializing_more_than_once_and_suppress_warnings_on
✅ tests/Plugin.Powershell.Tests/TestResults/test-results.trx
1 tests were completed in 3s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Plugin.Powershell.Tests.PwshTests | 1✅ | 2s |
✅ Plugin.Powershell.Tests.PwshTests
✅ Can_copy_a_File_if_destination_folder_does_not_exist
Annotations
Check failure on line 223 in src/Nox.Cli.Caching/NoxCliCacheManager.cs
github-actions / Tests Results
Plugin.AzDevOps.Tests.GroupTests ► Can_verify_whether_an_aad_group_exists_or_not(groupName: "NOX_PROJECT_DOESNOTEXIST", result: False)
Failed test found in:
tests/Plugin.AzDevOps.Tests/TestResults/test-results.trx
tests/Plugin.AzDevOps.Tests/TestResults/test-results.trx
Error:
System.AggregateException : One or more errors occurred. (One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)) (The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture)
---- System.AggregateException : One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)
-------- Azure.Identity.AuthenticationFailedException : InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
------------ Microsoft.Identity.Client.Extensions.Msal.MsalCachePersistenceException : Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
---------------- Microsoft.Identity.Extensions.InteropException : An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0
-------------------- Microsoft.Identity.Extensions.InteropException : An error was encountered while saving secret to keyring in the Storage domain:'95' code:'2' message:'The name org.freedesktop.secrets was not provided by any .service files' .Error code: 2
---- The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture
Raw output
System.AggregateException : One or more errors occurred. (One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)) (The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture)
---- System.AggregateException : One or more errors occurred. (InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.)
-------- Azure.Identity.AuthenticationFailedException : InteractiveBrowserCredential authentication failed: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
------------ Microsoft.Identity.Client.Extensions.Msal.MsalCachePersistenceException : Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
---------------- Microsoft.Identity.Extensions.InteropException : An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0
-------------------- Microsoft.Identity.Extensions.InteropException : An error was encountered while saving secret to keyring in the Storage domain:'95' code:'2' message:'The name org.freedesktop.secrets was not provided by any .service files' .Error code: 2
---- The following constructor parameters did not have matching fixture data: DevOpsIntegrationFixture fixture
----- Inner Stack Trace #1 (System.AggregateException) -----
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Nox.Cli.Caching.NoxCliCacheManager.GetCredentialsFromAzureToken() in /home/runner/work/Nox.Cli/Nox.Cli/src/Nox.Cli.Caching/NoxCliCacheManager.cs:line 223
at Nox.Cli.Caching.NoxCliCacheManager.Build() in /home/runner/work/Nox.Cli/Nox.Cli/src/Nox.Cli.Caching/NoxCliCacheManager.cs:line 189
at Nox.Cli.Caching.NoxCliCacheBuilder.Build() in /home/runner/work/Nox.Cli/Nox.Cli/src/Nox.Cli.Caching/NoxCliCacheBuilder.cs:line 51
at Plugin.AzDevOps.Tests.DevOpsIntegrationFixture..ctor() in /home/runner/work/Nox.Cli/Nox.Cli/tests/Plugin.AzDevOps.Tests/DevOpsIntegrationFixture.cs:line 30
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage, Boolean isCredentialUnavailable)
at Azure.Identity.InteractiveBrowserCredential.AuthenticateImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.InteractiveBrowserCredential.AuthenticateAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
at Azure.Identity.InteractiveBrowserCredential.AuthenticateAsync(CancellationToken cancellationToken)
at Nox.Cli.Caching.CredentialHelper.GetCredentialFromCacheOrBrowser() in /home/runner/work/Nox.Cli/Nox.Cli/src/Nox.Cli.Caching/CredentialHelper.cs:line 31
----- Inner Stack Trace -----
at Microsoft.Identity.Client.Extensions.Msal.Storage.VerifyPersistence()
at Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.VerifyPersistence()
at Azure.Identity.MsalCacheHelperWrapper.VerifyPersistence()
at Azure.Identity.TokenCache.GetCacheHelperAsync(Boolean async, CancellationToken cancellationToken)
at Azure.Identity.TokenCache.GetCacheHelperAsync(Boolean async, CancellationToken cancellationToken)
at Azure.Identity.TokenCache.RegisterCache(Boolean async, ITokenCache tokenCache, CancellationToken cancellationToken)
at Azure.Identity.MsalClientBase`1.GetClientAsync(Boolean enableCae, Boolean async, CancellationToken cancellationToken)
at Azure.Identity.MsalPublicClient.AcquireTokenInteractiveCoreAsync(String[] scopes, String claims, Prompt prompt, String loginHint, String tenantId, Boolean enableCae, BrowserCustomizationOptions browserOptions, Boolean async, CancellationToken cancellationToken)
at Azure.Identity.MsalPublicClient.AcquireTokenInteractiveAsync(String[] scopes, String claims, Prompt prompt, String loginHint, String tenantId, Boolean enableCae, BrowserCustomizationOptions browserOptions, Boolean async, CancellationToken cancellationToken)
at Azure.Identity.InteractiveBrowserCredential.GetTokenViaBrowserLoginAsync(TokenRequestContext context, Boolean async, CancellationToken cancellationToken)
at Azure.Identity.InteractiveBrowserCredential.AuthenticateImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
----- Inner Stack Trace -----
at Microsoft.Identity.Client.Extensions.Msal.LinuxKeyringAccessor.Write(Byte[] data)
at Microsoft.Identity.Client.Extensions.Msal.Storage.VerifyPersistence()
----- Inner Stack Trace -----
at Microsoft.Identity.Client.Extensions.Msal.LinuxKeyringAccessor.Write(Byte[] data)
----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
Loading