Skip to content

Commit 00f3d11

Browse files
committed
updated deps
1 parent d3fa2dc commit 00f3d11

8 files changed

Lines changed: 65 additions & 31 deletions

File tree

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ defmodule Diffo.MixProject do
5858
# Run "mix help deps" to learn about dependencies.
5959
defp deps do
6060
[
61-
{:outstanding, "~> 0.2.2"},
62-
{:ash_outstanding, "~> 0.2"},
61+
{:outstanding, "~> 0.2.3"},
62+
{:ash_outstanding, "~> 0.2.1"},
6363
{:ash_jason, "~> 2.0"},
6464
{:ash_state_machine, "~> 0.2.7"},
6565
{:ash_neo4j, ash_neo4j_version("~> 0.2.4")},

mix.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"ash": {:hex, :ash, "3.5.34", "e79e82dc3e3e66fb54a598eeba5feca2d1c3af6a0e752a3378cbad8d7a47dc6f", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.7", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8", [hex: :ets, repo: "hexpm", optional: false]}, {:igniter, ">= 0.6.4 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: true]}, {:plug, ">= 0.0.0", [hex: :plug, repo: "hexpm", optional: true]}, {:reactor, "~> 0.11", [hex: :reactor, repo: "hexpm", optional: false]}, {:simple_sat, ">= 0.1.1 and < 1.0.0-0", [hex: :simple_sat, repo: "hexpm", optional: true]}, {:spark, ">= 2.2.65 and < 3.0.0-0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, ">= 0.2.6 and < 1.0.0-0", [hex: :splode, repo: "hexpm", optional: false]}, {:stream_data, "~> 1.0", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "5cbf0a4d0ec1b6525b0782e4f5509c55dad446d657c635ceffe55f78a59132cd"},
33
"ash_jason": {:hex, :ash_jason, "2.0.0", "d5798e02ce38acf9afd4b07cbbc1057e927bbe2cb5b2e4b54d27192b609eb905", [:mix], [{:ash, "~> 3.0", [hex: :ash, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:spark, ">= 2.1.21 and < 3.0.0", [hex: :spark, repo: "hexpm", optional: false]}], "hexpm", "e704065a1e0be71efd6e13256d21b4ee7eb8541df0d2f872a30a5dbeefd02a90"},
44
"ash_neo4j": {:hex, :ash_neo4j, "0.2.7", "6997bc7d154a309fbefe7b9b6f9b834a76da48bbdde2c4576cef672fae53d517", [:mix], [{:ash, "~> 3.5", [hex: :ash, repo: "hexpm", optional: false]}, {:boltx, ">= 0.0.6", [hex: :boltx, repo: "hexpm", optional: false]}], "hexpm", "36bf01f672b3f86d9caba94602e9c1259caf376be027f3d4381a1b9ab1a2c827"},
5-
"ash_outstanding": {:hex, :ash_outstanding, "0.2.0", "b83975cbb2d4118cca2967ace89893731e9b035288b503d7445a6268f045ff7b", [:mix], [{:ash, "~> 3.5", [hex: :ash, repo: "hexpm", optional: false]}, {:outstanding, "~> 0.2.2", [hex: :outstanding, repo: "hexpm", optional: false]}], "hexpm", "0dca6ecdd6527f3f689ee8e94c8a5b3935e0e7d9977fea2e94c774cc19ca3f75"},
5+
"ash_outstanding": {:hex, :ash_outstanding, "0.2.1", "5a16b33bf8acfafa5c50541f089f0d9c306a16f4f8bbca148983e616346247dc", [:mix], [{:ash, "~> 3.5", [hex: :ash, repo: "hexpm", optional: false]}, {:outstanding, "~> 0.2.3", [hex: :outstanding, repo: "hexpm", optional: false]}], "hexpm", "24ea00aff9267cf19ab762a1a605fe965cb845eba5556e8648adca424643cfa7"},
66
"ash_state_machine": {:hex, :ash_state_machine, "0.2.12", "c0f7ebb8a176584f70c6ed196b7d0118c930d73e0590ade705d2dddc48aa7311", [:mix], [{:ash, ">= 3.4.66 and < 4.0.0-0", [hex: :ash, repo: "hexpm", optional: false]}], "hexpm", "394ce761ce82358e3c715e1cae6c5cf1390be27c03a8b661f2e5a2fda849873d"},
77
"boltx": {:hex, :boltx, "0.0.6", "c6a396b1538b258e4d5ee2a94aaf8fb2c7879240efffba94b9159dbdce963790", [:mix], [{:db_connection, "~> 2.6.0", [hex: :db_connection, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: true]}, {:poison, "~> 5.0", [hex: :poison, repo: "hexpm", optional: true]}], "hexpm", "576b8f21a2021674130d04cd1fc79a4829a23d2cdf50641b3d7a00ce31b98ead"},
88
"db_connection": {:hex, :db_connection, "2.6.0", "77d835c472b5b67fc4f29556dee74bf511bbafecdcaf98c27d27fa5918152086", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c2f992d15725e721ec7fbc1189d4ecdb8afef76648c746a8e1cad35e3b8a35f3"},
@@ -26,7 +26,7 @@
2626
"nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"},
2727
"nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"},
2828
"nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"},
29-
"outstanding": {:hex, :outstanding, "0.2.2", "f2a4d121ef717273a87701008bc0df5516f2d89f6bfda4e13d4410a01de32cb8", [:mix], [], "hexpm", "443552c4417a6b521bdd82cb8721555f5a48fcdfb904218cb2f593c1200749a5"},
29+
"outstanding": {:hex, :outstanding, "0.2.3", "99cef5d716014efb44df919df9dd1aae433d757c05837b534954cc7fa577bb32", [:mix], [], "hexpm", "9094f3b6dfb28d1dbcb8ef56f6f7f116119c2cbea72de9bcd86c53d98d28e6af"},
3030
"owl": {:hex, :owl, "0.12.2", "65906b525e5c3ef51bab6cba7687152be017aebe1da077bb719a5ee9f7e60762", [:mix], [{:ucwidth, "~> 0.2", [hex: :ucwidth, repo: "hexpm", optional: true]}], "hexpm", "6398efa9e1fea70a04d24231e10dcd66c1ac1aa2da418d20ef5357ec61de2880"},
3131
"reactor": {:hex, :reactor, "0.15.6", "d717f9add549b25a089a94c90197718d2d838e35d81dd776b1d81587d4cf2aaa", [:mix], [{:igniter, "~> 0.4", [hex: :igniter, repo: "hexpm", optional: true]}, {:iterex, "~> 0.1", [hex: :iterex, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:libgraph, "~> 0.16", [hex: :libgraph, repo: "hexpm", optional: false]}, {:spark, "~> 2.0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.2", [hex: :splode, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}, {:yaml_elixir, "~> 2.11", [hex: :yaml_elixir, repo: "hexpm", optional: false]}, {:ymlr, "~> 5.0", [hex: :ymlr, repo: "hexpm", optional: false]}], "hexpm", "74db98165e3644d86e0f723672d91ceca4339eaa935bcad7e78bf146a46d77b9"},
3232
"req": {:hex, :req, "0.5.15", "662020efb6ea60b9f0e0fac9be88cd7558b53fe51155a2d9899de594f9906ba9", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.17", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 2.0.6 or ~> 2.1", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "a6513a35fad65467893ced9785457e91693352c70b58bbc045b47e5eb2ef0c53"},

test/provider/characteristic_test.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,19 @@ defmodule Diffo.Provider.CharacteristicTest do
214214
@port_range %Diffo.Provider.Characteristic{name: "port", value: 1..4}
215215

216216
gen_nothing_outstanding_test("specific nothing outstanding", @port1, @port1)
217-
gen_result_outstanding_test("specific name and value result", @port1, nil, @port1)
218-
gen_result_outstanding_test("specific name result", @port1, @pair1, @name_only)
219-
gen_result_outstanding_test("specific value result", @port1, @port3, @value_only)
217+
gen_result_outstanding_test("specific name and value result", @port1, nil, Ash.Test.strip_metadata(@port1))
218+
gen_result_outstanding_test("specific name result", @port1, @pair1, Ash.Test.strip_metadata(@name_only))
219+
gen_result_outstanding_test("specific value result", @port1, @port3, Ash.Test.strip_metadata(@value_only))
220220

221221
gen_nothing_outstanding_test("port range nothing outstanding, port1", @port_range, @port1)
222222
gen_nothing_outstanding_test("port range nothing outstanding, port3", @port_range, @port3)
223-
gen_result_outstanding_test("port range name result, pair1", @port_range, @pair1, @name_only)
223+
gen_result_outstanding_test("port range name result, pair1", @port_range, @pair1, Ash.Test.strip_metadata(@name_only))
224224

225225
gen_result_outstanding_test(
226226
"port range value result, port5",
227227
@port_range,
228228
@port5,
229-
@range_only
229+
Ash.Test.strip_metadata(@range_only)
230230
)
231231
end
232232

test/provider/entity_ref_test.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,55 +443,55 @@ defmodule Diffo.Provider.EntityRefTest do
443443
}
444444

445445
gen_nothing_outstanding_test("specific nothing outstanding", @specific_cost, @actual_cost)
446-
gen_result_outstanding_test("specific cost result", @specific_cost, nil, @specific_cost)
446+
gen_result_outstanding_test("specific cost result", @specific_cost, nil, Ash.Test.strip_metadata(@specific_cost))
447447

448448
gen_result_outstanding_test(
449449
"specific role result",
450450
@specific_cost,
451451
Map.delete(@actual_cost, :role),
452-
@role_only
452+
Ash.Test.strip_metadata(@role_only)
453453
)
454454

455455
gen_result_outstanding_test(
456456
"specific entity result",
457457
@specific_cost,
458458
Map.delete(@actual_cost, :entity),
459-
@entity_only
459+
Ash.Test.strip_metadata(@entity_only)
460460
)
461461

462462
gen_result_outstanding_test(
463463
"specific id result",
464464
@specific_cost,
465465
update_in(@actual_cost.entity.id, fn _ -> nil end),
466-
@id_only
466+
Ash.Test.strip_metadata(@id_only)
467467
)
468468

469469
gen_result_outstanding_test(
470470
"specific href result",
471471
@specific_cost,
472472
update_in(@actual_cost.entity.href, fn _ -> nil end),
473-
@href_only
473+
Ash.Test.strip_metadata(@href_only)
474474
)
475475

476476
gen_result_outstanding_test(
477477
"specific name result",
478478
@specific_cost,
479479
update_in(@actual_cost.entity.name, fn _ -> nil end),
480-
@name_only
480+
Ash.Test.strip_metadata(@name_only)
481481
)
482482

483483
gen_result_outstanding_test(
484484
"specific referredType result",
485485
@specific_cost,
486486
update_in(@actual_cost.entity.referredType, fn _ -> nil end),
487-
@referredType_only
487+
Ash.Test.strip_metadata(@referredType_only)
488488
)
489489

490490
gen_result_outstanding_test(
491491
"specific type result",
492492
@specific_cost,
493493
update_in(@actual_cost.entity.type, fn _ -> nil end),
494-
@type_only
494+
Ash.Test.strip_metadata(@type_only)
495495
)
496496

497497
gen_nothing_outstanding_test("generic nothing outstanding", @generic_cost, @actual_cost)

test/provider/external_identifier_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,28 +626,28 @@ defmodule Diffo.Provider.ExternalIdentifierTest do
626626
"specific external_identifier result",
627627
@specific_external_identifier,
628628
nil,
629-
@specific_external_identifier
629+
Ash.Test.strip_metadata(@specific_external_identifier)
630630
)
631631

