diff options
author | lain <lain@soykaf.club> | 2022-06-06 11:36:21 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2022-06-06 11:36:21 +0000 |
commit | 75f912c63f9a18e37f8ddbd403755b878467435a (patch) | |
tree | b6de0472c58389d510a80bfcc15270608d4b5f28 /test | |
parent | 7466136ad3288cc2b442495d40af6e0787b250fb (diff) | |
parent | 6f23fc8e08ae5a968cd9aa8dd8744e21ee9e3872 (diff) | |
download | pleroma-75f912c63f9a18e37f8ddbd403755b878467435a.tar.gz |
Merge branch 'hackney_reenable_TLSv1.3' into 'develop'
hackney adapter helper: enable TLSv1.3
See merge request pleroma/pleroma!3661
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/config_db_test.exs | 5 | ||||
-rw-r--r-- | test/pleroma/docs/generator_test.exs | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/test/pleroma/config_db_test.exs b/test/pleroma/config_db_test.exs index ea44b716f..ba7c615e2 100644 --- a/test/pleroma/config_db_test.exs +++ b/test/pleroma/config_db_test.exs @@ -238,10 +238,11 @@ defmodule Pleroma.ConfigDBTest do end test "ssl options" do - assert ConfigDB.to_elixir_types([":tlsv1", ":tlsv1.1", ":tlsv1.2"]) == [ + assert ConfigDB.to_elixir_types([":tlsv1", ":tlsv1.1", ":tlsv1.2", ":tlsv1.3"]) == [ :tlsv1, :"tlsv1.1", - :"tlsv1.2" + :"tlsv1.2", + :"tlsv1.3" ] end diff --git a/test/pleroma/docs/generator_test.exs b/test/pleroma/docs/generator_test.exs index 92b4d13e4..5e41d6ccb 100644 --- a/test/pleroma/docs/generator_test.exs +++ b/test/pleroma/docs/generator_test.exs @@ -86,7 +86,7 @@ defmodule Pleroma.Docs.GeneratorTest do key: :versions, type: {:list, :atom}, description: "List of TLS version to use", - suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"] + suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2", ":tlsv1.3"] } ] }, @@ -213,7 +213,7 @@ defmodule Pleroma.Docs.GeneratorTest do test "suggestion for tls versions" do [%{children: children} | _] = Generator.convert_to_strings(@descriptions) child = Enum.at(children, 8) - assert child[:suggestions] == [":tlsv1", ":tlsv1.1", ":tlsv1.2"] + assert child[:suggestions] == [":tlsv1", ":tlsv1.1", ":tlsv1.2", ":tlsv1.3"] end test "subgroup with module name" do |