Пример #1
0
 public function testDispatchInNamespace()
 {
     $service = $this->loginToRealService();
     // Setup
     $savedSearchName = $this->createTempName();
     $savedSearch = $service->getSavedSearches()->create($savedSearchName, array('namespace' => Splunk_Namespace::createApp('launcher'), 'search' => 'index=_internal | head 1'));
     // Test
     $job = $savedSearch->dispatch();
     // Teardown
     $savedSearch->delete();
 }
Пример #2
0
 public function testRefreshEntityInCustomNamespace()
 {
     $service = $this->loginToRealService();
     $views = new Splunk_Collection($service, 'data/ui/views/');
     $entity = $views->get('charting', Splunk_Namespace::createApp('search'));
     $entity->refresh();
 }
Пример #3
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testCreateAppWithTooManyArguments()
 {
     Splunk_Namespace::createApp('theapp', 'theowner');
 }