632632
gen_result_outstanding_test(
633633
"specific type result",
634634
@specific_external_identifier,
635635
Map.delete(@actual_external_identifier, :type),
636-
@type_only
636+
Ash.Test.strip_metadata(@type_only)
637637
)
638638

639639
gen_result_outstanding_test(
640640
"specific external_id result",
641641
@specific_external_identifier,
642642
Map.delete(@actual_external_identifier, :external_id),
643-
@external_id_only
643+
Ash.Test.strip_metadata(@external_id_only)
644644
)
645645

646646
gen_result_outstanding_test(
647647
"specific owner_id result",
648648
@specific_external_identifier,
649649
Map.delete(@actual_external_identifier, :owner_id),
650-
@owner_id_only
650+
Ash.Test.strip_metadata(@owner_id_only)
651651
)
652652

653653
gen_nothing_outstanding_test(

test/provider/feature_test.exs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,40 @@ defmodule Diffo.Provider.FeatureTest do
179179
end
180180
end
181181

182+
describe "Diffo.Provider outstanding Features" do
183+
use Outstand
184+
@dynamicLineManagementEnabled %Diffo.Provider.Feature{name: :dynamicLineManagement, isEnabled: true}
185+
@dynamicLineManagementDisabled %Diffo.Provider.Feature{name: :dynamicLineManagement, isEnabled: false}
186+
@dynamicLineManagementEnabledSpeed %Diffo.Provider.Feature{name: :dynamicLineManagement, isEnabled: false, characteristics:
187+
[
188+
%Diffo.Provider.Characteristic{name: :optimiseFor, value: :speed}
189+
]}
190+
191+
@dynamicLineManagementEnabledStable %Diffo.Provider.Feature{name: :dynamicLineManagement, isEnabled: false, characteristics:
192+
[
193+
%Diffo.Provider.Characteristic{name: :optimiseFor, value: :stable}
194+
]}
195+
@name_only %Diffo.Provider.Feature{name: :dynamicLineManagement}
196+
@isEnabled_only %Diffo.Provider.Feature{isEnabled: true}
197+
@isDisabled_only %Diffo.Provider.Feature{isEnabled: false}
198+
@speed_only %Diffo.Provider.Feature{characteristics:
199+
[
200+
%Diffo.Provider.Characteristic{value: :speed}
201+
]}
202+
203+
gen_nothing_outstanding_test("specific nothing outstanding", @dynamicLineManagementEnabled, @dynamicLineManagementEnabled)
204+
gen_result_outstanding_test("specific name and isEnabled result", @dynamicLineManagementEnabled, nil, Ash.Test.strip_metadata(@dynamicLineManagementEnabled))
205+
gen_result_outstanding_test("specific name result", @dynamicLineManagementEnabled, @isEnabled_only, Ash.Test.strip_metadata(@name_only))
206+
gen_result_outstanding_test("specific isEnabled result", @dynamicLineManagementDisabled, @name_only, Ash.Test.strip_metadata(@isDisabled_only))
207+
208+
gen_result_outstanding_test(
209+
"feature characteristic outstanding",
210+
@dynamicLineManagementEnabledSpeed,
211+
@dynamicLineManagementEnabledStable,
212+
Ash.Test.strip_metadata(@speed_only)
213+
)
214+
end
215+
182216
describe "Diffo.Provider delete Features" do
183217
test "delete feature with related characteristic - success" do
184218
characteristic =

test/provider/note_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,27 +584,27 @@ defmodule Diffo.Provider.NoteTest do
584584
}
585585

586586
gen_nothing_outstanding_test("specific nothing outstanding", @specific_note, @actual_note)
587-
gen_result_outstanding_test("specific note result", @specific_note, nil, @specific_note)
587+
gen_result_outstanding_test("specific note result", @specific_note, nil, Ash.Test.strip_metadata(@specific_note))
588588

589589
gen_result_outstanding_test(
590590
"specific text result",
591591
@specific_note,
592592
Map.delete(@actual_note, :text),
593-
@text_only
593+
Ash.Test.strip_metadata(@text_only)
594594
)
595595

596596
gen_result_outstanding_test(
597597
"specific note_id result",
598598
@specific_note,
599599
Map.delete(@actual_note, :note_id),
600-
@note_id_only
600+
Ash.Test.strip_metadata(@note_id_only)
601601
)
602602

603603
gen_result_outstanding_test(
604604
"specific author_id result",
605605
@specific_note,
606606
Map.delete(@actual_note, :author_id),
607-
@author_id_only
607+
Ash.Test.strip_metadata(@author_id_only)
608608
)
609609

610610
gen_nothing_outstanding_test("generic nothing outstanding", @generic_note, @actual_note)

test/provider/process_status_test.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,42 +273,42 @@ defmodule Diffo.Provider.ProcessStatus.ProcessStatus do
273273
"specific process_status result",
274274
@specific_process_status,
275275
nil,
276-
@specific_process_status
276+
Ash.Test.strip_metadata(@specific_process_status)
277277
)
278278

