fixes #8521 - fix classes accessors, copy overrides on host clone
The various 'classes' accessors that are used in the UI for displayingthe Puppet classes tab only really worked for saved objects, so they'rechanged to work better on an unsaved cloned object. Tests now check...
Fixes #11089 - Adapt tests to Rails 4
This commit contains all changes to tests in branchhttps://github.com/theforeman/foreman/pull/2055 that I found to beretrocompatible with Rails 3. The more of these we can get in, the lesscode we will have to review for Rails 4, and the more relevant it will...
fixes #7407 - puppet class parameters should be cloned in #clone
Refs #3809 - Remove cop IndentationConsistency
Refs #3809 - Remove cops for empty lines
fixes #9274 - hostgroup#clone clones config groups
fixes #8739 - use global setting when hostgroup root_pass is blank
A blank (not nil) root_pass on hostgroups was preventing correct inheritancefrom settings in both hosts and nested hostgroups.
root_pass was also being copied from parents/settings to hostgroups when they...
Fixes #8414 - extracts validators from models
Also cleans up some unused validators looking for trailing whitespacethat is stripped by the StripWhitespaces concern.Tried to make some sense from unmatching regexps and validation errormessages. Some validations might need a different regexp to check for what...
Refs #3809 - Remove useless assignments
Fixes #6710 - unicode characters in url parameters
Original methods to_param defined on resources called name.parameterizeto get rid of url-unsafe characters. This function unfortunately alsostripped off unicode characters.
Changes:- parameterization extracted into a separate module Parameterizable...
Refs #3809 - Use parentheses in method definitions
Refs #3809 - Remove rubocop TODOs
Removed the following TODOs so that cops for these will run from now on:
Lint/AmbiguousOperator, DefEndAlignment, DeprecatedClassMethodsEnsureReturn, RequireParentheses, Void, BlockAlignment, EndAlignment,UselessAccessModifier,...
refs #7038 - use n_() for plural support, use Rails style length message
Fixes #7437: validation instead of PGError when host group title is exactly 256 characters
Fixes #7038: No error when hostgroup name exceeds 245 characters
fixes #3272 - allow 'admin' account to be removed and replaced
refs #6067 - tests for UI inconsistency around root password limit 8 characters
fixes #5671 - LookupValue name should be matcher, value is too long
fixes #4204 - add config groups feature - assign multiple config groups to a host or hostgroup
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity
fixes #4393 - rename ancestry label to title
fixes #3939 - add option to 'inherit from parent' for hostgroup attributes
fixes #2866 - Changing a hostgroup name doesn't update associated Smart Variable matchers
fixes #2231 - hostgroup deletion is restricted to hostgroups without children
fixes #3160 - sanitize host/host group names in lookup_value associations (CVE-2013-4386)
fixes #3091 - strip leading and trailing whitespace before_save on names of all objects
refs #2400 clean up tests so there are no orphaned foreign keys
fixes #2263 search Hostgroup by label
upgrade foreman to rails 3.2.13
This commit updates from rails 3.0.x to 3.2.x, main changes include:
Users who uses foreman in production, make sure that you now compileyour assets, e.g...
fixes #1957 - remove old libvirt hypervisors code
Since foreman 1.0 libvirt hypervisors are now part of compute resourcesthis patch removes the old code and migrate any existing hypervisors tobe libvirt based compute resources.
Fixed tiny typo in the hostgroup unit test
fixes #724 - Allow default VM specs to be tied to a hostgroup
fixes #35 - Allow hostgroup nesting for puppet classes and parameters
Fixes #366 - Redmine authorization port
This is a major feature which provides RBAC authorization within Foremana mental note to myself - never ever work on large commits
added hostgroup test and fixed some assertions
Added Groups to puppet classes, now its possible to associate a host with a group of classesit also allowed to setup parameters per group and override them in the host level
I've done it late at night, so who knows :)