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

puppetlabs / puppet-resource_api / 28 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2017 12:28PM UTC
Files 6
Run time 0s
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

25 Sep 2017 12:26PM UTC coverage: 87.671% (+4.3%) from 83.333%
2.4.1, PUPPET_GEM_VERSION='~> 5' COVERAGE=yes

push

travis-ci

DavidS
Do not require the namevar to be called :name

This was a mistake. This is handled within puppet. This needs more work
around canonicalization to hide this from the provider. Currently the
apt_key prototype carries this:

```
  def canonicalize(context, resources)
    resources.each do |r|
      r[:name] ||= r[:id]
      r[:name] = if r[:name].start_with?('0x')
                   r[:name][2..-1].upcase
                 else
                   r[:name].upcase
                 end

      if r[:name].length != 40
        context.warning(r[:name], 'The name should be a full fingerprint (40 characters) to avoid collision attacks, see the README for details.')
        fingerprint = key_list_lines.select { |l| l.start_with?('fpr:') }
                                    .map { |l| l.split(':').last }
                                    .find { |fp| fp.end_with? r[:name] }
        r[:name] = fingerprint if fingerprint
      end

      r[:id] = r[:name]
    end
  end
```

and the whole :name/:id juggling should be done here instead.

192 of 219 relevant lines covered (87.67%)

8.05 hits per line

Source Files on job 28.1 (2.4.1, PUPPET_GEM_VERSION='~> 5' COVERAGE=yes)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28
  • Travis Job 28.1
  • 9a26aff6 on github
  • Prev Job for 2.4.1, PUPPET_GEM_VERSION='~> 5' COVERAGE=yes on master (#27.1)
  • Next Job for 2.4.1, PUPPET_GEM_VERSION='~> 5' COVERAGE=yes on master (#29.1)
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