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

cloudmarker / cloudmarker / 667
84%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2019 02:19AM UTC
Jobs 3
Files 35
Run time 1min
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

pending completion
667

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.

328 of 374 branches covered (87.7%)

Branch coverage included in aggregate %.

1609 of 1771 relevant lines covered (90.85%)

2.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 667.1 29 Apr 2019 02:19AM UTC 0
90.56
Travis Job 667.1
2 667.2 29 Apr 2019 02:19AM UTC 0
90.56
Travis Job 667.2
3 667.3 29 Apr 2019 02:21AM UTC 0
90.56
Travis Job 667.3
Source Files on build 667
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #667
  • 484cf393 on github
  • Prev Build on master (#659)
  • Next Build on master (#676)
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