Skip to content

garyrusso/ACIDTester

Repository files navigation

ACID Tester

Purpose

This app is a C# Command Line app that is used to test MarkLogic multi-statement ACID transactions.

This s a standalone tool used to test the RESTful Transaction APIs that are in the GLM-Search application.

The GLM-Search code is here. https://github.com/garyrusso/GLM-Search

####Usage: requires at least 2 params

  • params: action, file, docUri, txid
  • action: (get | put | post | trans)

####action params:

  • if get then params are: docUri, txid (optional)
  • if put then params are: file, docUri, txid (optional)
  • if post then params: file, txid (optional) - used to create new but this is not yet implemented.
  • if trans then params: action (create | commit | rollback), txid (not needed for create)

####High Level Test Sequence:

  1. Get Document without transaction-id
  2. Create New Transaction - Establishes new transactional context that is used for subsequent requests
  3. Update Document using PUT Request with transaction-id
  4. Get Document with transaction-id
  5. Get Document without transaction-id
  6. Commit Transaction
  7. Get Document without transaction-id

####Test Sequence:

  1. acid get /inventory/123987562062413876873155783207074035544.xml
  2. acid trans create
  3. acid put C:\projects\ACIDTester\acid\InventoryAirplanes.xml /inventory/123987562062413876873155783207074035544.xml 14654627132988965180_13856553052109669213
  4. acid get /inventory/123987562062413876873155783207074035544.xml 14654627132988965180_13856553052109669213
  5. acid get /inventory/123987562062413876873155783207074035544.xml
  6. acid trans commit 14654627132988965180_13856553052109669213
  7. acid get /inventory/123987562062413876873155783207074035544.xml

About

C# Command Line Tool used to test RESTful ACID Transaction APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages