Sha256: 086245fb896a72eb2a23d5e7d5262591f886da13775d9ac891c4a7b6fe28b180
Contents?: true
Size: 690 Bytes
Versions: 6
Compression:
Stored size: 690 Bytes
Contents
require "kontena/cli/stacks/logs_command" describe Kontena::Cli::Stacks::LogsCommand do include ClientHelpers include OutputHelpers let (:logs) do [ { 'id' => '57cff2e8cfee65c8b6efc8bd', 'name' => 'test-stack.mysql-1', 'created_at' => '2016-09-07T15:19:04.362690', 'data' => "mysql log message 1", }, ] end it "shows stack logs" do expect(client).to receive(:get).with('stacks/test-grid/test-stack/container_logs', { limit: 100, }) { { 'logs' => logs } } expect{subject.run(['test-stack'])}.to output_lines [ "2016-09-07T15:19:04.362690 [test-stack.mysql-1]: mysql log message 1", ] end end
Version data entries
6 entries across 6 versions & 1 rubygems