Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Tweak pipeline test seed data

天舟22d19e9911aa
diff --git a/store/seed/test/10110__task.sql b/store/seed/test/10110__task.sql
index 84f5dd90ad..d0580196cb 100644
--- a/store/seed/test/10110__task.sql
+++ b/store/seed/test/10110__task.sql
@@ -453,7 +453,7 @@ VALUES
7006,
'Update testdb_integration',
'bb.task.database.schema.update',
- 'DONE',
+ 'FAILED',
'{"statement":"CREATE TABLE testdb_integration.tbl2 (name TEXT);", "rollbackStatement":"DROP TABLE testdb_integration.tbl2;"}'
);
diff --git a/store/seed/test/10120__task_run.sql b/store/seed/test/10120__task_run.sql
index ebf36f25ad..9879a0b923 100644
--- a/store/seed/test/10120__task_run.sql
+++ b/store/seed/test/10120__task_run.sql
@@ -268,8 +268,8 @@ VALUES
1624879944,
11014,
'Update testdb_integration task run',
- 'DONE',
+ 'FAILED',
'bb.task.database.schema.update',
- 'Applied migration version 20210830020000.11014 to database "testdb_integration"',
+ 'table "tbl2" already exists',
'{"statement":"CREATE TABLE testdb_integration.tbl2 (name TEXT)"}'
);
\ No newline at end of file
diff --git a/store/seed/test/10130__issue.sql b/store/seed/test/10130__issue.sql
index ce67349e06..fad2f00c4f 100644
--- a/store/seed/test/10130__issue.sql
+++ b/store/seed/test/10130__issue.sql
@@ -51,11 +51,11 @@ VALUES
1624873710,
3002,
9002,
- 'Create product table',
+ 'Create product table using multi-stage VCS workflow',
'OPEN',
'bb.issue.database.schema.update',
- 'Create product table',
- 102
+ 'Create product table using multi-stage VCS workflow',
+ 101
);
-- Issue for the multi stage create table pipeline, first stage has a failed task run
@@ -267,7 +267,7 @@ VALUES
103,
3001,
9009,
- 'Create a new table ''tabl2'' using multi-stage SQL review workflow',
+ 'Create a new table ''tbl2'' using multi-stage SQL review workflow',
'OPEN',
'bb.issue.general',
'Create tbl2 using multi-stage SQL review workflow',
diff --git a/store/seed/test/10131__issue_subscriber.sql b/store/seed/test/10131__issue_subscriber.sql
index 24d26bcfa1..4f04a2d1bb 100644
--- a/store/seed/test/10131__issue_subscriber.sql
+++ b/store/seed/test/10131__issue_subscriber.sql
@@ -18,7 +18,12 @@ VALUES
INSERT INTO
issue_subscriber (issue_id, subscriber_id)
VALUES
- (13002, 103);
+ (13002, 101);
+
+INSERT INTO
+ issue_subscriber (issue_id, subscriber_id)
+VALUES
+ (13002, 102);
-- Subscriber for issue 13003
INSERT INTO
diff --git a/store/seed/test/10140__activity.sql b/store/seed/test/10140__activity.sql
index 9c6536db97..6afd38aa18 100644
--- a/store/seed/test/10140__activity.sql
+++ b/store/seed/test/10140__activity.sql
@@ -822,7 +822,7 @@ VALUES
'bb.issue.create',
'INFO',
'',
- '{"issueName":"Create a new table ''tabl2'' using multi-stage SQL review workflow"}'
+ '{"issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow"}'
);
INSERT INTO
@@ -847,7 +847,7 @@ VALUES
'bb.pipeline.task.status.update',
'INFO',
'',
- '{"taskId":11015,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tabl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'
+ '{"taskId":11015,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'
);
INSERT INTO
@@ -872,7 +872,7 @@ VALUES
'bb.pipeline.task.status.update',
'INFO',
'Applied migration version 20210830011437.11013 to database "testdb_dev"',
- '{"taskId":11015,"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create a new table ''tabl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'
+ '{"taskId":11015,"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'
);
INSERT INTO
@@ -897,7 +897,7 @@ VALUES
'bb.pipeline.task.status.update',
'INFO',
'',
- '{"taskId":11016,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tabl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'
+ '{"taskId":11016,"oldStatus":"PENDING","newStatus":"RUNNING","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_dev"}'
);
INSERT INTO
@@ -920,7 +920,7 @@ VALUES
1624879944,
13009,
'bb.pipeline.task.status.update',
- 'INFO',
- 'Applied migration version 20210830020000.11014 to database "testdb_integration"',
- '{"taskId":11016,"oldStatus":"RUNNING","newStatus":"DONE","issueName":"Create a new table ''tabl2'' using multi-stage SQL review workflow","taskName":"Update testdb_integration"}'
+ 'ERROR',
+ 'table "tbl2" already exists',
+ '{"taskId":11016,"oldStatus":"RUNNING","newStatus":"FAILED","issueName":"Create a new table ''tbl2'' using multi-stage SQL review workflow","taskName":"Update testdb_integration"}'
);
\ No newline at end of file