Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jun 27, 2024
1 parent 6ca260c commit 653e54b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/experiment/openvpn/richerinput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ func TestTarget(t *testing.T) {
}
})

t.Run("Options", func(t *testing.T) {
expect := []string{
"Auth=SHA512",
"Cipher=AES-256-GCM",
"Provider=unknown",
}
if diff := cmp.Diff(expect, target.Options()); diff != "" {
t.Fatal(diff)
}
})

t.Run("String", func(t *testing.T) {
if target.String() != "openvpn://unknown.corp?address=1.1.1.1%3A443&transport=udp" {
t.Fatal("invalid String")
Expand Down

0 comments on commit 653e54b

Please sign in to comment.