aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/access.yml6
-rw-r--r--models/fixtures/action_run_job.yml2
-rw-r--r--models/fixtures/label.yml11
-rw-r--r--models/fixtures/protected_tag.yml12
-rw-r--r--models/fixtures/webhook.yml21
5 files changed, 45 insertions, 7 deletions
diff --git a/models/fixtures/access.yml b/models/fixtures/access.yml
index 4171e31fef..596046e950 100644
--- a/models/fixtures/access.yml
+++ b/models/fixtures/access.yml
@@ -171,3 +171,9 @@
user_id: 40
repo_id: 61
mode: 4
+
+-
+ id: 30
+ user_id: 40
+ repo_id: 1
+ mode: 2
diff --git a/models/fixtures/action_run_job.yml b/models/fixtures/action_run_job.yml
index 9b6f5b9a88..8837e6ec2d 100644
--- a/models/fixtures/action_run_job.yml
+++ b/models/fixtures/action_run_job.yml
@@ -64,7 +64,7 @@
name: job2
attempt: 1
job_id: job2
- needs: [job1]
+ needs: '["job1"]'
task_id: 51
status: 5
started: 1683636528
diff --git a/models/fixtures/label.yml b/models/fixtures/label.yml
index 2242b90dcd..acfac74968 100644
--- a/models/fixtures/label.yml
+++ b/models/fixtures/label.yml
@@ -96,3 +96,14 @@
num_issues: 0
num_closed_issues: 0
archived_unix: 0
+
+-
+ id: 10
+ repo_id: 3
+ org_id: 0
+ name: repo3label1
+ color: '#112233'
+ exclusive: false
+ num_issues: 0
+ num_closed_issues: 0
+ archived_unix: 0
diff --git a/models/fixtures/protected_tag.yml b/models/fixtures/protected_tag.yml
index dbec52c0c2..1944e7bd84 100644
--- a/models/fixtures/protected_tag.yml
+++ b/models/fixtures/protected_tag.yml
@@ -2,23 +2,23 @@
id: 1
repo_id: 4
name_pattern: /v.+/
- allowlist_user_i_ds: []
- allowlist_team_i_ds: []
+ allowlist_user_i_ds: "[]"
+ allowlist_team_i_ds: "[]"
created_unix: 1715596037
updated_unix: 1715596037
-
id: 2
repo_id: 1
name_pattern: v-*
- allowlist_user_i_ds: []
- allowlist_team_i_ds: []
+ allowlist_user_i_ds: "[]"
+ allowlist_team_i_ds: "[]"
created_unix: 1715596037
updated_unix: 1715596037
-
id: 3
repo_id: 1
name_pattern: v-1.1
- allowlist_user_i_ds: [2]
- allowlist_team_i_ds: []
+ allowlist_user_i_ds: "[2]"
+ allowlist_team_i_ds: "[]"
created_unix: 1715596037
updated_unix: 1715596037
diff --git a/models/fixtures/webhook.yml b/models/fixtures/webhook.yml
index f62bae1f31..ebc4062b60 100644
--- a/models/fixtures/webhook.yml
+++ b/models/fixtures/webhook.yml
@@ -22,6 +22,7 @@
content_type: 1 # json
events: '{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}'
is_active: true
+
-
id: 4
repo_id: 2
@@ -29,3 +30,23 @@
content_type: 1 # json
events: '{"push_only":true,"branch_filter":"{master,feature*}"}'
is_active: true
+
+-
+ id: 5
+ repo_id: 0
+ owner_id: 0
+ url: www.example.com/url5
+ content_type: 1 # json
+ events: '{"push_only":true,"branch_filter":"{master,feature*}"}'
+ is_active: true
+ is_system_webhook: true
+
+-
+ id: 6
+ repo_id: 0
+ owner_id: 0
+ url: www.example.com/url6
+ content_type: 1 # json
+ events: '{"push_only":true,"branch_filter":"{master,feature*}"}'
+ is_active: true
+ is_system_webhook: false