# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. use Test::More; use strict; use warnings; BEGIN { use_ok( 'Yahoo::Vespa::Bin::GetNodeState' ); } require_ok( 'Yahoo::Vespa::Bin::GetNodeState' ); use TestUtils::VespaTest; use Yahoo::Vespa::Mocks::ClusterControllerMock; use Yahoo::Vespa::Mocks::VespaModelMock; useColors(0); # Set which application is called on assertRun / assertRunMatches calls setApplication( \&getNodeState ); &testSimple(); &testSyntaxPage(); &testRetired(); done_testing(); exit(0); sub testSimple { my $stdout = <