File tree Expand file tree Collapse file tree
tests/serverspec/spec/shared/typo3-solr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ dockerTest:
3535 dockerfile :
3636 ' /varnish ' :
3737 - ' ENV VARNISH_BACKEND_HOST webdevops.io'
38- ' /typo3-solr ' :
39- - ' USER root'
40- - ' RUN apt-get update && apt-get install -y -f --no-install-recommends lsb-release lsb-base net-tools && apt-get clean -y'
41- - ' USER solr'
4238
4339 configuration :
4440 default :
@@ -117,10 +113,15 @@ dockerTest:
117113 ' /samson-deployment ' :
118114 OS_FAMILY : ' debian'
119115 OS_VERSION : ' 8'
120- ' /typo3-solr ' :
121- OS_FAMILY : ' debian'
122- OS_VERSION : ' 8'
116+ ' /typo3-solr:5.0 ' :
117+ SOLR_VERSION : ' 4.10.4'
118+ OS_FAMILY : ' arch'
119+ OS_VERSION : ' '
123120 ' /typo3-solr:6.0 ' :
124121 SOLR_VERSION : ' 6.3.0'
122+ OS_FAMILY : ' debian'
123+ OS_VERSION : ' 8'
125124 ' /typo3-solr:latest ' :
126- SOLR_VERSION : ' 6.3.0'
125+ OS_FAMILY : ' debian'
126+ OS_FAMILY : ' debian'
127+ OS_VERSION : ' 8'
Original file line number Diff line number Diff line change 11shared_examples 'typo3-solr::service::running' do
22 describe "service solr check" do
3- it "should have running solr daemon" , :retry => 20 , :retry_wait => 3 do
3+ it "should have running solr daemon" , :retry => 10 , :retry_wait => 3 do
44 check_if_service_is_running_stable ( "java" )
55 end
66 end
Original file line number Diff line number Diff line change 11shared_examples 'typo3-solr::test' do
22 describe 'solr-system-status' do
3- it 'solr version should be correct' , :retry => 20 , :retry_wait => 3 do
3+ it 'solr version should be correct' , :retry => 10 , :retry_wait => 3 do
44 content = get_url ( 'http://localhost:8983/solr/admin/info/system?wt=json' )
55 content = JSON . parse ( content )
66
7- expect ( content [ 'solr_home' ] ) . to eql ( '/opt/solr/server/solr' )
7+ if content . key? ( 'solr_home' )
8+ expect ( content [ 'solr_home' ] ) . to eql ( '/opt/solr/server/solr' )
9+ end
10+
811 expect ( content [ 'lucene' ] [ 'solr-spec-version' ] ) . to eql ( ENV [ 'SOLR_VERSION' ] )
912 end
1013 end
1114
1215 describe 'solr-core-status' do
13- it 'solr version should be correct' , :retry => 20 , :retry_wait => 3 do
16+ it 'solr version should be correct' , :retry => 10 , :retry_wait => 3 do
1417 content = get_url ( 'http://localhost:8983/solr/admin/cores?indexInfo=false&wt=json' )
1518 content = JSON . parse ( content )
1619
3336 "core_hu" ,
3437 "core_hy" ,
3538 "core_id" ,
36- "core_ie" ,
39+ # "core_ie",
3740 "core_it" ,
3841 "core_ja" ,
3942 "core_km" ,
4043 "core_ko" ,
4144 "core_lo" ,
42- "core_lv" ,
45+ # "core_lv",
4346 "core_my" ,
4447 "core_nl" ,
4548 "core_no" ,
4649 "core_pl" ,
4750 "core_pt" ,
4851 "core_ptbr" ,
4952 "core_ro" ,
50- "core_rs" ,
53+ # "core_rs",
5154 "core_ru" ,
5255 "core_sv" ,
5356 "core_th" ,
You can’t perform that action at this time.
0 commit comments