• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cloudmarker / cloudmarker / 667 / 1
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2019 02:19AM UTC
Files 35
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Apr 2019 12:39PM UTC coverage: 90.563% (+0.06%) from 90.507%
667.1

push

travis-ci-com

susam
Do not post empty list of records to Splunk

Prior to this fix, when there are no records to index, SplunkHECStore
logs the following error:

    ERROR cloudmarker.stores.splunkhecstore:81 - Failed to index 0
    records; HTTP status code indicates error; URI:
    https://localhost:8088/services/collector; index: main; response
    status: 400; response content: {"text":"No data","code":5}

This error can be reproduced with a configuration like this where
`MockCloud` is configured to yield no records:

    plugins:
      mockcloud:
        plugin: cloudmarker.clouds.mockcloud.MockCloud
        params:
          record_count: 0

      splunkstore:
        plugin: cloudmarker.stores.splunkhecstore.SplunkHECStore
        params:
          uri: https://localhost:8088/services/collector
          token: token123
          index: main
          ca_cert: false

    audits:
      mockaudit:
        stores:
          - filestore
          - splunkstore
        alerts:
          - filestore
          - splunkstore

This fix ensures that when there are no records to index, no attempt is
made to post an empty list of records to Splunk.

387 of 433 branches covered (89.38%)

Branch coverage included in aggregate %.

1609 of 1771 relevant lines covered (90.85%)

0.91 hits per line

Source Files on job 667.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 553
  • Travis Job 667.1
  • 484cf393 on github
  • Prev Job for on master (#659.3)
  • Next Job for on master (#676.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc