Skip to content

Instantly share code, notes, and snippets.

GPGKey.query(function(gpgKeys) {
expect(gpgKeys.records.length).toBe(1);
});
or
GPGKey.query().then(function(gpgKeys) {
expect(gpgKeys.records.length).toBe(1);
});
Original:
class { '::certs::pulp_parent': } ~>
class { 'pulp':
oauth_key => $katello::oauth_key,
oauth_secret => $katello::oauth_secret,
messaging_url => 'ssl://localhost:5671',
before => Exec['foreman-rake-db:seed']
}
organization = Organization.find(taxonomies(:organization1))
organization.label = organization.name
organization.save!
leads to --->
ActiveRecord::RecordInvalid: Validation failed: Domains You cannot remove domains that are used by hosts., Compute resources You cannot remove compute resources that are used by hosts., Smart proxies You cannot remove smart proxies that are used by hosts., Users You cannot remove users that are used by hosts., Config templates You cannot remove config templates that are used by hosts.
module Katello
module Authorization
module PuppetModule
extend ActiveSupport::Concern
module ClassMethods
def readable?(environment, repo = nil)
if repo
repo.environment.contents_readable? && repo.product.readable?
#!/bin/bash
set -xe
# Only Foreman itself is SCL
scl="nonscl"
[ ${project} = katello ] && scl="scl"
git config -f .git/config user.name Jenkins
git config -f .git/config user.email packaging@theforeman.org
forge 'http://forge.puppetlabs.com'
#################################################################
# The Foreman part of Puppetfile (taken from foreman-installer #
#################################################################
# Temporary for Apache 2.4 support (post-0.11.0)
mod 'puppetlabs/apache', :git => 'https://github.com/puppetlabs/puppetlabs-apache', :ref => '0.11.0'
# Temporary for Amazon Linux support (https://github.com/puppetlabs/puppetlabs-xinetd/issues/32)
Checking puppetlabs/stdlib/4.1.0 <http://forge.puppetlabs.com>
[Librarian] Conflict between puppetlabs/apache (~> 0.10) <http://forge.puppetlabs.com> and puppetlabs/apache/1.0.1 <https://github>
[Librarian] Backtracking from puppetlabs/stdlib/4.1.0 <http://forge.puppetlabs.com>
[Librarian] Checking puppetlabs/stdlib/3.2.1 <http://forge.puppetlabs.com>
[Librarian] Conflict between puppetlabs/apache (~> 0.10) <http://forge.puppetlabs.com> and pupp
forge 'http://forge.puppetlabs.com'
#################################################################
# The Foreman part of Puppetfile (taken from foreman-installer #
#################################################################
# Temporary for Amazon Linux support (https://github.com/puppetlabs/puppetlabs-xinetd/issues/32)
mod 'puppetlabs/xinetd', :git => 'https://github.com/puppetlabs/puppetlabs-xinetd'
# Dependencies
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Rake[foreman-rake-db:seed]/command: command changed '' to '/usr/sbin/foreman-rake db:seed'
initialier "staypuft.add_namespaced_assets" do |app|
app.config.assets.paths << "#{Staypuft::Engine.root}/app/assets/stylesheets/staypuft"
end