Project

General

Profile

Revision f6a9acbd

Added by Sebastian Gräßl over 5 years ago

Fixes #18518 - Add proper validation for container image

For now the image has only been validate via the result
of the search, but not enforced on the server side.

The model validation brings now proper feedback when
the form has been submitted to the server.

View differences:

test/functionals/containers_controller_test.rb
1 1
require 'test_plugin_helper'
2 2

  
3 3
class ContainersControllerTest < ActionController::TestCase
4
  setup do
5
    stub_image_existance
6
    stub_registry_api
7
  end
8

  
4 9
  test 'redirect if Docker provider is not available' do
5 10
    get :index, {}, set_session_user
6 11
    assert_redirected_to new_compute_resource_path

Also available in: Unified diff