1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-17 00:17:42 +02:00

Test data update (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-02-18 14:01:44 +03:00
parent 651bf091f5
commit 2a655c5502
685 changed files with 946 additions and 806 deletions

View File

@ -0,0 +1,5 @@
oint postgres AddRecords \
--table "testtable" \
--rows "[{'bool_field':{'BOOL':true},'oldchar_field':{'OLDCHAR':1},'smallint_field':{'SMALLINT':5},'smallserial_field':{'SMALLSERIAL':6},'int_field':{'INT':100},'serial_field':{'SERIAL':100},'oid_field':{'OID':24576},'bigint_field':{'BIGINT':9999999},'bigserial_field':{'BIGSERIAL':9999999},'real_field':{'REAL':15.2},'dp_field':{'DOUBLE_PRECISION':1.0002},'text_field':{'TEXT':'Some text'},'varchar_field':{'VARCHAR':'Some varchar'},'charn_field':{'CHAR':'AAA'},'char_field':{'CHAR':'A'},'name_field':{'NAME':'Vitaly'},'bytea_field':{'BYTEA':'C:\\Users\\Administrator\\AppData\\Local\\Temp\\4te55yi1wqk.tmp'},'ts_field':{'TIMESTAMP':'2025-02-18T13:13:43.3777941Z'},'tswtz_field':{'TIMESTAMP_WITH_TIME_ZONE':'2025-02-18T13:13:43.3777941+05:00'},'ip_field':{'INET':'127.0.0.1'},'json_field':{'JSON':{'key':'***','value':10}},'jsonb_field':{'JSONB':{'key':'***','value':10}},'date_field':{'DATE':'2025-02-18T13:13:43.3777941Z'},'time_field':{'TIME':'2025-02-18T13:13:43.3777941Z'},'uuid_field':{'UUID':'1d37c633-e61d-480b-b6b8-bebe3413594c'}}]" \
--trn true \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,5 @@
oint postgres AddRecords ^
--table "testtable" ^
--rows "[{'bool_field':{'BOOL':true},'oldchar_field':{'OLDCHAR':1},'smallint_field':{'SMALLINT':5},'smallserial_field':{'SMALLSERIAL':6},'int_field':{'INT':100},'serial_field':{'SERIAL':100},'oid_field':{'OID':24576},'bigint_field':{'BIGINT':9999999},'bigserial_field':{'BIGSERIAL':9999999},'real_field':{'REAL':15.2},'dp_field':{'DOUBLE_PRECISION':1.0002},'text_field':{'TEXT':'Some text'},'varchar_field':{'VARCHAR':'Some varchar'},'charn_field':{'CHAR':'AAA'},'char_field':{'CHAR':'A'},'name_field':{'NAME':'Vitaly'},'bytea_field':{'BYTEA':'C:\\Users\\Administrator\\AppData\\Local\\Temp\\4te55yi1wqk.tmp'},'ts_field':{'TIMESTAMP':'2025-02-18T13:13:43.3777941Z'},'tswtz_field':{'TIMESTAMP_WITH_TIME_ZONE':'2025-02-18T13:13:43.3777941+05:00'},'ip_field':{'INET':'127.0.0.1'},'json_field':{'JSON':{'key':'***','value':10}},'jsonb_field':{'JSONB':{'key':'***','value':10}},'date_field':{'DATE':'2025-02-18T13:13:43.3777941Z'},'time_field':{'TIME':'2025-02-18T13:13:43.3777941Z'},'uuid_field':{'UUID':'1d37c633-e61d-480b-b6b8-bebe3413594c'}}]" ^
--trn true ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres ClearTable \
--table "testtable" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres ClearTable ^
--table "testtable" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres CreateDatabase \
--base "testbase1" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres CreateDatabase ^
--base "testbase1" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,6 @@
# JSON data can also be passed as a path to a .json file
oint postgres CreateTable \
--table "testtable" \
--cols "{'bool_field':'BOOL','oldchar_field':'\"char\"','smallint_field':'SMALLINT','smallserial_field':'SMALLSERIAL','int_field':'INT','serial_field':'SERIAL','oid_field':'OID','bigint_field':'BIGINT','bigserial_field':'BIGSERIAL','real_field':'REAL','dp_field':'DOUBLE PRECISION','text_field':'TEXT','varchar_field':'VARCHAR','charn_field':'CHAR(3)','char_field':'CHAR','name_field':'NAME','bytea_field':'BYTEA','ts_field':'TIMESTAMP','tswtz_field':'TIMESTAMP WITH TIME ZONE','ip_field':'INET','json_field':'JSON','jsonb_field':'JSONB','date_field':'DATE','time_field':'TIME','uuid_field':'UUID'}" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,6 @@
:: JSON data can also be passed as a path to a .json file
oint postgres CreateTable ^
--table "testtable" ^
--cols "{'bool_field':'BOOL','oldchar_field':'\"char\"','smallint_field':'SMALLINT','smallserial_field':'SMALLSERIAL','int_field':'INT','serial_field':'SERIAL','oid_field':'OID','bigint_field':'BIGINT','bigserial_field':'BIGSERIAL','real_field':'REAL','dp_field':'DOUBLE PRECISION','text_field':'TEXT','varchar_field':'VARCHAR','charn_field':'CHAR(3)','char_field':'CHAR','name_field':'NAME','bytea_field':'BYTEA','ts_field':'TIMESTAMP','tswtz_field':'TIMESTAMP WITH TIME ZONE','ip_field':'INET','json_field':'JSON','jsonb_field':'JSONB','date_field':'DATE','time_field':'TIME','uuid_field':'UUID'}" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres DeleteDatabase \
--base "testbase1" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres DeleteDatabase ^
--base "testbase1" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,4 @@
oint postgres DeleteRecords \
--table "test_data" \
--filter "[{'field':'gender','type':'=','value':{'VARCHAR':'Male'},'raw':false,'union':'AND'}]" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,4 @@
oint postgres DeleteRecords ^
--table "test_data" ^
--filter "[{'field':'gender','type':'=','value':{'VARCHAR':'Male'},'raw':false,'union':'AND'}]" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres DeleteTable \
--table "testtable" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres DeleteTable ^
--table "testtable" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres DisableAllDatabaseConnections \
--base "testbase1" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres DisableAllDatabaseConnections ^
--base "testbase1" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres ExecuteSQLQuery \
--sql "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/TEST_DATA.sql" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres ExecuteSQLQuery ^
--sql "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/TEST_DATA.sql" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,5 @@
oint postgres GenerateConnectionString \
--addr "127.0.0.1" \
--db "postgres" \
--login "bayselonarrend" \
--pass "***"

View File

@ -0,0 +1,5 @@
oint postgres GenerateConnectionString ^
--addr "127.0.0.1" ^
--db "postgres" ^
--login "bayselonarrend" ^
--pass "***"

View File

@ -0,0 +1,9 @@
# JSON data can also be passed as a path to a .json file
oint postgres GetRecords \
--table "test_data" \
--fields "['first_name','last_name','email']" \
--filter "[{'field':'gender','type':'=','value':'Male','union':'AND','raw':false},{'field':'id','type':'BETWEEN','value':'20 AND 50','raw':true}]" \
--order "{'ip_address':'DESC'}" \
--limit 5 \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,9 @@
:: JSON data can also be passed as a path to a .json file
oint postgres GetRecords ^
--table "test_data" ^
--fields "['first_name','last_name','email']" ^
--filter "[{'field':'gender','type':'=','value':'Male','union':'AND','raw':false},{'field':'id','type':'BETWEEN','value':'20 AND 50','raw':true}]" ^
--order "{'ip_address':'DESC'}" ^
--limit 5 ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,2 @@
oint postgres GetRecordsFilterStrucutre \
--empty true

View File

@ -0,0 +1,2 @@
oint postgres GetRecordsFilterStrucutre ^
--empty true

View File

@ -0,0 +1,3 @@
oint postgres GetTableInformation \
--table "heyho" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,3 @@
oint postgres GetTableInformation ^
--table "heyho" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,7 @@
# JSON data can also be passed as a path to a .json file
oint postgres UpdateRecords \
--table "test_data" \
--values "{'ip_address':{'VARCHAR':'127.0.0.1'}}" \
--filter "[{'field':'gender','type':'=','value':{'VARCHAR':'Male'},'raw':false}]" \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"

View File

@ -0,0 +1,7 @@
:: JSON data can also be passed as a path to a .json file
oint postgres UpdateRecords ^
--table "test_data" ^
--values "{'ip_address':{'VARCHAR':'127.0.0.1'}}" ^
--filter "[{'field':'gender','type':'=','value':{'VARCHAR':'Male'},'raw':false}]" ^
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/"