From 1ffc9c42054e208a01d3e70e6b6f3e1781e798f8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 5 Apr 2021 17:52:31 +0200 Subject: Moved code around to conform best practices --- pkg/config/test_data/invalid.yaml | 1 + pkg/config/test_data/invalid_address.yaml | 3 +++ pkg/config/test_data/invalid_address_unresolvable.yaml | 3 +++ pkg/config/test_data/invalid_port.yaml | 3 +++ pkg/config/test_data/invalid_token.yaml | 3 +++ pkg/config/test_data/minimal.yaml | 3 +++ pkg/config/test_data/minimal_with_hostname.yaml | 3 +++ 7 files changed, 19 insertions(+) create mode 100644 pkg/config/test_data/invalid.yaml create mode 100644 pkg/config/test_data/invalid_address.yaml create mode 100644 pkg/config/test_data/invalid_address_unresolvable.yaml create mode 100644 pkg/config/test_data/invalid_port.yaml create mode 100644 pkg/config/test_data/invalid_token.yaml create mode 100644 pkg/config/test_data/minimal.yaml create mode 100644 pkg/config/test_data/minimal_with_hostname.yaml (limited to 'pkg/config/test_data') diff --git a/pkg/config/test_data/invalid.yaml b/pkg/config/test_data/invalid.yaml new file mode 100644 index 0000000..db1ddad --- /dev/null +++ b/pkg/config/test_data/invalid.yaml @@ -0,0 +1 @@ +blargh(ads) diff --git a/pkg/config/test_data/invalid_address.yaml b/pkg/config/test_data/invalid_address.yaml new file mode 100644 index 0000000..e3682b2 --- /dev/null +++ b/pkg/config/test_data/invalid_address.yaml @@ -0,0 +1,3 @@ +address: "0.0.0.0.0" +port: 8082 +token: 12345678-9abc-def0-1234-56789abcdef0 diff --git a/pkg/config/test_data/invalid_address_unresolvable.yaml b/pkg/config/test_data/invalid_address_unresolvable.yaml new file mode 100644 index 0000000..d476093 --- /dev/null +++ b/pkg/config/test_data/invalid_address_unresolvable.yaml @@ -0,0 +1,3 @@ +address: "invalid" +port: 8082 +token: 12345678-9abc-def0-1234-56789abcdef0 diff --git a/pkg/config/test_data/invalid_port.yaml b/pkg/config/test_data/invalid_port.yaml new file mode 100644 index 0000000..2790b3f --- /dev/null +++ b/pkg/config/test_data/invalid_port.yaml @@ -0,0 +1,3 @@ +address: localhost +port: invalid +token: 12345678-9abc-def0-1234-56789abcdef0 diff --git a/pkg/config/test_data/invalid_token.yaml b/pkg/config/test_data/invalid_token.yaml new file mode 100644 index 0000000..6f9e297 --- /dev/null +++ b/pkg/config/test_data/invalid_token.yaml @@ -0,0 +1,3 @@ +address: 127.0.0.1 +port: 8080 +token: invalid diff --git a/pkg/config/test_data/minimal.yaml b/pkg/config/test_data/minimal.yaml new file mode 100644 index 0000000..2944645 --- /dev/null +++ b/pkg/config/test_data/minimal.yaml @@ -0,0 +1,3 @@ +address: 127.0.0.2 +port: 8082 +token: 12345678-9abc-def0-1234-56789abcdef0 diff --git a/pkg/config/test_data/minimal_with_hostname.yaml b/pkg/config/test_data/minimal_with_hostname.yaml new file mode 100644 index 0000000..716b2d5 --- /dev/null +++ b/pkg/config/test_data/minimal_with_hostname.yaml @@ -0,0 +1,3 @@ +address: localhost +port: 8082 +token: 12345678-9abc-def0-1234-56789abcdef0 -- cgit v1.2.3