Skip to content

Conversation

gmarz
Copy link
Contributor

@gmarz gmarz commented Oct 25, 2016

Our property mapping tests weren't sufficient as they
only tested serilization of fluent syntax and attribute
types.

This commit adds new tests that test both the fluent and
initializer types, and run them as integration tests as well
so we can validate our properties against ES.

Also tackled #2322 and #2059 as part of this, as I did a full pass over
all of our datatype mappings.

protected abstract object ExpectJson { get; }

protected virtual object ExpectJsonFluentOnly { get; }
public TypeMappingTestBase(WritableCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: protected

@russcam
Copy link
Contributor

russcam commented Oct 25, 2016

LGTM

Our property mapping tests weren't sufficient as they
only tested serilization of fluent syntax and attribute
types.

This commit adds new tests that test both the fluent and
initializer types, and run them as integration tests as well
so we can validate our properties against ES.

Also tackled #2322 as part of this, as I did a full pass over
all of our datatype mappings.

Code review changes and rename of base test classes

Change DynamicMapping to Union<bool, DynamicMapping>
@gmarz gmarz force-pushed the fix/mapping-tests branch from ee62df7 to 7b5eb01 Compare October 25, 2016 13:40
@gmarz gmarz merged commit b0028d4 into 5.x Oct 25, 2016
@gmarz gmarz deleted the fix/mapping-tests branch October 25, 2016 13:40
gmarz added a commit that referenced this pull request Oct 25, 2016
Our property mapping tests weren't sufficient as they
only tested serilization of fluent syntax and attribute
types.

This commit adds new tests that test both the fluent and
initializer types, and run them as integration tests as well
so we can validate our properties against ES.

Also tackled #2322 as part of this, as I did a full pass over
all of our datatype mappings.

Code review changes and rename of base test classes

Change DynamicMapping to Union<bool, DynamicMapping>
@gmarz
Copy link
Contributor Author

gmarz commented Oct 25, 2016

Ported to master 0004812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants