File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Tests/Nest.Tests.Integration/Core/Repository Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ public class Snapshot
3737 [ JsonProperty ( "failures" ) ]
3838 public IEnumerable < SnapshotShardFailure > ShardFailures { get ; internal set ; }
3939
40+ [ JsonProperty ( "version_id" ) ]
41+ public int VersionId { get ; internal set ; }
42+
43+ [ JsonProperty ( "version" ) ]
44+ public string Version { get ; internal set ; }
45+
4046 /// <summary>
4147 /// Contains the reason for each shard failure.
4248 /// </summary>
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ public void SnapshotRestore()
7171 snapshotResponse . IsValid . Should ( ) . BeTrue ( ) ;
7272 snapshotResponse . Accepted . Should ( ) . BeTrue ( ) ;
7373 snapshotResponse . Snapshot . Should ( ) . NotBeNull ( ) ;
74+ if ( ElasticsearchConfiguration . CurrentVersion >= new Version ( "1.7.0" ) )
75+ snapshotResponse . Snapshot . VersionId . Should ( ) . BeGreaterThan ( 0 ) ;
76+
7477 snapshotResponse . Snapshot . EndTimeInMilliseconds . Should ( ) . BeGreaterThan ( 0 ) ;
7578 snapshotResponse . Snapshot . StartTime . Should ( ) . BeAfter ( DateTime . UtcNow . AddDays ( - 1 ) ) ;
7679
You can’t perform that action at this time.
0 commit comments