Project

General

Profile

« Previous | Next » 

Revision 3c1af256

Added by Shlomi Zadok over 8 years ago

fixes #11242 - Add operatingsystem_id to os_default_templates in API

View differences:

app/views/api/v2/os_default_templates/base.json.rabl
:provisioning_template_id,
:provisioning_template_name,
:template_kind_id,
:template_kind_name
:template_kind_name,
:operatingsystem_id,
:operatingsystem_name
attributes :provisioning_template_id => :config_template_id,
:provisioning_template_name => :config_template_name
test/functional/api/v2/os_default_templates_controller_test.rb
assert_response :success
assert_not_nil assigns(:os_default_template)
show_response = ActiveSupport::JSON.decode(@response.body)
assert !show_response.empty?
refute show_response.empty?
assert(show_response.has_key?('operatingsystem_id'))
end
test 'should create os_default_template for os' do

Also available in: Unified diff