Merge branch '17286-print-urls' refs #17286
[arvados.git] / services / api / test / unit / pipeline_instance_test.rb
index 9b4c7c3787b26aa11545e402b6bc2c847fd86cc4..614c169e85641c99bf30126428159587dc977373 100644 (file)
@@ -1,7 +1,18 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class PipelineInstanceTest < ActiveSupport::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
+
+  [:has_component_with_no_script_parameters,
+   :has_component_with_empty_script_parameters].each do |pi_name|
+    test "update pipeline that #{pi_name}" do
+      pi = pipeline_instances pi_name
+
+      Thread.current[:user] = users(:active)
+      assert_equal PipelineInstance::Ready, pi.state
+    end
+  end
 end