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
37
37
[ JsonProperty ( "failures" ) ]
38
38
public IEnumerable < SnapshotShardFailure > ShardFailures { get ; internal set ; }
39
39
40
+ [ JsonProperty ( "version_id" ) ]
41
+ public int VersionId { get ; internal set ; }
42
+
43
+ [ JsonProperty ( "version" ) ]
44
+ public string Version { get ; internal set ; }
45
+
40
46
/// <summary>
41
47
/// Contains the reason for each shard failure.
42
48
/// </summary>
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ public void SnapshotRestore()
71
71
snapshotResponse . IsValid . Should ( ) . BeTrue ( ) ;
72
72
snapshotResponse . Accepted . Should ( ) . BeTrue ( ) ;
73
73
snapshotResponse . Snapshot . Should ( ) . NotBeNull ( ) ;
74
+ if ( ElasticsearchConfiguration . CurrentVersion >= new Version ( "1.7.0" ) )
75
+ snapshotResponse . Snapshot . VersionId . Should ( ) . BeGreaterThan ( 0 ) ;
76
+
74
77
snapshotResponse . Snapshot . EndTimeInMilliseconds . Should ( ) . BeGreaterThan ( 0 ) ;
75
78
snapshotResponse . Snapshot . StartTime . Should ( ) . BeAfter ( DateTime . UtcNow . AddDays ( - 1 ) ) ;
76
79
You can’t perform that action at this time.
0 commit comments