From 97c2b5190dd345bfee9799f72b2b4fb439fd42c0 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Thu, 7 Dec 2023 16:09:36 -0800 Subject: [PATCH] Move tag filtering tests to tests/fixtures --- .../tag-filtering-tests}/task-bar-foo.json | 0 .../tag-filtering-tests}/task-foo-bar.json | 0 .../tag-filtering-tests}/task-foo-baz.json | 0 .../tag-filtering-tests}/task-foo-nil.json | 0 .../tag-filtering-tests}/task-nil-bar.json | 0 .../tag-filtering-tests}/task-nil-nil.json | 0 tests/fixtures/tag-filtering/task-bar-foo.json | 15 +++++++++++++++ tests/fixtures/tag-filtering/task-foo-bar.json | 15 +++++++++++++++ tests/fixtures/tag-filtering/task-foo-baz.json | 15 +++++++++++++++ tests/fixtures/tag-filtering/task-foo-nil.json | 15 +++++++++++++++ tests/fixtures/tag-filtering/task-nil-bar.json | 15 +++++++++++++++ tests/fixtures/tag-filtering/task-nil-nil.json | 15 +++++++++++++++ 12 files changed, 90 insertions(+) rename {tag-filtering-tests => tests/fixtures/tag-filtering-tests}/task-bar-foo.json (100%) rename {tag-filtering-tests => tests/fixtures/tag-filtering-tests}/task-foo-bar.json (100%) rename {tag-filtering-tests => tests/fixtures/tag-filtering-tests}/task-foo-baz.json (100%) rename {tag-filtering-tests => tests/fixtures/tag-filtering-tests}/task-foo-nil.json (100%) rename {tag-filtering-tests => tests/fixtures/tag-filtering-tests}/task-nil-bar.json (100%) rename {tag-filtering-tests => tests/fixtures/tag-filtering-tests}/task-nil-nil.json (100%) create mode 100644 tests/fixtures/tag-filtering/task-bar-foo.json create mode 100644 tests/fixtures/tag-filtering/task-foo-bar.json create mode 100644 tests/fixtures/tag-filtering/task-foo-baz.json create mode 100644 tests/fixtures/tag-filtering/task-foo-nil.json create mode 100644 tests/fixtures/tag-filtering/task-nil-bar.json create mode 100644 tests/fixtures/tag-filtering/task-nil-nil.json diff --git a/tag-filtering-tests/task-bar-foo.json b/tests/fixtures/tag-filtering-tests/task-bar-foo.json similarity index 100% rename from tag-filtering-tests/task-bar-foo.json rename to tests/fixtures/tag-filtering-tests/task-bar-foo.json diff --git a/tag-filtering-tests/task-foo-bar.json b/tests/fixtures/tag-filtering-tests/task-foo-bar.json similarity index 100% rename from tag-filtering-tests/task-foo-bar.json rename to tests/fixtures/tag-filtering-tests/task-foo-bar.json diff --git a/tag-filtering-tests/task-foo-baz.json b/tests/fixtures/tag-filtering-tests/task-foo-baz.json similarity index 100% rename from tag-filtering-tests/task-foo-baz.json rename to tests/fixtures/tag-filtering-tests/task-foo-baz.json diff --git a/tag-filtering-tests/task-foo-nil.json b/tests/fixtures/tag-filtering-tests/task-foo-nil.json similarity index 100% rename from tag-filtering-tests/task-foo-nil.json rename to tests/fixtures/tag-filtering-tests/task-foo-nil.json diff --git a/tag-filtering-tests/task-nil-bar.json b/tests/fixtures/tag-filtering-tests/task-nil-bar.json similarity index 100% rename from tag-filtering-tests/task-nil-bar.json rename to tests/fixtures/tag-filtering-tests/task-nil-bar.json diff --git a/tag-filtering-tests/task-nil-nil.json b/tests/fixtures/tag-filtering-tests/task-nil-nil.json similarity index 100% rename from tag-filtering-tests/task-nil-nil.json rename to tests/fixtures/tag-filtering-tests/task-nil-nil.json diff --git a/tests/fixtures/tag-filtering/task-bar-foo.json b/tests/fixtures/tag-filtering/task-bar-foo.json new file mode 100644 index 00000000..ab3ee8e1 --- /dev/null +++ b/tests/fixtures/tag-filtering/task-bar-foo.json @@ -0,0 +1,15 @@ +{ + "name": "Task with tag bar:foo", + "executors": [ + { + "image": "alpine", + "command": [ + "echo", + "hello" + ] + } + ], + "tags": { + "bar": "foo" + } +} diff --git a/tests/fixtures/tag-filtering/task-foo-bar.json b/tests/fixtures/tag-filtering/task-foo-bar.json new file mode 100644 index 00000000..69bc081b --- /dev/null +++ b/tests/fixtures/tag-filtering/task-foo-bar.json @@ -0,0 +1,15 @@ +{ + "name": "Task with tag foo:bar", + "executors": [ + { + "image": "alpine", + "command": [ + "echo", + "hello" + ] + } + ], + "tags": { + "foo": "bar" + } +} diff --git a/tests/fixtures/tag-filtering/task-foo-baz.json b/tests/fixtures/tag-filtering/task-foo-baz.json new file mode 100644 index 00000000..0c522f7e --- /dev/null +++ b/tests/fixtures/tag-filtering/task-foo-baz.json @@ -0,0 +1,15 @@ +{ + "name": "Task with tag foo:baz", + "executors": [ + { + "image": "alpine", + "command": [ + "echo", + "hello" + ] + } + ], + "tags": { + "foo": "baz" + } +} diff --git a/tests/fixtures/tag-filtering/task-foo-nil.json b/tests/fixtures/tag-filtering/task-foo-nil.json new file mode 100644 index 00000000..8074adba --- /dev/null +++ b/tests/fixtures/tag-filtering/task-foo-nil.json @@ -0,0 +1,15 @@ +{ + "name": "Task with tag foo:", + "executors": [ + { + "image": "alpine", + "command": [ + "echo", + "hello" + ] + } + ], + "tags": { + "foo": "" + } +} diff --git a/tests/fixtures/tag-filtering/task-nil-bar.json b/tests/fixtures/tag-filtering/task-nil-bar.json new file mode 100644 index 00000000..81aa874e --- /dev/null +++ b/tests/fixtures/tag-filtering/task-nil-bar.json @@ -0,0 +1,15 @@ +{ + "name": "Task with tag :bar", + "executors": [ + { + "image": "alpine", + "command": [ + "echo", + "hello" + ] + } + ], + "tags": { + "": "bar" + } +} diff --git a/tests/fixtures/tag-filtering/task-nil-nil.json b/tests/fixtures/tag-filtering/task-nil-nil.json new file mode 100644 index 00000000..01c84d19 --- /dev/null +++ b/tests/fixtures/tag-filtering/task-nil-nil.json @@ -0,0 +1,15 @@ +{ + "name": "Task with tag :", + "executors": [ + { + "image": "alpine", + "command": [ + "echo", + "hello" + ] + } + ], + "tags": { + "": "" + } +}