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(); }
public function testRefreshEntityInCustomNamespace() { $service = $this->loginToRealService(); $views = new Splunk_Collection($service, 'data/ui/views/'); $entity = $views->get('charting', Splunk_Namespace::createApp('search')); $entity->refresh(); }
/** * @expectedException InvalidArgumentException */ public function testCreateAppWithTooManyArguments() { Splunk_Namespace::createApp('theapp', 'theowner'); }