Sha256: ed148c8310231b61df12686b3b5767d0e0e8fa4c38e4dcff97bab912e9397465
Contents?: true
Size: 1.86 KB
Versions: 12
Compression:
Stored size: 1.86 KB
Contents
describe Ufo::CLI do before(:all) do create_ufo_project @args = "--noop" end describe "ufo" do context "docker" do it "build builds image" do out = execute("exe/ufo docker build #{@args}") expect(out).to include("docker build -t tongueroo/hi") end it "tag shows the tag" do out = execute("exe/ufo docker name #{@args}") expect(out).to match(%r{tongueroo/hi:ufo-.{7}}) end end context "tasks" do it "build builds task definition" do out = execute("exe/ufo tasks build #{@args}") expect(out).to include("Task Definitions built") end it "register it registers all the output task definitions" do out = execute("exe/ufo tasks register #{@args}") expect(out).to include("register") end end context "ship" do it "deploys software" do out = execute("exe/ufo ship hi-web-prod #{@args} --no-wait") # cannot look for Software shipped! because # ship.deploy unless ENV['TEST'] # to allow me to quickly test CLI portion only # just testing the CLI portion. The ship class itself is tested via ship_spec.rb expect(out).to include("Task Definitions built") end end context "ships" do it "deploys software to multiple services" do out = execute("exe/ufo ships hi-web-prod hi-worker-prod #{@args} --no-wait") # cannot look for Software shipped! because # ship.deploy unless ENV['TEST'] # to allow me to quickly test CLI portion only # just testing the CLI portion. The ship class itself is tested via ship_spec.rb expect(out).to include("Task Definitions built") end end context "task" do it "runs one time task" do out = execute("exe/ufo completion ship name") expect(out).to include("--help") end end end end
Version data entries
12 entries across 12 versions & 1 rubygems