File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/Tests/Nest.Tests.Integration Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,23 @@ namespace Nest.Tests.Integration.Core.Scripts
1212 public class ScriptsTest : IntegrationTests
1313 {
1414 [ Test ]
15+ [ SkipVersion ( "0 - 1.2.9" , "Indexed scripts introduced in ES 1.3" ) ]
1516 public void AddScriptWithNotSupportedLangParameterShouldBeInvalid ( )
1617 {
1718 var putScriptResponse = this . Client . PutScript ( s => s . Lang ( "lang" ) . Id ( "id" ) . Script ( "1*1" ) ) ;
1819 putScriptResponse . IsValid . Should ( ) . BeFalse ( ) ;
1920 }
2021
2122 [ Test ]
23+ [ SkipVersion ( "0 - 1.2.9" , "Indexed scripts introduced in ES 1.3" ) ]
2224 public void AddScript ( )
2325 {
2426 var putScriptResponse = this . Client . PutScript ( s => s . Lang ( ScriptLang . Groovy ) . Id ( "id" ) . Script ( "1*1" ) ) ;
2527 putScriptResponse . IsValid . Should ( ) . BeTrue ( ) ;
2628 }
2729
2830 [ Test ]
31+ [ SkipVersion ( "0 - 1.2.9" , "Indexed scripts introduced in ES 1.3" ) ]
2932 public void GetScriptShouldReturnScriptContent ( )
3033 {
3134 var script = "1*1" ;
@@ -38,6 +41,7 @@ public void GetScriptShouldReturnScriptContent()
3841 }
3942
4043 [ Test ]
44+ [ SkipVersion ( "0 - 1.2.9" , "Indexed scripts introduced in ES 1.3" ) ]
4145 public void AddAndDeleteScript ( )
4246 {
4347 var putScriptResponse = this . Client . PutScript ( s => s . Lang ( ScriptLang . Groovy ) . Id ( "id" ) . Script ( "1*1" ) ) ;
Original file line number Diff line number Diff line change @@ -34,13 +34,14 @@ public void SimpleExplain()
3434 }
3535
3636 [ Test ]
37+ [ SkipVersion ( "0 - 1.2.9" , "Indexed scripts introduced in ES 1.3" ) ]
3738 public void IndexedScript ( )
3839 {
3940 var script = "doc['loc'].value * multiplier" ;
4041 var scriptId = "test" ;
4142 var lang = "groovy" ;
4243
43- this . Client . PutScript ( s => s . Lang ( lang ) . Id ( scriptId ) . Script ( script ) ) ;
44+ var putResult = this . Client . PutScript ( s => s . Lang ( lang ) . Id ( scriptId ) . Script ( script ) ) ;
4445
4546 var queryResults = this . Client . Search < ElasticsearchProject > ( s => s
4647 . From ( 0 )
You can’t perform that action at this time.
0 commit comments