S - FIXME Add tests at the openrdf remote client interface layer as
well. They are all flyweight wrappers around our own
RemoteRepositoryManager (given the target namespace).
FIXME Make sure that this test is running with GROUP_COMMIT
enabled (it is, but GROUP_COMMIT should be parameterized in the
test suite so we run both with and without unless we move the
embedded use entirely over to that API).
FIXME Also run this test with ISOLATABLE_INDICES enabled
(potentially just for some of the namespaces since this is a
per-namespace configuration property).
FIXME Add Tx oriented tests. We might need to have a pool of
(tx,namespace) pairs. Or just IRemoteTx objects. Could be an inner
class in which isolation is known to be enabled. Make sure it is
part of the test suite.
TODO Refactor this test suite so we can use it against an NSS
service end point rather than just integrated tests. That will
make it easier to run as part of the long-lived testing leading
up to a release.public class StressTestConcurrentRestApiRequests<S extends IIndexManager> extends AbstractTestNanoSparqlClient<S>
Note: Also see SPARQLUpdateTest. These two test suites SHOULD be kept
synchronized. SPARQLUpdateTest runs against a local kb instance while
this class runs against the NSS. The two test suites are not exactly the same
because one uses the RemoteRepository to communicate with the NSS
while the other uses the local API.
TestCase2.MyProperties, TestCase2.RandomTypem_client, m_fixture, m_mgr, m_repo, m_rootURL, m_serviceURL, namespace, packagePath_randomType, log| Constructor and Description |
|---|
StressTestConcurrentRestApiRequests() |
StressTestConcurrentRestApiRequests(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
stressTest_concurrentClients_10Minutes()
A 10 minute stress test.
|
void |
stressTest_concurrentClients_24Hours()
A 24 hour stress test.
|
void |
stressTest_concurrentClients_2Hours()
A 2 hour stress test.
|
static junit.framework.Test |
suite() |
void |
tearDown() |
void |
test_concurrentClients()
A stress test of concurrent SPARQL UPDATE requests against multiple
namespaces that is intended to run in CI.
|
asGraph, asGraph, assertSameGraph, assertSameGraph, countAll, countMatches, countResults, countResults, countResults, doConstructTest, doDeleteWithAccessPath, doDeleteWithBody, doDeleteWithPostTest, doDeleteWithQuery, doDescribeTest, doInsertByBody, doInsertbyURL, doInsertWithBodyTest, genNTRIPLES, genNTRIPLES2, getExactSize, getMatches, getResponseBody, getTestMode, getVeryLargeLiteral, loadGraphFromResource, newFixture, readFromFile, readGraphFromFile, setupDataOnServer, setupQuadsDataOnServer, writeOnBuffergetDelegate, getIndexManager, getOurDelegate, getProperties, setDelegatecheckIfProxy, setUp, tearDown, tearDownAfterSuiteassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic StressTestConcurrentRestApiRequests()
public StressTestConcurrentRestApiRequests(String name)
public static junit.framework.Test suite()
public void setUp()
throws Exception
setUp in class AbstractTestNanoSparqlClient<S extends IIndexManager>Exceptionpublic void tearDown()
throws Exception
tearDown in class AbstractTestNanoSparqlClient<S extends IIndexManager>Exceptionpublic void test_concurrentClients()
throws Exception
Exceptionpublic void stressTest_concurrentClients_10Minutes()
throws Exception
Exceptionpublic void stressTest_concurrentClients_2Hours()
throws Exception
ExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.