311 Commits

Author SHA1 Message Date
Billy Chan
333f199c1a
cargo fmt 2021-08-29 22:37:21 +08:00
Billy Chan
4d0c5f0b0f
Hotfix - Postgres errors 2021-08-29 22:11:19 +08:00
Billy Chan
752cc4a44e
WIP 2021-08-29 19:39:01 +08:00
Billy Chan
3bada7fbc3
WIP 2021-08-29 12:05:55 +08:00
Billy Chan
9db0748c64
Non-static link 2021-08-28 20:20:34 +08:00
Billy Chan
484da8f6b6
WIP 2021-08-28 20:00:59 +08:00
Billy Chan
bfaa7d4539
Test Linked 2021-08-26 23:28:44 +08:00
Billy Chan
09c328bb0d Use smol async-runtime and require one of the supported runtime for integration tests 2021-08-21 22:56:48 +08:00
Billy Chan
2cfaa34a33 Test against all supported runtime 2021-08-21 22:56:48 +08:00
Chris Tsang
c1ac7baae9 cargo fmt 2021-08-08 16:13:27 +08:00
Chris Tsang
7352bb96e4 Basic tests for SQLite 2021-08-08 16:12:36 +08:00
Chris Tsang
7e968e2bbf Improve bakery schema 2021-08-07 21:35:04 +08:00
Chris Tsang
2060e30f06 Entity prelude with external types 2021-08-07 21:01:56 +08:00
Chris Tsang
96313dc6d1 Rename file 2021-08-07 19:28:41 +08:00
Chris Tsang
08497f1767 Cleanup 2021-08-07 19:10:30 +08:00
Sam Samai
e01585c9e7 Add runtime configs to tests and clean up 2021-08-06 22:27:03 +10:00
Sam Samai
e7d2899019 Refactor basic test 2021-08-06 22:08:59 +10:00
Sam Samai
5930c4b278 Clean up 2021-08-06 21:17:49 +10:00
Billy Chan
5e47dd5d74
SQLite not support right join 2021-08-06 18:32:16 +08:00
Billy Chan
7e590b4a8d
SQLite use ENV connection string 2021-08-06 18:23:10 +08:00
Billy Chan
33298636a6
Hotfix - sqlite ignore right_join test 2021-08-06 16:33:20 +08:00
Billy Chan
d5447bca88
Hotfix - Postgres types 2021-08-06 12:26:56 +08:00
Billy Chan
9b61e22ba9
Hotfix - Postgres collation default case-sensitive? 2021-08-06 10:54:09 +08:00
Sam Samai
402c003d84 WIP - failing for postgres on Customer::find().count(db).await.unwrap(); 2021-08-05 21:08:28 +10:00
Sam Samai
54461172de WIP 3 2021-08-02 21:35:41 +10:00
Sam Samai
09dd290101 WIP 2 2021-08-02 21:21:35 +10:00
Sam Samai
abed934d3f WIP strange fail with postgres driver 2021-08-01 16:14:31 +10:00
Sam Samai
1c3e1b410b Use DATABASE_URL env variable for bakery_chain_tests 2021-07-31 16:50:04 +10:00
Sam Samai
445d24eebf Use DATABASE_URL env variable for query_tests 2021-07-31 16:38:12 +10:00
Sam Samai
c240ebba77 Use DATABASE_URL env variable for relational_tests 2021-07-31 16:24:35 +10:00
Sam Samai
b2ed13868e Use DATABASE_URL env variable for sequential_op_tests 2021-07-31 15:59:54 +10:00
Billy Chan
571210748f
cargo +nightly fmt 2021-07-26 14:56:56 +08:00
Billy Chan
c9d1285b57
Hotfix 2021-07-26 13:02:02 +08:00
Billy Chan
8013f92261
Feature gated mysql tests 2021-07-26 12:43:46 +08:00
Sam Samai
6efb06d28b Merge branch 'master' into ss/test_suite
# Conflicts:
#	Cargo.toml
2021-07-25 20:41:42 +10:00
Sam Samai
09f344ecbb Test multiple sequential operations 2021-07-24 20:46:19 +10:00
Sam Samai
3bd9948f8c Point pg_tests to common::bakery_chain files 2021-07-22 21:26:01 +10:00
Billy Chan
1cdbcceddb
Testing different db on various async runtime (#53)
* Testing different db on various async runtime

* Test on various runtime

* No explicit cargo build step

* Cargo build with features

* Hotfix

* With actix_rt

* Only tests "runtime-async-std-native-tls" for now
2021-07-22 19:23:21 +08:00
Sam Samai
1d55df9c7b Merge branch 'master' into ss/test_suite
# Conflicts:
#	.github/workflows/rust.yml
#	Cargo.toml
2021-07-22 21:04:36 +10:00
Billy Chan
22516b8f68 Add Postgres db driver 2021-07-21 19:07:02 +08:00
Sam Samai
dfda079b77 Store baker contact details as Json and test 2021-07-21 15:36:53 +10:00
Sam Samai
c9833893c0 Column type can be Uuid 2021-07-20 16:28:38 +10:00
Sam Samai
47b70cfe6d Create serial field on cake which is UUID 2021-07-19 17:23:34 +10:00
Sam Samai
d64bf72910 Run each relational test using #[async_std::test] 2021-07-19 16:30:22 +10:00
Sam Samai
c4667296ca Use greater than in having test 2021-07-18 20:58:52 +10:00
Sam Samai
a41d980848 Query tests with and without results 2021-07-18 14:37:36 +10:00
Sam Samai
74b5dee773 Test updating a deleted entity 2021-07-18 13:52:38 +10:00
Sam Samai
4ff2ccdaf9 Use DatabaseBackend instead of Syntax 2021-07-18 13:02:04 +10:00
Sam Samai
f5838f8cbd Merge branch 'master' into ss/test_suite 2021-07-18 12:56:22 +10:00
Sam Samai
1dcca49837 Test having 2021-07-18 12:54:21 +10:00