We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c96db commit b9aeb04Copy full SHA for b9aeb04
src/Tests/XPack/Security/RoleMapping/RoleMappingCrudTests.cs
@@ -135,7 +135,11 @@ protected override void ExpectAfterCreate(IGetRoleMappingResponse response)
135
136
mapping.Enabled.Should().BeFalse();
137
mapping.Roles.Should().BeEquivalentTo("admin");
138
- mapping.Metadata.Should().HaveCount(1).And.ContainKeys("x");
+ //source serializer includes nulls on deserialize
139
+ if (TestClient.Configuration.UsingCustomSourceSerializer)
140
+ mapping.Metadata.Should().HaveCount(2).And.ContainKeys("x", "z");
141
+ else
142
+ mapping.Metadata.Should().HaveCount(1).And.ContainKeys("x");
143
mapping.Rules.Should().NotBeNull();
144
145
var allMapping = mapping.Rules as AllRoleMappingRule;
0 commit comments