Skip to content

Commit

Permalink
Added smoke tag.
Browse files Browse the repository at this point in the history
Signed-off-by: sreepuramsudheer <[email protected]>
  • Loading branch information
sreepuramsudheer committed Oct 29, 2024
1 parent 807a789 commit f4e05e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oc-chef-pedant/spec/api/server_license_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,15 +44,15 @@
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
system("chef-automate license apply \"$A2_LICENSE\"")
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
Expand Down

0 comments on commit f4e05e5

Please sign in to comment.