Sha256: d55885fdf2a29a31e5584e206ed1b91dcde3bee434b810cb0706de4b97979f5c
Contents?: true
Size: 1.78 KB
Versions: 9
Compression:
Stored size: 1.78 KB
Contents
# frozen_string_literal: true # Copyright 2018 Tristan Robert # This file is part of ForemanFogProxmox. # ForemanFogProxmox is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # ForemanFogProxmox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. require 'test_plugin_helper' module ForemanFogProxmox class ComputeResourcesControllerTest < ActionController::TestCase test 'should get isos by node and storage' do get :isos_by_node_and_storage, params: { :node_id => 'pve', :storage => 'local' } assert_response :found show_response = @response.body assert_not show_response.empty? end test 'should get ostemplates by node and storage' do get :ostemplates_by_node_and_storage, params: { :node_id => 'pve', :storage => 'local' } assert_response :found show_response = @response.body assert_not show_response.empty? end test 'should get isos by node' do get :isos_by_node, params: { :node_id => 'pve' } assert_response :found show_response = @response.body assert_not show_response.empty? end test 'should get ostemplates by node' do get :ostemplates_by_node, params: { :node_id => 'pve' } assert_response :found show_response = @response.body assert_not show_response.empty? end end end
Version data entries
9 entries across 9 versions & 1 rubygems