@@ -59,37 +59,37 @@ public void AliasesWithDashesAreNotStripped()
59
59
60
60
}
61
61
62
- [ Test ]
63
- public void IndexWithDashesAreNotStripped ( )
64
- {
65
- var index = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes" ;
66
- var x = this . _client . CreateIndex ( index ) ;
67
- x . Acknowledged . Should ( ) . BeTrue ( ) ;
68
- var alias = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes-alias" ;
69
- var aliasResult = this . _client . Alias ( a => a . Add ( aa => aa . Index ( index ) . Alias ( alias ) ) ) ;
70
- aliasResult . IsValid . Should ( ) . BeTrue ( ) ;
71
- aliasResult . Acknowledged . Should ( ) . BeTrue ( ) ;
72
-
73
- var elasticsearchClient = new ElasticsearchClient ( ElasticsearchConfiguration . Settings ( ) ) ;
74
- var dynamicResult = elasticsearchClient . IndicesGetAliasForAll ( alias ) ;
75
- dynamicResult . Response . ContainsKey ( index ) . Should ( ) . BeTrue ( ) ;
76
- }
77
-
78
- [ Test ]
79
- public void IndexWithDashesAreNotStripped2 ( )
80
- {
81
- var index = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes" ;
82
- var x = this . _client . CreateIndex ( index ) ;
83
- x . Acknowledged . Should ( ) . BeTrue ( ) ;
84
- var alias = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes-alias" ;
85
- var aliasResult = this . _client . Alias ( a => a . Add ( aa => aa . Index ( index ) . Alias ( alias ) ) ) ;
86
- aliasResult . IsValid . Should ( ) . BeTrue ( ) ;
87
- aliasResult . Acknowledged . Should ( ) . BeTrue ( ) ;
88
-
89
- var elasticsearchClient = new ElasticsearchClient ( ElasticsearchConfiguration . Settings ( ) ) ;
90
- var dynamicResult = elasticsearchClient . IndicesGetAlias ( alias ) ;
91
- dynamicResult . Response . ContainsKey ( index ) . Should ( ) . BeTrue ( ) ;
92
- }
62
+ [ Test ]
63
+ public void IndexWithDashesAreNotStripped ( )
64
+ {
65
+ var index = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes" ;
66
+ var x = this . _client . CreateIndex ( index ) ;
67
+ x . Acknowledged . Should ( ) . BeTrue ( ) ;
68
+ var alias = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes-alias" ;
69
+ var aliasResult = this . _client . Alias ( a => a . Add ( aa => aa . Index ( index ) . Alias ( alias ) ) ) ;
70
+ aliasResult . IsValid . Should ( ) . BeTrue ( ) ;
71
+ aliasResult . Acknowledged . Should ( ) . BeTrue ( ) ;
72
+
73
+ var elasticsearchClient = new ElasticsearchClient ( ElasticsearchConfiguration . Settings ( ) ) ;
74
+ var dynamicResult = elasticsearchClient . IndicesGetAliasForAll ( alias ) ;
75
+ dynamicResult . Response . ContainsKey ( index ) . Should ( ) . BeTrue ( ) ;
76
+ }
77
+
78
+ [ Test ]
79
+ public void IndexWithDashesAreNotStripped2 ( )
80
+ {
81
+ var index = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes" ;
82
+ var x = this . _client . CreateIndex ( index ) ;
83
+ x . Acknowledged . Should ( ) . BeTrue ( ) ;
84
+ var alias = ElasticsearchConfiguration . NewUniqueIndexName ( ) + "-dashes-alias" ;
85
+ var aliasResult = this . _client . Alias ( a => a . Add ( aa => aa . Index ( index ) . Alias ( alias ) ) ) ;
86
+ aliasResult . IsValid . Should ( ) . BeTrue ( ) ;
87
+ aliasResult . Acknowledged . Should ( ) . BeTrue ( ) ;
88
+
89
+ var elasticsearchClient = new ElasticsearchClient ( ElasticsearchConfiguration . Settings ( ) ) ;
90
+ var dynamicResult = elasticsearchClient . IndicesGetAlias ( alias ) ;
91
+ dynamicResult . Response . ContainsKey ( index ) . Should ( ) . BeTrue ( ) ;
92
+ }
93
93
94
94
95
95
}
0 commit comments