Commit Graph

37 Commits (97166511075d2c6d497e27c4885d1bf7a02df08e)

Author SHA1 Message Date
Rick Carlino 37222d09d6 CI debug: Possible race condition, again? 2020-04-13 14:03:45 -05:00
Rick Carlino a55295f596 Force rebuild 2020-04-13 13:58:06 -05:00
Rick Carlino faf88bb925 Add note about blinky test in farmbot_ext (TODO) 2020-04-02 15:06:15 -05:00
Rick Carlino 04c74b28f2 Replace Process.sleep() with Helpers.wait_for(pid) 2020-03-31 11:37:23 -05:00
Rick Carlino 33b0947c7a Set `async` to `false` in a few missing places 2020-03-30 17:43:29 -05:00
Rick Carlino 63056be70b Update blinky test :-\ 2020-03-25 09:48:11 -05:00
Rick Carlino 6440aacdb8 Formatting updates 2020-03-10 15:40:17 -05:00
Rick Carlino e25a30a344 Test case: Autosync of a device asset. 2020-03-10 15:26:35 -05:00
Rick Carlino 9cd28db4b1 Prevent blinky tests for AutoSyncChannel 2020-03-10 13:06:29 -05:00
Rick Carlino 3b76ea17e8 simple tests: basic_cancel, basic_cancel_ok, basic_consume_ok 2020-03-10 12:40:52 -05:00
Rick Carlino 06926b05ce Dont start process tree in test env. Silence numerous logs. 2020-03-10 12:08:19 -05:00
Rick Carlino efa2bff829 WIP, need to prep an RC 2020-03-09 13:39:51 -05:00
Rick Carlino 1d85b95a48 Unit tests for AutoSyncChannel.terminate 2020-03-09 11:48:07 -05:00
Rick Carlino 5ef5bb7b91 Silence supervisor crash reports in test suite 2020-03-09 10:59:37 -05:00
Rick Carlino fb118002e4 WIP: TODO: Fix supervisor error messages in test suite 2020-03-09 09:30:55 -05:00
Rick Carlino 1f26485f88 Add `LOG_SILENCE` env for local dev, remove less helpful debug/warn logs (Elixir kind, not FarmBot kind) 2020-03-06 10:30:04 -06:00
Rick Carlino d4d7cc020b ** (Sqlite.DbConnection.Error) near "?2": syntax error 2020-02-24 18:54:54 -06:00
Rick Carlino a0b5bff980 Disable failing test temporarily 2020-01-25 13:10:01 -06:00
Rick Carlino b83be2fda2 Fix typo 2020-01-25 13:04:26 -06:00
Rick Carlino 08aeed1cf5 2 failure => 1. 2020-01-25 12:31:36 -06:00
Rick Carlino c830099dd2 13 => 3 failures (:set_mimic_global) 2020-01-25 12:23:41 -06:00
Rick Carlino 7059f3c44c FAILING: Verify mocks on exit. 2020-01-25 11:48:52 -06:00
Rick Carlino feae00c8db TODO: FIX NETWORK_LAYER CONFIG STUFF 2020-01-22 12:40:42 -06:00
Rick Carlino 7e5738f883 [UNSTABLE] 42.1% Partial removal of :mox, some tests failing though 2020-01-22 11:41:43 -06:00
Connor Rigby e7ea334ab2
Change Preloading and Caching to use the same system as auto_sync
* preloader and reconciler no longer use a transaction
   * This will prevent rolling back a failed sync, but allows farmbot to
   continue operating if a sync does fail
* usage of the preloader updated to reflect this
2019-09-13 16:03:23 -07:00
Connor Rigby d5215b6608
Handle unknown auto_sync messages
Adds a blacklist of known asset types that FarmBot can
handle and sync/cache. This is important for when new assets are added or
assets are dispatched for the frontend to consume.
2019-09-13 16:03:22 -07:00
Connor Rigby 11220c3697
Refactor Preloader test system
* Gets rid of the Preloader behaviour
  * This prevents the Preloader mock from overriding the _actual_
    implementation.
* Update auto_sync_channel_test to mock the API, not the Preloader
* remove old preloader_test as it didn't do anything
2019-09-13 16:03:22 -07:00
Connor Rigby 7cda16f144
Fix argument order in auto_sync channel 2019-09-13 16:03:22 -07:00
Rick Carlino b619cb3576
Add scafold tests for celery_script_channel
* Test case: `celery_script_channel` `start_link`
2019-09-13 16:03:22 -07:00
Connor Rigby 26578a7ae2
Update `mox` to be used correctly.
I previously misunderstood how the black magic of mox actually works.
This updates `farmbot_ext` to not require setting excess data in every
config.exs entry. Also removes calls to `Application.get_env/2`
2019-09-13 16:03:22 -07:00
Connor Rigby 1483a3881f
Cleanup farmbot_ext auto_sync_channel
Also add some documentation for stubable
modules Query and Command
2019-09-13 16:03:21 -07:00
Connor Rigby 686c9be7c9
Fix process naming colision 2019-09-13 16:03:21 -07:00
Rick Carlino ab9e434da8
Cleanup of auto_sync tests
* Move EagerLoader and friends back into AutoSyncChannel to avoid cross cutting
2019-09-13 16:03:21 -07:00
Rick Carlino c3819359b0
Test auto_sync ignore case
* Test case: auto_sync is disabled.

* Test case: auto_sync of Device assets

* Test case: auto_sync of FbosConfig

* Test case: auto_sync of FbosConfig assets

* Test case: auto_sync of FarmwareInstallation assets

Test case: `cache_sync/3`
2019-09-13 16:03:21 -07:00
Rick Carlino 8c7d6f6608
AutoSyncChannel Testing: Device, `auto_sync = false` (#714)
* Test auto_sync ignore case

* Test case: auto_sync is disabled.

* Test for auto_sync of Device assets
2019-09-13 16:03:21 -07:00
Rick Carlino 4248c93962
Add mox and excoveralls
* and tests for AutoSyncChannel
* add tests for auto sync preloader
2019-09-13 16:03:20 -07:00
Rick Carlino 0c75d61d2d
Add mox, excoveralls and a test for AutoSyncChannel 2019-09-13 16:03:20 -07:00