This repository was archived by the owner on Dec 19, 2023. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 10 files changed +65
-1673
lines changed Expand file tree Collapse file tree 10 files changed +65
-1673
lines changed Original file line number Diff line number Diff line change @@ -197,45 +197,34 @@ orbs:
197197                pip install git+https://github.com/pixelb/crudini         
198198                mkdir test-results 
199199           - run :
200-               name : Splunk up  
200+               name : Splunk Testing  
201201              command : | 
202+                 # Start Splunk 
202203                ls -l deps/build/addonfactory_test_matrix_splunk/splunk_matrix.conf 
203204                export SPLUNK_VERSION=$(crudini --get deps/build/addonfactory_test_matrix_splunk/splunk_matrix.conf "<<parameters.splunk_version>>" VERSION) 
204205                export SPLUNK_APP_ID=$(crudini --get package/default/app.conf id name) 
205206                docker-compose -f docker-compose-ci.yml build 
206207                docker-compose -f docker-compose-ci.yml up -d splunk                 
207208                until docker-compose -f docker-compose-ci.yml logs splunk | grep "Ansible playbook complete" ; do sleep 1; done 
208-            - run :
209-               name : Run diag 
210-               when : always 
211-               command : | 
209+                 # Run a Splunk Diag 
212210                mkdir /tmp/diag 
213211                diag=$(docker-compose -f docker-compose-ci.yml exec splunk sudo -u splunk /opt/splunk/bin/splunk diag | grep "Splunk diagnosis file created" | sed -n 's/.* \(\/.*\.gz\)/\1/p')  
214212                docker-compose -f docker-compose-ci.yml exec splunk sudo chmod +r ${diag//[$'\t\r\n']} 
215213                docker cp project_splunk_1:${diag//[$'\t\r\n']} /tmp/diag 
216-            - run :
217-               name : Check btool 
218-               when : always 
219-               command : | 
214+                 # Check with btool 
220215                docker-compose -f docker-compose-ci.yml exec splunk sudo /opt/splunk/bin/splunk cmd btool check 
221216                docker-compose -f docker-compose-ci.yml up -d splunk 
222217                sleep 30 
223-            - run :
224-               name : Test 
225-               when : always 
226-               command : | 
218+                 # Run the tests 
227219                docker-compose -f docker-compose-ci.yml up  --abort-on-container-exit test 
228-                no_output_timeout : 1h 
229-           - run :
230-               name : collect results 
231-               when : always 
232-               command : | 
220+                 # Collect Results 
233221                docker volume ls 
234222                docker container create --name dummy \ 
235223                                    -v project_results:/work/test-results \ 
236224                                    registry.access.redhat.com/ubi7/ubi 
237225                docker cp dummy:/work/test-results/test.xml test-results/ 
238-                 docker cp dummy:/work/test-results/cim-compliance-report.md test-results/ 
226+                 docker cp dummy:/work/test-results/cim-compliance-report.md test-results/ || true  
227+                no_output_timeout : 2h 
239228    jobs :
240229      aio :
241230        resource_class : xlarge 
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 1+ version : 2 
2+ updates :
3+   #  Maintain dependencies for GitHub Actions
4+   - package-ecosystem : " github-actions" 
5+     directory : " /" 
6+     target-branch : " develop" 
7+     schedule :
8+       interval : " daily" 
9+   - package-ecosystem : " gitsubmodule" 
10+     directory : " /" 
11+     target-branch : " develop" 
12+     schedule :
13+       interval : " daily" 
14+   - package-ecosystem : " gitsubmodule" 
15+     directory : " /deps/build" 
16+     target-branch : " develop" 
17+     schedule :
18+       interval : " daily" 
19+   - package-ecosystem : " gitsubmodule" 
20+     directory : " /deps/apps" 
21+     target-branch : " develop" 
22+     schedule :
23+       interval : " daily" 
24+   - package-ecosystem : " pip" 
25+     directory : " /" 
26+     target-branch : " develop" 
27+     schedule :
28+       interval : " daily" 
29+   - package-ecosystem : " pip" 
30+     directory : " /tests" 
31+     target-branch : " develop" 
32+     schedule :
33+       interval : " daily" 
Original file line number Diff line number Diff line change 1+ # #
2+ # # SPDX-FileCopyrightText: 2020 Splunk, Inc. <[email protected] >3+ # # SPDX-License-Identifier: LicenseRef-Splunk-1-2020
4+ # #
5+ # #
6+ name : REUSE Compliance Check 
7+ 
8+ on : [push, pull_request] 
9+ 
10+ jobs :
11+   test :
12+     runs-on : ubuntu-latest 
13+     steps :
14+       - uses : actions/checkout@v2 
15+       - name : REUSE Compliance Check 
16+ 
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ norecursedirs = .git .venv venv build deps tests/deps node_modules package
88addopts  = -v --tb =long
99    --splunk-data-generator =tests/data
1010    --splunk-type =docker
11-     -n 15
11+     --sc4s-host =sc4s
12+     -n 5
1213    --keepalive
1314filterwarnings  =
1415    ignore::DeprecationWarning
Original file line number Diff line number Diff line change 33## SPDX-License-Identifier: LicenseRef-Splunk-1-2020
44##
55-r tests/requirements.txt
6- pytest-splunk-addon[docker]>=1.1 .0
6+ pytest-splunk-addon[docker]>=1.3 .0
77reuse
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments