-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #431 * Exclude namespace from the API. * Update portal to the latest library version. * Remove Funnel from list of production systems (they have stopped using Clojure). * Add link from :test in Configuration to Test runners page. * Only show 'with' in ws and test, if :test-configs is configured in workspace.edn. * Added merge-test-config test. * Bump djblue/portal to 0.54.2. * 0.2.20-SNAPSHOT #14
- Loading branch information
1 parent
84f4e92
commit 973fd8c
Showing
13 changed files
with
73 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{:paths ["src"] | ||
:deps {djblue/portal {:mvn/version "0.53.0"}} | ||
:deps {djblue/portal {:mvn/version "0.54.2"}} | ||
:aliases {:test {:extra-paths [] | ||
:extra-deps {}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
components/workspace/src/polylith/clj/core/workspace/enrich/test_configs.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
components/workspace/test/polylith/clj/core/workspace/enrich/test_configs_test.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(ns polylith.clj.core.workspace.enrich.test-configs-test | ||
(:require [clojure.test :refer :all] | ||
[polylith.clj.core.workspace.enrich.test-configs :as test-configs])) | ||
|
||
(deftest merge-vector-values-if-both-are-vectors | ||
(is (= {:a [1 2]} | ||
(test-configs/merge-data {:a [1]} [{:a [2]} []])))) | ||
|
||
(deftest merge-vector-values-if-both-are-vectors-multi-levels | ||
(is (= {:a {:b [1 2]}} | ||
(test-configs/merge-data {:a {:b [1]}} [{:a {:b [2]}} []])))) | ||
|
||
(deftest replace-with-value-if-not-both-are-vectors | ||
(is (= {:a [2]} | ||
(test-configs/merge-data {:a 1} [{:a [2]} []])))) | ||
|
||
(deftest merge-multiple-values | ||
(is (= {:a 2 | ||
:b {:c 4 | ||
:e 5 | ||
:f 6} | ||
:d [:i :j] | ||
:x 123} | ||
(test-configs/merge-data {:a 1 | ||
:b {:c 3 | ||
:f 6} | ||
:d [:i]} | ||
[{:a 2 | ||
:b {:c 4 | ||
:e 5} | ||
:d [:j] | ||
:x 123} | ||
[]])))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters