mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:19 +00:00 
			
		
		
		
	fix index alerts test
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							@@ -126,7 +126,7 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - name: Check documents into wazuh-alerts index
 | 
					    - name: Check documents into wazuh-alerts index
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
       docs="`curl -XGET "https://0.0.0.0:9200/wazuh-alerts*/_doc/_search" -u admin:SecretPassword -k -s | jq -r ".hits.total.value"`"
 | 
					       docs="`curl -XGET "https://0.0.0.0:9200/wazuh-alerts*/_count" -u admin:SecretPassword -k -s | jq -r ".count"`"
 | 
				
			||||||
       if [[ $docs -gt 100 ]]; then
 | 
					       if [[ $docs -gt 100 ]]; then
 | 
				
			||||||
        echo "wazuh-alerts index documents: ${docs}"
 | 
					        echo "wazuh-alerts index documents: ${docs}"
 | 
				
			||||||
       else
 | 
					       else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user