mirror of
https://github.com/bitwarden/server.git
synced 2025-01-10 20:07:56 +01:00
[EC-736] Update build to run SCIM tests and fix failing test (#2402)
* [EC-736] Revert change on OrganizationUserUserViewQuery Revert a change that was causing the query to not return results when the OrganizationUser did not have a corresponding row on the Users table * [EC-736] Update build to run bitwarden_license test projects
This commit is contained in:
parent
37ed4f43b2
commit
9ecf69d9ca
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -78,7 +78,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Test Bitwarden solution
|
- name: Test Bitwarden solution
|
||||||
run: dotnet test ./bitwarden_license/test/Commercial.Core.Test --configuration Debug --no-build
|
run: dotnet test ./bitwarden_license/test --configuration Debug --no-build
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
build-artifacts:
|
build-artifacts:
|
||||||
|
37
bitwarden_license/test/bitwarden_license.tests.sln
Normal file
37
bitwarden_license/test/bitwarden_license.tests.sln
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 25.0.1703.8
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commercial.Core.Test", "Commercial.Core.Test\Commercial.Core.Test.csproj", "{70F03E72-2F38-4497-BF31-EA19B13B2161}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scim.Test", "Scim.Test\Scim.Test.csproj", "{9BC8E2C9-400D-4FA7-86CA-3E1794E7CA4C}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scim.IntegrationTest", "Scim.IntegrationTest\Scim.IntegrationTest.csproj", "{45CD3F1B-127E-44B7-B22B-28D677B621D9}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{70F03E72-2F38-4497-BF31-EA19B13B2161}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{70F03E72-2F38-4497-BF31-EA19B13B2161}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{70F03E72-2F38-4497-BF31-EA19B13B2161}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{70F03E72-2F38-4497-BF31-EA19B13B2161}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{9BC8E2C9-400D-4FA7-86CA-3E1794E7CA4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9BC8E2C9-400D-4FA7-86CA-3E1794E7CA4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9BC8E2C9-400D-4FA7-86CA-3E1794E7CA4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{9BC8E2C9-400D-4FA7-86CA-3E1794E7CA4C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{45CD3F1B-127E-44B7-B22B-28D677B621D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{45CD3F1B-127E-44B7-B22B-28D677B621D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{45CD3F1B-127E-44B7-B22B-28D677B621D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{45CD3F1B-127E-44B7-B22B-28D677B621D9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {BAD5FA17-2653-401A-A1E5-A31C420B9DE8}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
@ -28,7 +28,7 @@ public class OrganizationUserUserDetailsViewQuery : IQuery<OrganizationUserUserD
|
|||||||
SsoExternalId = x.su.ExternalId,
|
SsoExternalId = x.su.ExternalId,
|
||||||
Permissions = x.ou.Permissions,
|
Permissions = x.ou.Permissions,
|
||||||
ResetPasswordKey = x.ou.ResetPasswordKey,
|
ResetPasswordKey = x.ou.ResetPasswordKey,
|
||||||
UsesKeyConnector = x.u.UsesKeyConnector,
|
UsesKeyConnector = x.u != null && x.u.UsesKeyConnector,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user