From 3b00a5c20068a84e892b730d6bcbb1ccd4032c40 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 14 Mar 2023 15:51:40 +0100 Subject: [PATCH] fix(test): fixtures --- pkg/db/fixtures/buckets.yml | 12 ++++----- pkg/db/fixtures/label_tasks.yml | 2 +- pkg/db/fixtures/projects.yml | 40 ++++++++++++++---------------- pkg/db/fixtures/tasks.yml | 12 ++++----- pkg/db/fixtures/users_projects.yml | 12 ++++----- 5 files changed, 38 insertions(+), 40 deletions(-) diff --git a/pkg/db/fixtures/buckets.yml b/pkg/db/fixtures/buckets.yml index b648db34c..c053c91f7 100644 --- a/pkg/db/fixtures/buckets.yml +++ b/pkg/db/fixtures/buckets.yml @@ -218,12 +218,6 @@ created_by_id: -2 created: 2020-04-18 21:13:52 updated: 2020-04-18 21:13:52 -- id: 36 - title: testbucket36 - project_id: 26 - created_by_id: 15 - created: 2020-04-18 21:13:52 - updated: 2020-04-18 21:13:52 - id: 36 title: testbucket36 project_id: 33 @@ -236,3 +230,9 @@ created_by_id: 6 created: 2020-04-18 21:13:52 updated: 2020-04-18 21:13:52 +- id: 38 + title: testbucket36 + project_id: 26 + created_by_id: 15 + created: 2020-04-18 21:13:52 + updated: 2020-04-18 21:13:52 diff --git a/pkg/db/fixtures/label_tasks.yml b/pkg/db/fixtures/label_tasks.yml index bdf836f72..3d6149c24 100644 --- a/pkg/db/fixtures/label_tasks.yml +++ b/pkg/db/fixtures/label_tasks.yml @@ -15,6 +15,6 @@ label_id: 4 created: 2018-12-01 15:13:12 - id: 5 - task_id: 39 + task_id: 40 label_id: 4 created: 2018-12-01 15:13:12 diff --git a/pkg/db/fixtures/projects.yml b/pkg/db/fixtures/projects.yml index 77f35c58e..d9cbdd175 100644 --- a/pkg/db/fixtures/projects.yml +++ b/pkg/db/fixtures/projects.yml @@ -226,27 +226,6 @@ position: 7 updated: 2018-12-02 15:13:12 created: 2018-12-01 15:13:12 -- - id: 25 - title: Test25 with background - description: Lorem Ipsum - identifier: test6 - owner_id: 6 - namespace_id: 6 - background_file_id: 1 - position: 8 - updated: 2018-12-02 15:13:12 - created: 2018-12-01 15:13:12 -- - id: 26 - title: List 26 for Caldav tests - description: Lorem Ipsum - identifier: test26 - owner_id: 15 - namespace_id: 18 - position: 1 - updated: 2018-12-02 15:13:12 - created: 2018-12-01 15:13:12 - id: 25 title: Test25 @@ -317,3 +296,22 @@ position: 3400 updated: 2018-12-02 15:13:12 created: 2018-12-01 15:13:12 +- + id: 35 + title: Test35 with background + description: Lorem Ipsum + identifier: test6 + owner_id: 6 + background_file_id: 1 + position: 8 + updated: 2018-12-02 15:13:12 + created: 2018-12-01 15:13:12 +- + id: 36 + title: Project 36 for Caldav tests + description: Lorem Ipsum + identifier: test36 + owner_id: 15 + position: 1 + updated: 2018-12-02 15:13:12 + created: 2018-12-01 15:13:12 diff --git a/pkg/db/fixtures/tasks.yml b/pkg/db/fixtures/tasks.yml index 56d4f123f..a084ebdb1 100644 --- a/pkg/db/fixtures/tasks.yml +++ b/pkg/db/fixtures/tasks.yml @@ -357,6 +357,12 @@ updated: 2018-12-01 01:12:04 due_date: 2018-10-30 22:25:24 - id: 39 + title: 'task #39' + created_by_id: 1 + project_id: 25 + created: 2018-12-01 01:12:04 + updated: 2018-12-01 01:12:04 +- id: 40 uid: 'uid-caldav-test' title: 'Title Caldav Test' description: 'Description Caldav Test' @@ -370,9 +376,3 @@ updated: 2018-12-01 01:12:04 bucket_id: 1 position: 39 -- id: 39 - title: 'task #39' - created_by_id: 1 - project_id: 25 - created: 2018-12-01 01:12:04 - updated: 2018-12-01 01:12:04 diff --git a/pkg/db/fixtures/users_projects.yml b/pkg/db/fixtures/users_projects.yml index 55f53d59f..4fb583c46 100644 --- a/pkg/db/fixtures/users_projects.yml +++ b/pkg/db/fixtures/users_projects.yml @@ -46,12 +46,6 @@ right: 2 updated: 2018-12-02 15:13:12 created: 2018-12-01 15:13:12 -- id: 9 - user_id: 15 - project_id: 26 - right: 0 - updated: 2018-12-02 15:13:12 - created: 2018-12-01 15:13:12 - id: 9 user_id: 1 project_id: 27 @@ -100,3 +94,9 @@ right: 2 updated: 2018-12-02 15:13:12 created: 2018-12-01 15:13:12 +- id: 17 + user_id: 15 + project_id: 26 + right: 0 + updated: 2018-12-02 15:13:12 + created: 2018-12-01 15:13:12