Add tlsv1.3 to suggestions
This commit is contained in:
parent
a158774364
commit
6f23fc8e08
|
@ -2726,7 +2726,7 @@
|
||||||
key: :versions,
|
key: :versions,
|
||||||
type: {:list, :atom},
|
type: {:list, :atom},
|
||||||
description: "List of TLS version to use",
|
description: "List of TLS version to use",
|
||||||
suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
|
suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2", ":tlsv1.3"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,10 +238,11 @@ test "atom" do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "ssl options" do
|
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,
|
||||||
:"tlsv1.1",
|
:"tlsv1.1",
|
||||||
:"tlsv1.2"
|
:"tlsv1.2",
|
||||||
|
:"tlsv1.3"
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ defmodule Pleroma.Docs.GeneratorTest do
|
||||||
key: :versions,
|
key: :versions,
|
||||||
type: {:list, :atom},
|
type: {:list, :atom},
|
||||||
description: "List of TLS version to use",
|
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 @@ test "key as string subchild" do
|
||||||
test "suggestion for tls versions" do
|
test "suggestion for tls versions" do
|
||||||
[%{children: children} | _] = Generator.convert_to_strings(@descriptions)
|
[%{children: children} | _] = Generator.convert_to_strings(@descriptions)
|
||||||
child = Enum.at(children, 8)
|
child = Enum.at(children, 8)
|
||||||
assert child[:suggestions] == [":tlsv1", ":tlsv1.1", ":tlsv1.2"]
|
assert child[:suggestions] == [":tlsv1", ":tlsv1.1", ":tlsv1.2", ":tlsv1.3"]
|
||||||
end
|
end
|
||||||
|
|
||||||
test "subgroup with module name" do
|
test "subgroup with module name" do
|
||||||
|
|
Loading…
Reference in New Issue