File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6767 end
6868end
6969
70- YAML_FILES_DIRECTORY = "#{ PROJECT_PATH } /tmp/rest-api-spec/#{ STACK_VERSION . match? ( /^8\. / ) ? 'compatTest' : 'test' } /platinum"
70+ tests_dir = [ true , 'true' ] . include? ( ENV [ 'ELASTIC_CLIENT_APIVERSIONING' ] ) ? 'compatTest' : 'test'
71+ YAML_FILES_DIRECTORY = "#{ PROJECT_PATH } /tmp/rest-api-spec/#{ tests_dir } /platinum" . freeze
7172
7273SINGLE_TEST = if ENV [ 'SINGLE_TEST' ] && !ENV [ 'SINGLE_TEST' ] . empty?
7374 test_target = ENV [ 'SINGLE_TEST' ]
7475 path = File . expand_path ( File . dirname ( '..' ) )
7576
7677 if test_target . match? ( /\. yml$/ )
77- [ "#{ path } /../tmp/rest-api-spec/test /platinum/#{ test_target } " ]
78+ [ "#{ path } /../tmp/rest-api-spec/#{ tests_dir } /platinum/#{ test_target } " ]
7879 else
7980 Dir . glob (
80- [ "#{ PROJECT_PATH } /tmp/rest-api-spec/test /platinum/#{ test_target } /**/*.yml" ]
81+ [ "#{ PROJECT_PATH } /tmp/rest-api-spec/#{ tests_dir } /platinum/#{ test_target } /**/*.yml" ]
8182 )
8283 end
8384 end
You can’t perform that action at this time.
0 commit comments