Esempio n. 1
0
 /**
  * Returns a Splunk_Context connected to a real Splunk server.
  */
 protected function loginToRealContext()
 {
     global $SplunkTests_connectArguments;
     $context = new Splunk_Context($SplunkTests_connectArguments);
     $context->login();
     return $context;
 }
Esempio n. 2
0
 /**
  * Constructs a new service with the specified parameters.
  *
  * @see Splunk_Context::__construct()
  */
 public function __construct($args = array())
 {
     parent::__construct($args);
 }
Esempio n. 3
0
 public function testLoginWithToken()
 {
     $context = new Splunk_Context(array('token' => 'Splunk ACEACE'));
     $this->assertEquals('Splunk ACEACE', $context->getToken());
 }