Sha256: d8e8a6933ac7729ce9b43e4dd8e00272010019ef34f7c6bc57f43839d1085198
Contents?: true
Size: 879 Bytes
Versions: 8
Compression:
Stored size: 879 Bytes
Contents
require "spec_helper" describe Sonic::CLI do before(:all) do @args = "--noop" end describe "sonic" do it "ssh should print out ssh command to be ran" do out = execute("exe/sonic ssh #{@args} --cluster default my-service") expect(out).to include("=> ssh") end it "execute should print that command has been sent --instance-ids" do out = execute("exe/sonic execute #{@args} --instance-ids i-1,i-2,i-3 uptime") expect(out).to include("Command sent") end it "execute should print that command has been sent --tags" do out = execute("exe/sonic execute #{@args} --tags Name=value uptime") expect(out).to include("Command sent") end it "list should list running instances" do out = execute("exe/sonic list #{@args} --header 1,2,3") expect(out).to include("No instances found") end end end
Version data entries
8 entries across 8 versions & 1 rubygems