Sha256: 54511f06de851eab55a74991df41f960dff17575dbccef31e42c8365243e0bf0
Contents?: true
Size: 1.95 KB
Versions: 11
Compression:
Stored size: 1.95 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_id_and_node_and_storage, params: { :compute_resource_id => 1, :node_id => 'proxmox', :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_id_and_node_and_storage, params: { :compute_resource_id => 1, :node_id => 'proxmox', :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_id_and_node, params: { :compute_resource_id => 1, :node_id => 'proxmox' } assert_response :found show_response = @response.body assert_not show_response.empty? end test 'should get ostemplates by node' do get :ostemplates_by_id_and_node, params: { :compute_resource_id => 1, :node_id => 'proxmox' } assert_response :found show_response = @response.body assert_not show_response.empty? end end end
Version data entries
11 entries across 11 versions & 1 rubygems