aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/controllers/backends/terraform_aws_controller_test.rb14
-rw-r--r--test/controllers/backends/terraform_libvirt_controller_test.rb14
-rw-r--r--test/controllers/backends_controller_test.rb7
-rw-r--r--test/controllers/setup_controller_test.rb7
-rw-r--r--test/fixtures/backends/terraform_aws.yml13
-rw-r--r--test/fixtures/backends/terraform_libvirts.yml9
-rw-r--r--test/models/backends/terraform_aws_test.rb7
-rw-r--r--test/models/backends/terraform_libvirt_test.rb7
8 files changed, 78 insertions, 0 deletions
diff --git a/test/controllers/backends/terraform_aws_controller_test.rb b/test/controllers/backends/terraform_aws_controller_test.rb
new file mode 100644
index 0000000..0c574fa
--- /dev/null
+++ b/test/controllers/backends/terraform_aws_controller_test.rb
@@ -0,0 +1,14 @@
+require 'test_helper'
+
+class Backends::TerraformAwsControllerTest < ActionDispatch::IntegrationTest
+ test "should get new" do
+ get backends_terraform_aws_new_url
+ assert_response :success
+ end
+
+ test "should get show" do
+ get backends_terraform_aws_show_url
+ assert_response :success
+ end
+
+end
diff --git a/test/controllers/backends/terraform_libvirt_controller_test.rb b/test/controllers/backends/terraform_libvirt_controller_test.rb
new file mode 100644
index 0000000..376d753
--- /dev/null
+++ b/test/controllers/backends/terraform_libvirt_controller_test.rb
@@ -0,0 +1,14 @@
+require 'test_helper'
+
+class Backends::TerraformLibvirtControllerTest < ActionDispatch::IntegrationTest
+ test "should get new" do
+ get backends_terraform_libvirt_new_url
+ assert_response :success
+ end
+
+ test "should get show" do
+ get backends_terraform_libvirt_show_url
+ assert_response :success
+ end
+
+end
diff --git a/test/controllers/backends_controller_test.rb b/test/controllers/backends_controller_test.rb
new file mode 100644
index 0000000..fe2682e
--- /dev/null
+++ b/test/controllers/backends_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class BackendsControllerTest < ActionDispatch::IntegrationTest
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/controllers/setup_controller_test.rb b/test/controllers/setup_controller_test.rb
new file mode 100644
index 0000000..d350d63
--- /dev/null
+++ b/test/controllers/setup_controller_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class SetupControllerTest < ActionDispatch::IntegrationTest
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/fixtures/backends/terraform_aws.yml b/test/fixtures/backends/terraform_aws.yml
new file mode 100644
index 0000000..b0f1f9d
--- /dev/null
+++ b/test/fixtures/backends/terraform_aws.yml
@@ -0,0 +1,13 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ label: MyString
+ aws_region: MyString
+ aws_access_key_id: MyString
+ aws_secret_access_key: MyString
+
+two:
+ label: MyString
+ aws_region: MyString
+ aws_access_key_id: MyString
+ aws_secret_access_key: MyString
diff --git a/test/fixtures/backends/terraform_libvirts.yml b/test/fixtures/backends/terraform_libvirts.yml
new file mode 100644
index 0000000..06293db
--- /dev/null
+++ b/test/fixtures/backends/terraform_libvirts.yml
@@ -0,0 +1,9 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ label: MyString
+ uri: MyString
+
+two:
+ label: MyString
+ uri: MyString
diff --git a/test/models/backends/terraform_aws_test.rb b/test/models/backends/terraform_aws_test.rb
new file mode 100644
index 0000000..78cd8de
--- /dev/null
+++ b/test/models/backends/terraform_aws_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class Backends::TerraformAwsTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/models/backends/terraform_libvirt_test.rb b/test/models/backends/terraform_libvirt_test.rb
new file mode 100644
index 0000000..b7d3c35
--- /dev/null
+++ b/test/models/backends/terraform_libvirt_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class Backends::TerraformLibvirtTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end