Fixes #4419 - rearranging smart class parameters edit form
Fixes #10248 - cloning volume information for virtual machines
Fixes #10550 - Settings API will not update when value parameter is missing
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 #8343 - Consolidated code paths, and removed unnecessary DB calls for parent object
Fixes #11078 - Substitute find_all_by by where to comply with Rails 4
This commit takes away all instances up to this point of find_all_by toimprove Rails 4 compatibility. They are substituted by .where calls.
Fixes #10356 - changed the POST/PUT RABL template to be the same as the GET template
HTTP response code standardized to 201 on create.
Fixes #10963 - partition table can't access os ids
Refs #10720 - Use API v2 response for vm_compute_attributes
Fixes #6976 - Build default PXE menu should be POST request
Fixes #7096 - Adds STI to templates
This commit converts Ptables to be just another type of Template so itgets the same features as ConfigTemplate. ConfigTemplate was renamed toProvisioningTemplate to reflect UI and the name under it's commonly known.
fixes #10720 - Adds API to get host vm attributes
This exposes an API to fetch a host's vm_compute_attributes,such as vmware cpus and memory. It lives at a separate endpointbecause it involves a fetch for data from the compute resource,and may have different performance characteristics than the database.
Fixes #10715 - api build_pxe_default returns non-JSON message
The fix adds a new method `render_message` for responding with a statustext.
fixes #9031 - Add routes to view template_combinations per hostgroup / environment
fixes #10482 - get external user group members only once during refresh
fixes #9812 - Adds validation on override value, ensure match returns error if blank
Fixes #10123 - Tests API v2 external user groups
The addition of a .refresh call after create, update and delete, causedour tests to fail because of many failed calls to LDAP.We can just expect the method to return true as we're not testing therefresh functionality in these methods.
Fixes #8812 - Pass model type so search_for is called on Host
At least on version 1.6.1, the absence of this second parameter leads to aruntime crash when it's time to validate if the current user (non-admin) isallowed to perform a power operation on given a host via the APIv2....
Fixes #10002 - Add attribute ancestry to taxonomies API v2
Fixes #7378 - fixed API lookup keys filters
Fixes #9657 - merge NICs from compute profile in host create API
- updated api docs for hosts and interfaces- host create/update api actions now merge interfaces from compute profiles- NIC type mapping extracted into a separate class- return full host detail after host update
Fixes #9678 - Can't update admin flag for users via API
find_resource needs to be defined prior to UsersMixin is included as itrequires the variable @user being set.
Refs #3809 - Remove classcheck cop
Refs #3809 - Remove various small cops
Refs #3809 - Remove cop IndentationConsistency
Refs #3809 - Remove cops for empty lines
fixes #9030 - Adds support to clone config template via api
Fixes #7456 - Extract primary interface from host
All host must have at least one primary interface and one provision (can...
fixes #8484 - make SmartProxyAuth concern more useful to plugins
fixes #8049 - Add timezone to user
Refs #3809 - Remove useless assignments
Refs #969 - Foreman-side changes for serving templates from the proxy
Fixes #8005 - Convert allowed NIC types to strings
- allowed NIC type classes need to be registered now- api for interfaces use lowercase human readable values for defining types- fixed output of api's create action to the standard format
Fixes #7733 - Remove hosts.yml fixtures and use FactoryGirl instead
fixes #7372 - API v2 - accept PUT/POST requests with wrapped root node to add/remove has_many associations of child nodes
Fixes #5139 - leftovers subscribe_to_all_hostgroups
Remove user_xxx unnecessary tables and notices
Update subhostgroups removed
Fixes for migration of foreign keys
Remove users from compute_resource fixture
Remove table notices after fk are removed for pg/mysql
Refs #3809 - Use parentheses in method definitions
Refs #3809 - Fix a few rubocop TODOs
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,...
fixes #6856 - API v2 - more efficient import puppetclasses for single environment
fixes #4386 - gem friendly_id to simplify find by id, name, label, etc
fixes #5896 - Set Compute Resource's 'Console passwords' option in API
Fixes #3085: Request to be able to clone host groups via API
refs #6161 - Add test to make sure override is marked on create
Fixes #6444 - add support for virtual NICs
Extend additional interface details refs #2240
NIC facts parsing change and we create interfaces in Foreman accordingto facts we recieve.
Subclasses does not define their own attributes and serialize them toattrs hash. All BMC attributes are extracted to separate columns so it's...
Fixes #6756 - exposes vmware resource pools and folders through the API
Fixes #6608 - expose disk usage info through available_storage_domains API
fixes #6696 - API v2 - specify 'host' as the key in which parameters will be wrapped rather than Host::Base
fixes #6964 - replace default scope that hides users with explicit scope
Fixes #5734 - API for external groups management
Fixes #6446 - Forbidding non-json POST/PUT requests in v2
Fixes #813 - External usergroups can be linked to an LDAP auth source
Fixes #6786 - Handle error when no taxonomy params get sent
Basically, no organization params are getting sent as the bug reporter is notusing json and not using wrapped params. You can also test this by doing:
curl -X POST http://localhost:3000/api/v2/organizations...
Refs #4478 - API doc strings marked for translation
Fixes #6768 - Hammer set-parameter does not work
fixes #6430 - validate presence of location and organization for managed host if Settings are turned on
fixes #6753 - fix API v1 examples in docs that show error messages by re-ordering functional tests
fixes #6749 - fix API v2 examples in docs that show error messages by re-ordering functional tests
fixes #5178 - unify API parameters and return values. User creation should not require payload wrapped with 'user' root
fixes #4155 - enable host/CR (dis)association via api
Fixes #6532 - permission related api extensions
- usergroups#show lists associated roles - listing available resource types - filters#show lists associated roles - filters#index lists associated roles and permissions and orders the results - pagination in permissions#index...
Fixes #6285 - Settings API does not parse incoming values to correct data type
fixes #3272 - allow 'admin' account to be removed and replaced
fixes #6248 - API V2 return object for POST/PUT/DELETE should not include root node
fixes #6216, #4416 - avoid foreign key errors when deleting some objects in use
fixes #6229 - validate installation media exists for new host if pxe_build
fixes #6003 - don't render user default loc/org object directly
fixes #5722: VM-based host cloning picks up existing compute attributes
fixes #4250 - API v2 - add compute profiles
fixes #5612 - use correct permissions for authz in parameters API
fixes #5506 - added scoped search to SmartProxy for UI and API v2
fixes #4204 - add config groups feature - assign multiple config groups to a host or hostgroup
fixes #3914 - set current taxonomies on login from user defaults
fixes #4895 - Adds CSRF protection check to the API if a session user is present
fixes #4863 - API V2 - add puppetclasses format style=list and module_name to base.json.rabl
Fixes #4976 - ensure the process is really running inside a rake task
fixes #1809 - foreman realm integration
fixes #1966 - improved UI errors for proxy
Fixes #4851: a SmartProxy.with_features scope replaces feature-specific scopes generated during class loading
fixes #4776 - support session[:expires_at] for api requests
There are situations where the UI needs to invoke requestson the API controllers; therefore, we need to ensure thatthe session expiration accounts for them. This is a commonfor plugins, such as Katello, which leverage the...
fixes #4457 - Session fixation, new session IDs are not generated on login (CVE-2014-0090)
fixes #4314 - ignore default scope ordering on host search by puppet class
fixes #4581 Implement available_networks API for VMware
fixes #4201 - update operating system by label, use description or fallname otherwise
fixes #3001 - Facts searchable by both host id and name
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity
fixes #4393 - rename ancestry label to title
fixes #3876 - API find_resource by name even if name starts with integer
fixes #4349 - API v2 - add location and organization child nodes to user, domain, subnet, etc show json templates
fixes #4198 - API v2 - add child nodes to show responses. Ex. architecture should show operating systems node
fixes #4222 Add capability to compute resource API to retrieve cluster,network,storage info on oVirt
fixes #3912 - add inheritance for locations / organizations
fixes #3939 - add option to 'inherit from parent' for hostgroup attributes
fixes #4268 - don't search for host with nil IP on hostname spoofing
fixes #3519 - taxonomies include authorization module
fixes #3725, #4167 - root password validations, remove default password
fixes #3553 - add "except" option to prevent puppet class import to select types of import
fixes #3960 - wrap APIv2 errors in an "error" node
fixes #3920 - prevent 500 ScopedSearch errors on the API, raise UI errors correctly
fixes #3760 - API v2 define metadata @total for each controller