Skip to content

Instantly share code, notes, and snippets.

@xloem
Created January 4, 2017 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xloem/e20f95a65b2d4ccccce40dc1b540af1b to your computer and use it in GitHub Desktop.
Save xloem/e20f95a65b2d4ccccce40dc1b540af1b to your computer and use it in GitHub Desktop.
./runtests.sh
ConnectorDB v0.3.0git1112
arch: linux/amd64
go: go1.6.2
git: b4e83f0a886912f693a9cb3f7caf80599cc5c965
build: 2017-01-04_11:19:15AM
Waiting for servers to start...
My PID 31360
postgres: no process found
redis-server: no process found
gnatsd: no process found
connectordb: no process found
postgres: no process found
redis-server: no process found
gnatsd: no process found
connectordb: no process found
===================================================
Doing Create
===================================================
time="2017-01-04T12:19:13Z" level=warning msg="Test flag is set: Using testing configuration!"
time="2017-01-04T12:19:13Z" level=debug msg="Setting DEBUG log level"
time="2017-01-04T12:19:13Z" level=info msg="Creating new ConnectorDB database at 'database_test'"
time="2017-01-04T12:19:13Z" level=debug msg="Loading configuration from /home/user/src/connectordb/database_test/connectordb.conf"
time="2017-01-04T12:19:13Z" level=info msg="Setting up redis server"
time="2017-01-04T12:19:13Z" level=debug msg="Copying redis.conf from '/home/user/src/connectordb/bin/config/redis.conf'"
time="2017-01-04T12:19:13Z" level=info msg="Setting up gnatsd server"
time="2017-01-04T12:19:13Z" level=debug msg="Copying gnatsd.conf from '/home/user/src/connectordb/bin/config/gnatsd.conf'"
time="2017-01-04T12:19:13Z" level=info msg="Setting up postgres server"
time="2017-01-04T12:19:13Z" level=debug msg="Copying postgres.conf from '/home/user/src/connectordb/bin/config/postgres.conf'"
time="2017-01-04T12:19:13Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/initdb'"
time="2017-01-04T12:19:13Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/initdb'"
time="2017-01-04T12:19:13Z" level=debug msg="Checking for initdb in path..."
time="2017-01-04T12:19:13Z" level=debug msg="Checking for initdb by grep in /usr/lib/postgresql"
time="2017-01-04T12:19:13Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/initdb -U postgres --pwfile database_test/POSTGRES_TEMP_PASS.tmp -D database_test/postgres_database --auth md5"
The files belonging to this database system will be owned by user "user".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory database_test/postgres_database ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in database_test/postgres_database/base/1 ... ok
initializing pg_authid ... ok
setting password ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
/usr/lib/postgresql/9.4/bin/postgres -D database_test/postgres_database
or
/usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -l logfile start
time="2017-01-04T12:19:17Z" level=info msg="Staring postgres on port 52592"
time="2017-01-04T12:19:17Z" level=debug msg="Writing postgres.conf"
time="2017-01-04T12:19:17Z" level=debug msg="wrote config file database_test/postgres.conf.tmp"
time="2017-01-04T12:19:17Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T12:19:17Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T12:19:17Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T12:19:17Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T12:19:17Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -w start"
waiting for server to start....LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "/home/user/src/connectordb/database_test".
done
server started
time="2017-01-04T12:19:18Z" level=debug msg="Waiting for localhost:52592 to open..."
time="2017-01-04T12:19:18Z" level=debug msg="...localhost:52592 is now open."
time="2017-01-04T12:19:18Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/psql'"
time="2017-01-04T12:19:18Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/psql'"
time="2017-01-04T12:19:18Z" level=debug msg="Checking for psql in path..."
time="2017-01-04T12:19:18Z" level=debug msg="Using /usr/bin/psql"
time="2017-01-04T12:19:18Z" level=debug msg="> /usr/bin/psql postgres://postgres:sqlpassword@localhost:52592/postgres?sslmode=disable -c CREATE DATABASE connectordb;"
CREATE DATABASE
time="2017-01-04T12:19:19Z" level=debug msg="Setting up postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T12:19:22Z" level=info msg="Creating user test (test@localhost)"
time="2017-01-04T12:19:22Z" level=debug msg="Opening postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T12:19:22Z" level=info msg="Stopping Postgres..."
time="2017-01-04T12:19:22Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T12:19:22Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T12:19:22Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T12:19:22Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T12:19:22Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -m fast stop"
waiting for server to shut down........ done
server stopped
===================================================
Checking For Runaway Processes
===================================================
Looking for postgres proc...
Looking for redis proc...
Looking for gnatsd proc...
Looking for connectordb proc...
===================================================
Doing Backend Start
===================================================
time="2017-01-04T12:19:27Z" level=info msg="Starting ConnectorDB"
time="2017-01-04T12:19:27Z" level=info msg="Starting: redis=true sql=true nats=true frontend=false"
time="2017-01-04T12:19:27Z" level=info msg="Staring redis on port 6379"
time="2017-01-04T12:19:27Z" level=info msg="Staring gnatsd on port 4222"
time="2017-01-04T12:19:27Z" level=info msg="Staring postgres on port 52592"
waiting for server to start....LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "/home/user/src/connectordb/database_test".
done
server started
===================================================
Running coverage tests
===================================================
ok connectordb 5.550s coverage: 74.6% of statements
ok connectordb/authoperator 6.291s coverage: 61.3% of statements
? connectordb/authoperator/permissions [no test files]
ok connectordb/datastream 13.956s coverage: 63.8% of statements
ok connectordb/datastream/rediscache 0.330s coverage: 85.2% of statements
ok connectordb/messenger 0.014s coverage: 71.4% of statements
? connectordb/operator [no test files]
? connectordb/pathwrapper [no test files]
ok connectordb/query 0.012s coverage: 79.4% of statements
ok connectordb/schema 0.007s coverage: 100.0% of statements
ok connectordb/users 91.421s coverage: 71.1% of statements
ok util 1.390s coverage: 32.5% of statements
ok util/datapoint 0.006s coverage: 83.3% of statements
? server [no test files]
? server/restapi [no test files]
? server/restapi/crud [no test files]
? server/restapi/feed [no test files]
? server/restapi/meta [no test files]
? server/restapi/query [no test files]
? server/restapi/restcore [no test files]
? server/webcore [no test files]
? server/website [no test files]
===================================================
Doing Stop
===================================================
time="2017-01-04T12:22:03Z" level=info msg="Stopping ConnectorDB"
time="2017-01-04T12:22:03Z" level=info msg="Stopping redis..."
time="2017-01-04T12:22:03Z" level=info msg="Stopping gnatsd..."
time="2017-01-04T12:22:03Z" level=info msg="Stopping Postgres..."
waiting for server to shut down....... done
server stopped
===================================================
Checking For Runaway Processes
===================================================
Looking for postgres proc...
Looking for redis proc...
Looking for gnatsd proc...
Looking for connectordb proc...
===================================================
Checking Import/Export
===================================================
time="2017-01-04T12:22:07Z" level=info msg="Creating new ConnectorDB database at 'database_test'"
time="2017-01-04T12:22:07Z" level=info msg="Setting up redis server"
time="2017-01-04T12:22:07Z" level=info msg="Setting up gnatsd server"
time="2017-01-04T12:22:07Z" level=info msg="Setting up sqlite3 database"
time="2017-01-04T12:22:11Z" level=info msg="Starting ConnectorDB"
time="2017-01-04T12:22:11Z" level=info msg="Starting: redis=true sql=true nats=true frontend=false"
time="2017-01-04T12:22:11Z" level=info msg="Staring redis on port 6380"
time="2017-01-04T12:22:11Z" level=info msg="Staring gnatsd on port 4223"
time="2017-01-04T12:22:11Z" level=info msg="Import format version 2, from ConnectorDB v0.3.0git1098"
time="2017-01-04T12:22:11Z" level=info msg="... Importing test"
time="2017-01-04T12:22:12Z" level=info msg="............. test/android"
time="2017-01-04T12:22:13Z" level=info msg="............. test/chrome"
time="2017-01-04T12:22:14Z" level=info msg="............. test/laptop"
time="2017-01-04T12:22:14Z" level=info msg="............. test/lights"
time="2017-01-04T12:22:14Z" level=info msg="............. test/meta"
time="2017-01-04T12:22:14Z" level=info msg="............. test/user"
Error: The given export location already exists
Usage:
connectordb export [config file path or database directory] [export directory] [flags]
Global Flags:
--cpuprofile string File to which a cpu profile of ConnectorDB will be written
--logfile string The file to which log output is written
-l, --loglevel string The types of messages to show (debug,info,warn,error)
time="2017-01-04T12:22:17Z" level=error msg="The given export location already exists"
time="2017-01-04T12:22:17Z" level=info msg="Stopping ConnectorDB"
time="2017-01-04T12:22:17Z" level=info msg="Stopping redis..."
time="2017-01-04T12:22:17Z" level=info msg="Stopping gnatsd..."
===================================================
Doing Create
===================================================
time="2017-01-04T12:22:17Z" level=warning msg="Test flag is set: Using testing configuration!"
time="2017-01-04T12:22:17Z" level=debug msg="Setting DEBUG log level"
time="2017-01-04T12:22:17Z" level=info msg="Creating new ConnectorDB database at 'database_test'"
time="2017-01-04T12:22:17Z" level=debug msg="Loading configuration from /home/user/src/connectordb/database_test/connectordb.conf"
time="2017-01-04T12:22:17Z" level=info msg="Setting up redis server"
time="2017-01-04T12:22:17Z" level=debug msg="Copying redis.conf from '/home/user/src/connectordb/bin/config/redis.conf'"
time="2017-01-04T12:22:18Z" level=info msg="Setting up gnatsd server"
time="2017-01-04T12:22:18Z" level=debug msg="Copying gnatsd.conf from '/home/user/src/connectordb/bin/config/gnatsd.conf'"
time="2017-01-04T12:22:18Z" level=info msg="Setting up postgres server"
time="2017-01-04T12:22:18Z" level=debug msg="Copying postgres.conf from '/home/user/src/connectordb/bin/config/postgres.conf'"
time="2017-01-04T12:22:18Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/initdb'"
time="2017-01-04T12:22:18Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/initdb'"
time="2017-01-04T12:22:18Z" level=debug msg="Checking for initdb in path..."
time="2017-01-04T12:22:18Z" level=debug msg="Checking for initdb by grep in /usr/lib/postgresql"
time="2017-01-04T12:22:18Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/initdb -U postgres --pwfile database_test/POSTGRES_TEMP_PASS.tmp -D database_test/postgres_database --auth md5"
The files belonging to this database system will be owned by user "user".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory database_test/postgres_database ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in database_test/postgres_database/base/1 ... ok
initializing pg_authid ... ok
setting password ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
/usr/lib/postgresql/9.4/bin/postgres -D database_test/postgres_database
or
/usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -l logfile start
time="2017-01-04T12:22:21Z" level=info msg="Staring postgres on port 52592"
time="2017-01-04T12:22:21Z" level=debug msg="Writing postgres.conf"
time="2017-01-04T12:22:21Z" level=debug msg="wrote config file database_test/postgres.conf.tmp"
time="2017-01-04T12:22:21Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T12:22:21Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T12:22:21Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T12:22:21Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T12:22:21Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -w start"
waiting for server to start....LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "/home/user/src/connectordb/database_test".
done
server started
time="2017-01-04T12:22:22Z" level=debug msg="Waiting for localhost:52592 to open..."
time="2017-01-04T12:22:22Z" level=debug msg="...localhost:52592 is now open."
time="2017-01-04T12:22:22Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/psql'"
time="2017-01-04T12:22:22Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/psql'"
time="2017-01-04T12:22:22Z" level=debug msg="Checking for psql in path..."
time="2017-01-04T12:22:22Z" level=debug msg="Using /usr/bin/psql"
time="2017-01-04T12:22:22Z" level=debug msg="> /usr/bin/psql postgres://postgres:sqlpassword@localhost:52592/postgres?sslmode=disable -c CREATE DATABASE connectordb;"
CREATE DATABASE
time="2017-01-04T12:22:24Z" level=debug msg="Setting up postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T12:22:26Z" level=info msg="Creating user test (test@localhost)"
time="2017-01-04T12:22:26Z" level=debug msg="Opening postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T12:22:26Z" level=info msg="Stopping Postgres..."
time="2017-01-04T12:22:26Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T12:22:26Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T12:22:26Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T12:22:26Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T12:22:26Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -m fast stop"
waiting for server to shut down........ done
server stopped
===================================================
Starting Server
===================================================
time="2017-01-04T12:22:31Z" level=debug msg="Setting DEBUG log level"
time="2017-01-04T12:22:31Z" level=info msg="Starting ConnectorDB"
time="2017-01-04T12:22:31Z" level=debug msg="Loading configuration from database_test/connectordb.conf"
time="2017-01-04T12:22:31Z" level=info msg="Staring redis on port 6379"
time="2017-01-04T12:22:31Z" level=debug msg="Writing redis.conf"
time="2017-01-04T12:22:31Z" level=debug msg="wrote config file database_test/redis.conf.tmp"
time="2017-01-04T12:22:31Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/redis-server'"
time="2017-01-04T12:22:31Z" level=debug msg="Checking for redis-server in path..."
time="2017-01-04T12:22:31Z" level=debug msg="Using /usr/bin/redis-server"
time="2017-01-04T12:22:31Z" level=debug msg="> /usr/bin/redis-server database_test/redis.conf.tmp"
time="2017-01-04T12:22:31Z" level=debug msg="Waiting for localhost:6379 to open..."
time="2017-01-04T12:22:32Z" level=debug msg="...localhost:6379 is now open."
time="2017-01-04T12:22:32Z" level=info msg="Staring gnatsd on port 4222"
time="2017-01-04T12:22:32Z" level=debug msg="Writing gnatsd.conf"
time="2017-01-04T12:22:32Z" level=debug msg="wrote config file database_test/gnatsd.conf.tmp"
time="2017-01-04T12:22:32Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/gnatsd'"
time="2017-01-04T12:22:32Z" level=debug msg="> /home/user/src/connectordb/bin/dep/gnatsd -c database_test/gnatsd.conf.tmp"
time="2017-01-04T12:22:32Z" level=debug msg="Waiting for localhost:4222 to open..."
time="2017-01-04T12:22:32Z" level=debug msg="...localhost:4222 is now open."
time="2017-01-04T12:22:32Z" level=info msg="Staring postgres on port 52592"
time="2017-01-04T12:22:32Z" level=debug msg="Writing postgres.conf"
time="2017-01-04T12:22:32Z" level=debug msg="wrote config file database_test/postgres.conf.tmp"
time="2017-01-04T12:22:32Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pgsql/bin/pg_ctl'"
time="2017-01-04T12:22:32Z" level=debug msg="Checking for '/home/user/src/connectordb/bin/dep/pg_ctl'"
time="2017-01-04T12:22:32Z" level=debug msg="Checking for pg_ctl in path..."
time="2017-01-04T12:22:32Z" level=debug msg="Checking for pg_ctl by grep in /usr/lib/postgresql"
time="2017-01-04T12:22:32Z" level=debug msg="> /usr/lib/postgresql/9.4/bin/pg_ctl -D database_test/postgres_database -w start"
waiting for server to start....LOG: redirecting log output to logging collector process
HINT: Future log output will appear in directory "/home/user/src/connectordb/database_test".
done
server started
time="2017-01-04T12:22:33Z" level=debug msg="Waiting for localhost:52592 to open..."
time="2017-01-04T12:22:33Z" level=debug msg="...localhost:52592 is now open."
time="2017-01-04T12:22:33Z" level=debug msg="> /home/user/src/connectordb/bin/connectordb run database_test --loglevel DEBUG"
time="2017-01-04T12:22:33Z" level=debug msg="Waiting for localhost:8000 to open..."
time="2017-01-04T12:22:33Z" level=debug msg="Setting DEBUG log level"
time="2017-01-04T12:22:33Z" level=debug msg="Loading configuration from /home/user/src/connectordb/database_test/connectordb.conf"
time="2017-01-04T12:22:33Z" level=debug msg="Setting DEBUG log level"
time="2017-01-04T12:22:33Z" level=debug msg="{\n\t\"version\": 1,\n\t\"watch\": true,\n\t\"permissions\": \"default\",\n\t\"hostname\": \"\",\n\t\"port\": 8000,\n\t\"redirect80\": false,\n\t\"frontend_enabled\": true,\n\t\"logfile\": \"\",\n\t\"loglevel\": \"DEBUG\",\n\t\"siteurl\": \"localhost\",\n\t\"allowcrossorigin\": false,\n\t\"cookie\": {\n\t\t\"authkey\": \"7lFb1Ho6m1y96wf738cCOTPnX0U1Olo9Io+M6H1rSb+Zh7SE4LpnjBJ/eWuI4WPUETjVm83evfz8iXyq638qNA==\",\n\t\t\"encryptionkey\": \"SyhdpGgTUWHPDm3DyDGSeeMtYzMVeDxBs1AUXBzAh28=\",\n\t\t\"maxage\": 10368000,\n\t\t\"remember\": true\n\t},\n\t\"tls\": {\n\t\t\"enabled\": false,\n\t\t\"key\": \"tls_key.key\",\n\t\t\"cert\": \"tls_cert.crt\",\n\t\t\"acme\": {\n\t\t\t\"enabled\": false,\n\t\t\t\"server\": \"https://acme-v01.api.letsencrypt.org/directory\",\n\t\t\t\"private_key\": \"acme_privatekey.pem\",\n\t\t\t\"registration\": \"acme_registration.json\",\n\t\t\t\"domains\": [\n\t\t\t\t\"example.com\",\n\t\t\t\t\"www.example.com\"\n\t\t\t],\n\t\t\t\"tos_agree\": false\n\t\t}\n\t},\n\t\"captcha\": {\n\t\t\"enabled\": false,\n\t\t\"site_key\": \"\",\n\t\t\"site_secret\": \"\"\n\t},\n\t\"query_display_timer\": 60,\n\t\"stats_display_timer\": 86400,\n\t\"insert_limit_bytes\": 10485760,\n\t\"http_read_timeout\": 5,\n\t\"websocket\": {\n\t\t\"message_limit_bytes\": 1048576,\n\t\t\"write_wait\": 2,\n\t\t\"pong_wait\": 60,\n\t\t\"ping_period\": 54,\n\t\t\"read_buffer\": 1024,\n\t\t\"write_buffer\": 1024,\n\t\t\"message_buffer\": 3\n\t},\n\t\"minify\": true,\n\t\"cache_static\": true,\n\t\"cache_static_maxage\": 604800,\n\t\"gzip_static\": true,\n\t\"failed_login_delay\": 300,\n\t\"redis\": {\n\t\t\"hostname\": \"localhost\",\n\t\t\"port\": 6379,\n\t\t\"password\": \"redis\",\n\t\t\"enabled\": true\n\t},\n\t\"nats\": {\n\t\t\"hostname\": \"localhost\",\n\t\t\"port\": 4222,\n\t\t\"username\": \"connectordb\",\n\t\t\"password\": \"nats\",\n\t\t\"enabled\": true\n\t},\n\t\"sql\": {\n\t\t\"uri\": \"\",\n\t\t\"type\": \"postgres\",\n\t\t\"hostname\": \"localhost\",\n\t\t\"port\": 52592,\n\t\t\"username\": \"postgres\",\n\t\t\"password\": \"sqlpassword\",\n\t\t\"enabled\": true\n\t},\n\t\"batchsize\": 250,\n\t\"chunksize\": 1,\n\t\"cache\": true,\n\t\"cache_timeout\": 1000,\n\t\"user_cache_size\": 1000,\n\t\"device_cache_size\": 10000,\n\t\"stream_cache_size\": 10000,\n\t\"password_hash\": \"bcrypt\",\n\t\"pipescript\": {\n\t\t\"split_max\": 50000,\n\t\t\"string_max\": 1000000,\n\t\t\"peek_max\": 100,\n\t\t\"disable_transforms\": [],\n\t\t\"disable_interpolators\": []\n\t}\n}"
time="2017-01-04T12:22:33Z" level=debug msg="Opening ConnectorDB"
time="2017-01-04T12:22:33Z" level=debug msg="Opening postgres database at postgres://postgres:sqlpassword@localhost:52592/connectordb?sslmode=disable"
time="2017-01-04T12:22:33Z" level=debug msg="Opening SQL database"
time="2017-01-04T12:22:33Z" level=debug msg="Using caching layer (usr 1000, dev 10000, strm 10000, timeout 1000)"
time="2017-01-04T12:22:33Z" level=debug msg="Opening NATS messenger"
time="2017-01-04T12:22:33Z" level=debug msg="Opening Redis cache"
time="2017-01-04T12:22:33Z" level=debug msg="Opening DataStream"
time="2017-01-04T12:22:33Z" level=debug msg="Hosting www from '/home/user/src/connectordb/bin/www'"
time="2017-01-04T12:22:33Z" level=debug msg="Hosting app from '/home/user/src/connectordb/bin/app'"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/www"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/www/css"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/www/img"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/www/js"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/www/js/vendor"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/www/templates"
time="2017-01-04T12:22:33Z" level=debug msg="loading... /home/user/src/connectordb/bin/www"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/app"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/app/css"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/app/css/images"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/app/fonts"
time="2017-01-04T12:22:33Z" level=debug msg="start watching /home/user/src/connectordb/bin/app/js"
time="2017-01-04T12:22:33Z" level=debug msg="loading... /home/user/src/connectordb/bin/app"
time="2017-01-04T12:22:33Z" level=info msg="Running ConnectorDB v0.3.0git1112 at http://localhost:8000 (:8000)"
time="2017-01-04T12:22:33Z" level=debug msg="Starting Database Writer"
time="2017-01-04T12:22:33Z" level=debug msg="DBWriter: Checking write queue..."
time="2017-01-04T12:22:33Z" level=debug msg="Running DBWriter"
time="2017-01-04T12:22:33Z" level=debug msg="...localhost:8000 is now open."
===================================================
Starting API Tests
===================================================
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
EE
======================================================================
ERROR: Failure: ImportError (No module named websocket)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/user/src/connectordb/connectordb_python/connectordb_test.py", line 7, in <module>
import connectordb
File "/home/user/src/connectordb/connectordb_python/connectordb/__init__.py", line 40, in <module>
from ._connectordb import *
File "/home/user/src/connectordb/connectordb_python/connectordb/_connectordb.py", line 5, in <module>
from ._connection import DatabaseConnection
File "/home/user/src/connectordb/connectordb_python/connectordb/_connection.py", line 14, in <module>
from ._websocket import WebsocketHandler
File "/home/user/src/connectordb/connectordb_python/connectordb/_websocket.py", line 3, in <module>
import websocket
ImportError: No module named websocket
======================================================================
ERROR: Failure: ImportError (No module named websocket)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/user/src/connectordb/connectordb_python/query_test.py", line 5, in <module>
import connectordb
File "/home/user/src/connectordb/connectordb_python/connectordb/__init__.py", line 40, in <module>
from ._connectordb import *
File "/home/user/src/connectordb/connectordb_python/connectordb/_connectordb.py", line 5, in <module>
from ._connection import DatabaseConnection
File "/home/user/src/connectordb/connectordb_python/connectordb/_connection.py", line 14, in <module>
from ._websocket import WebsocketHandler
File "/home/user/src/connectordb/connectordb_python/connectordb/_websocket.py", line 3, in <module>
import websocket
ImportError: No module named websocket
----------------------------------------------------------------------
Ran 2 tests in 0.001s
FAILED (errors=2)
===================================================
Doing Stop
===================================================
time="2017-01-04T12:22:34Z" level=info msg="Stopping ConnectorDB"
time="2017-01-04T12:22:34Z" level=info msg="Stopping frontend..."
time="2017-01-04T12:22:34Z" level=info msg="Stopping redis..."
time="2017-01-04T12:22:34Z" level=warning msg=Exiting...
time="2017-01-04T12:22:34Z" level=debug msg="Running 2 cleanup tasks"
time="2017-01-04T12:22:34Z" level=debug msg="Done with cleanup task #2"
time="2017-01-04T12:22:34Z" level=error msg="DBWriter error: read tcp 127.0.0.1:36908->127.0.0.1:6379: use of closed network connection"
time="2017-01-04T12:22:34Z" level=debug msg="Done with cleanup task #1"
time="2017-01-04T12:22:34Z" level=warning msg="bye!"
time="2017-01-04T12:22:34Z" level=info msg="Stopping gnatsd..."
time="2017-01-04T12:22:34Z" level=info msg="Stopping Postgres..."
waiting for server to shut down.... done
server stopped
===================================================
Checking For Runaway Processes
===================================================
Looking for postgres proc...
Looking for redis proc...
Looking for gnatsd proc...
Looking for connectordb proc...
FAILED TEST
Makefile:101: recipe for target 'test' failed
make: *** [test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment