{"id":19982040,"url":"https://github.com/coi-gov-pl/puppet-examples-helpers","last_synced_at":"2026-04-24T22:36:22.187Z","repository":{"id":56889606,"uuid":"95881573","full_name":"coi-gov-pl/puppet-examples-helpers","owner":"coi-gov-pl","description":"Helpers to utilize puppet example files","archived":false,"fork":false,"pushed_at":"2023-04-04T15:03:50.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-12-03T13:44:40.993Z","etag":null,"topics":["acceptance-testing","beaker","puppet"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coi-gov-pl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-30T11:14:22.000Z","updated_at":"2017-07-21T09:20:32.000Z","dependencies_parsed_at":"2025-01-12T10:43:53.171Z","dependency_job_id":"71443104-4624-4eda-9ed9-0a224e172e5d","html_url":"https://github.com/coi-gov-pl/puppet-examples-helpers","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"fa876c55b6f0237394b3d21394266b4201da48f4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coi-gov-pl/puppet-examples-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coi-gov-pl%2Fpuppet-examples-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coi-gov-pl%2Fpuppet-examples-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coi-gov-pl%2Fpuppet-examples-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coi-gov-pl%2Fpuppet-examples-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coi-gov-pl","download_url":"https://codeload.github.com/coi-gov-pl/puppet-examples-helpers/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coi-gov-pl%2Fpuppet-examples-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acceptance-testing","beaker","puppet"],"created_at":"2024-11-13T04:08:41.502Z","updated_at":"2026-04-24T22:36:22.165Z","avatar_url":"https://github.com/coi-gov-pl.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PuppetExamplesHelpers\n\n[![Build Status](https://travis-ci.org/coi-gov-pl/puppet-examples-helpers.svg?branch=develop)](https://travis-ci.org/coi-gov-pl/puppet-examples-helpers) [![Gem](https://img.shields.io/gem/v/puppet-examples-helpers.svg)](https://rubygems.org/gems/puppet-examples-helpers)\n\nHelpers to utilize puppet example files.\n\nUsing new `example` method you can read and execute example file provided in puppet modules in accetance tests.\n\n```ruby\n# Sets code to contents of examples/init.pp file\nlet(:code) { example '::modulename' }\n```\n\n## Installation\n\nAdd this to your puppet module's Gemfile:\n\n```ruby\ngroup :system_tests do\n  # [..]\n  gem 'puppet-examples-helpers'\nend\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install puppet-examples-helpers\n\n## Usage\n\n### RSpec Acceptance Helper\n\n```ruby\n# file: spec/spec_helper_acceptance.rb\nrequire 'puppet'\nrequire 'beaker-rspec'\nrequire 'beaker/puppet_install_helper'\nrequire 'beaker/module_install_helper'\nrequire 'puppet-examples-helpers'\n\nUNSUPPORTED_PLATFORMS = %w[Suse windows AIX Solaris].freeze\n\nrun_puppet_install_helper\ninstall_module\ninstall_module_dependencies\n\nRSpec.configure do |c|\n  c.include PuppetExamplesHelpers\n\n  c.formatter = :documentation\nend\n```\n\n### Acceptance Test Example\n\n```ruby\n# file: spec/acceptance/jboss/internal/service_spec.rb\nrequire 'spec_helper_acceptance'\n\ndescribe '::jboss::internal::service', unless: UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do\n  # Reads examples/internal/service.pp file\n  let(:code) { example '::jboss::internal::service' }\n\n  it 'should work with no errors' do\n    result = apply_manifest(code, catch_failures: true)\n    expect(result.exit_code).to be(2)\n  end\n  it 'should work idempotently' do\n    apply_manifest(code, catch_changes: true)\n  end\n  describe service('wildfly') do\n    it { is_expected.to be_running }\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bundle` to install dependencies. Then, run `bundle exec rake spec` to run the tests. You can also run `bundle exec rake console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/coi-gov-pl/puppet-examples-helpers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [Apache 2.0](https://opensource.org/licenses/Apache-2.0).\n\n## Code of Conduct\n\nEveryone interacting in the Puppet::Examples::Helper project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/coi-gov-pl/puppet-examples-helpers/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoi-gov-pl%2Fpuppet-examples-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoi-gov-pl%2Fpuppet-examples-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoi-gov-pl%2Fpuppet-examples-helpers/lists"}