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

puppetlabs / puppet-resource_api / 28
98%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2017 12:28PM UTC
Jobs 1
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

pending completion
28

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

Jobs
ID Job ID Ran Files Coverage
1 28.1 (2.4.1, PUPPET_GEM_VERSION='~> 5' COVERAGE=yes) 25 Sep 2017 12:28PM UTC 0
87.67
Travis Job 28.1
Source Files on build 28
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #28
  • 9a26aff6 on github
  • Prev Build on master (#27)
  • Next Build on master (#29)
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