public function testListInNamespace() { $service = $this->loginToRealService(); $entities = $service->getSavedSearches()->items(array('namespace' => Splunk_Namespace::createSystem())); $this->assertCount(0, $entities, 'Expected no saved searches in the system namespace.'); return $entities; }
public function testGetMissingEntityReferenceInNamespace() { $service = $this->loginToRealService(); $savedSearch = $service->getSavedSearches()->getReference(self::SAVED_SEARCH_NAME, Splunk_Namespace::createSystem()); try { $this->touch($savedSearch); $this->assertTrue(FALSE, 'Expected Splunk_HttpException to be thrown.'); } catch (Splunk_HttpException $e) { $this->assertEquals(404, $e->getResponse()->status); } }
/** * @expectedException InvalidArgumentException */ public function testCreateSystemWithTooManyArguments() { Splunk_Namespace::createSystem('theapp'); }