From f4e05e570215738cfd54ccf590630f6ded90fcd4 Mon Sep 17 00:00:00 2001 From: sreepuramsudheer Date: Tue, 29 Oct 2024 13:10:29 +0530 Subject: [PATCH] Added smoke tag. Signed-off-by: sreepuramsudheer --- oc-chef-pedant/spec/api/server_license_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oc-chef-pedant/spec/api/server_license_spec.rb b/oc-chef-pedant/spec/api/server_license_spec.rb index c41ae6151f..cc9b2807d6 100644 --- a/oc-chef-pedant/spec/api/server_license_spec.rb +++ b/oc-chef-pedant/spec/api/server_license_spec.rb @@ -25,9 +25,9 @@ end context "when having valid license" do - it "can get all users", automate: true do + it "can get all users", :smoke do get(request_url, platform.superuser).should look_like({ - :status => 403, + :status => 200, :body => users_body }) end @@ -44,7 +44,7 @@ before(:all) do puts "applying expired license" puts ENV['A2_EXPIRED_LICENSE'] - system("chef-automate license apply -f \"$A2_EXPIRED_LICENSE\"") + system("chef-automate license apply -f \"eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImEwYmMzZmMxLWFiOGUtNDI4ZC1hODZiLTU5MTE4ZDM3ZjYzOSIsInZlcnNpb24iOiIxIiwidHlwZSI6InRyaWFsIiwiZ2VuZXJhdG9yIjoiY2hlZi9saWNlbnNlLTIuMC4wIiwia2V5X3NoYTI1NiI6ImUwZGYyOGM4YmM2ODE1MGVkYmZlZjk4Y2Q2YjdkYzQzOWMxZjgwYzdlN2VmNzQ3ODkzYTY4OTNhMmY3YjYwZjciLCJnZW5lcmF0aW9uX2RhdGUiOnsic2Vjb25kcyI6MTcxOTY2NzUxM30sImN1c3RvbWVyIjoiU3RhbmRhcmQgQmFuayBSZW5ld2FsIFN0YXJ0IERhdGUgMjAyNC0wNy0wMSIsImN1c3RvbWVyX2lkIjoiNTRBOTNGOUEtOEE2RC00RERGLUJCQTktRkE4MDE0MkQxNTI1IiwiY3VzdG9tZXJfaWRfdmVyc2lvbiI6IjEiLCJlbnRpdGxlbWVudHMiOlt7Im5hbWUiOiJDaGVmIEF1dG9tYXRlIiwibWVhc3VyZSI6Im5vZGVzIiwibGltaXQiOi0xLCJzdGFydCI6eyJzZWNvbmRzIjoxNzE5NjE5MjAwfSwiZW5kIjp7InNlY29uZHMiOjE3MjIyOTc1OTl9fV19.AErwHcnIs7TQoWPEj35Fj-_zPOPIHAXH1YBpm7pUItchNhAMJhdlajhIlS0byVhmS479jf9mn9uCGTos9vsy4w9eAZV2uUUlXB9uOzd6QWEv_FpX2_CsfrpNQfkRiaZ21IgKySXEfmoNbbLWBXPC9lOxhwg2HkbH4aB0lkBUVqTHwE9D\"") system("sleep 30") end after(:all) do @@ -52,7 +52,7 @@ system("sleep 30") end - it "returns 403" do + it "returns 403", :smoke do puts get(request_url, platform.superuser) get(request_url, platform.superuser).should look_like({ :status => 200