279279
gen_result_outstanding_test(
280280
"specific code result",
281281
@specific_process_status,
282282
Map.delete(@actual_process_status, :code),
283-
@code_only
283+
Ash.Test.strip_metadata(@code_only)
284284
)
285285

286286
gen_result_outstanding_test(
287287
"specific severity result",
288288
@specific_process_status,
289289
Map.delete(@actual_process_status, :severity),
290-
@severity_only
290+
Ash.Test.strip_metadata(@severity_only)
291291
)
292292

293293
gen_result_outstanding_test(
294294
"specific message result",
295295
@specific_process_status,
296296
Map.delete(@actual_process_status, :message),
297-
@message_only
297+
Ash.Test.strip_metadata(@message_only)
298298
)
299299

300300
gen_result_outstanding_test(
301301
"specific parameterized_message result",
302302
@specific_process_status,
303303
Map.delete(@actual_process_status, :parameterized_message),
304-
@parameterized_message_only
304+
Ash.Test.strip_metadata(@parameterized_message_only)
305305
)
306306

307307
gen_result_outstanding_test(
308308
"specific timestamp result",
309309
@specific_process_status,
310310
Map.delete(@actual_process_status, :timestamp),
311-
@timestamp_only
311+
Ash.Test.strip_metadata(@timestamp_only)
312312
)
313313

314314
gen_nothing_outstanding_test(

0 commit comments

Comments
 (0)