setUp { setFailOnError true } loadLoopback { load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb } test1 { select * from partssupplier.partssupplier.parts; result [ bogus ] } test2 { select * from partssupplier.partssupplier.parts; result [ PART_ID PART_NAME PART_COLOR PART_WEIGHT ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ] } testBadData { select * from partssupplier.partssupplier.parts; result [ PART_ID PART_NAME PART_COLOR PART_WEIGHT ABCDEFGHIJ ABCDEFGHIJ XX ABCDEFGHIJ ] } test3 { setFailOnError false setProperty propertyName propertyValue execute "select * from tables" select * from partssupplier.partssupplier.parts; } testInsert { insert into PartsSupplier.PARTSSUPPLIER.PARTS (PART_COLOR) values (5); result [ count 0 ] } testUpdate { update PartsSupplier.PARTSSUPPLIER.PARTS set PART_COLOR = 5; result [ count 0 ] } testDelete { delete from PartsSupplier.PARTSSUPPLIER.PARTS; result [ count 0 ] } testLoadArchive { loadArchive testdata/sample.caf load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb start select * from partssupplier.partssupplier.parts; result [ PART_ID PART_NAME PART_COLOR PART_WEIGHT ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ] } testSetProperty { load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb setProperty p1 v1 start getProperties result [ p1=v1 ] } testSetPropertyAfterConnectorHostStart { load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb start select * from partssupplier.partssupplier.parts; setFailOnError false setProperty p1 v1 result [ RuntimeException-Cannot set connector properties after the connector is started. ] } testLoadingClearsProperties { load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb setProperty p1 v1 load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb setProperty p2 v2 start getProperties result [ p2=v2 ] } testCaseInsensitiveCommands { load com.metamatrix.connector.loopback.LoopbackConnector partssupplier/PartsSupplier.vdb start SELECT * from partssupplier.partssupplier.parts; result [ PART_ID PART_NAME PART_COLOR PART_WEIGHT ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ] } quitScript { quit } testHelp { help result [ createArchive createTemplate delete exec exit getProperties help insert load loadArchive loadFromScript loadProperties quit run runAll runScript select setBatchSize setFailOnError setPrintStackOnError setProperty setScriptFile setSecurityContext setSilent boolean start stop update ] } testNotLoadingConnector { setFailOnError false select * from tables; }