testing Package

testing Package

layer Module

class crate.testing.layer.CrateLayer(name, crate_home, crate_config=None, port=9295, keepRunning=False, transport_port=None, crate_exec=None)

Bases: lovely.testlayers.server.ServerLayer, lovely.testlayers.layer.WorkDirectoryLayer

this layer starts a crate server.

Parameters:

name : layer name, is also used as the cluser name crate_home : path to home directory of the crate installation port : port on which crate should run index : a mapping containing the settings of the indices to be created keepRunning : do not shut down the crate instance for every

single test instead just delete all indices

transport_port: port on which transport layer for crate should run crate_exec : alternative executable command crate_config : alternative crate config file location

start()
stop()
wdClean = True

Table Of Contents

Previous topic

client Package