[
https://issues.apache.org/jira/browse/TINKERPOP3-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14560250#comment-14560250
]
Dylan Millikin commented on TINKERPOP3-704:
-------------------------------------------
It's relatively small, overall the test suit is about 340 tests big for 850
assertions across several layers (it's faster for us to make multiple
assertions per test because migrations are relatively time consuming).
For the tests I've been working under the assumption that gremlin queries that
work in non-transactional graphs should work in transactional graphs so I
usually run a low number of tests against titan.
The break down is:
*Driver*
_straight forward driver logic. Just send a query to the db and retrieve the
result with php natives._
- Test various connections. existing host, unknown host, wrong port, etc..
- Test errors. We run several incorrect gremlin queries and check returned
errors & error codes.
- Test sessions (as simple as storing an int in a variable and retrieving the
variable in another query)
- Test transactions (start, commit, rollback on Vertex insertions)
*ORG/OGM*
_This layer builds queries semi-dynamically, parses return values from the
server (like converting 204 error to an empty result set) and returns objects
that can be used within the php framework. It also offers some abstraction,
like a method that will reconnect the out/in side of an edge, or generating
unique keys, etc._
- Test GraphSON to Object conversion
- Test Element creation and removal
- Test setting and removing properties
- Test building of queries (and expected results from db)
- Implicite testing of more complex transactional scenarios
- Test Titan index retrieval (ManagementSystem), index unicity, etc.
-
*Application layer*
_This is mostly about our application logic but a few interesting points can
come out of it. I haven't gotten to this yet for TP3_
- Complexe traversals :
- More step coverage for gremlin
- Performance Tests
> Better Encapsulate Gremlin Server Requests Around Transactions
> --------------------------------------------------------------
>
> Key: TINKERPOP3-704
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-704
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: server
> Reporter: stephen mallette
> Assignee: stephen mallette
> Fix For: 3.0.0.GA
>
>
> See:
> https://github.com/thinkaurelius/titan/issues/1095
> for more information.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)