Project

General

Profile

Revision 2b80fdd9

Added by Ori Rabin almost 6 years ago

Fixes #13043 - Change Parameter inheritance to DockerParameter

View differences:

test/functionals/api/v2/containers_controller_test.rb
109 109
                                          :tag => tag }
110 110
            assert_response :created
111 111
          end
112

  
113
          test 'creates a container with correct params' do
114
            repository_name = "centos"
115
            tag = "8"
116
            name = "foo2"
117
            Service::Containers.any_instance.expects(:pull_image).returns(true)
118
            Service::Containers.any_instance.expects(:start_container).returns(true)
119
            post :create, :container => { :compute_resource_id => @compute_resource.id,
120
                                          :name => name,
121
                                          :registry_id => @registry.id,
122
                                          :repository_name => repository_name,
123
                                          :tag => tag,
124
                                          :environment_variables => [{:key => 'ping_host', :value => 'example.com'}]}
125
            assert_response :created
126
          end
112 127
        end
113 128

  
114 129
        test 'creates a katello container with correct params' do

Also available in: Unified diff