Open annalbrecht opened 2 months ago
Objective: Simulate a failure during submission procssing
.
submission_set
entry. The submission set does need to have a status_cd
of 'QUEUED'
.submission_set_id
(e.g., '7767f6e7-d700-8a34-6561-368d79ea13420'
).submission_queue
where submission_set_id
(for the above example) is '7767f6e7-d700-8a34-6561-368d79ea13420'
.submission_queue
records related to the MP process (Monitoring Plan).process_cd
in the submission_queue
record to an invalid value (such as XYZ
).UPDATE camdecmpsaux.submission_queue
SET process_cd = 'XYZ'
WHERE
submission_set_id = '7767f6e7-d700-8a34-6561-368d79ea13420'
and process_cd = 'MP'
UPDATE camdecmpsaux.submission_set
SET status_cd = 'QUEUED'
WHERE submission_set_id = '7767f6e7-d700-8a34-6561-368d79ea13420';
submission_set
status should be updated to 'ERROR'
.note
field should contain the error details and note_time
should indicate when the error occurred. UPDATE camdecmpsaux.submission_set SET process_cd = 'MP' WHERE submission_set_id = '7767f6e7-d700-8a34-6561-368d79ea13420';
Objective: Simulate failure for selected qa_test, qce, or tee submission queue records.
submission_set
entry. The submission set does need to have a status_cd
of 'QUEUED'
.submission_set_id
(e.g., '7767f6e7-d700-8a34-6561-368d79ea13420'
).select * from camdecmpsaux.submission_queue sq
where sq.submission_set_id = '7767f6e7-d700-8a34-6561-368d79ea13420'
sql_statement
column value first to restore later. select sql_statement FROM camdaux.datatable WHERE dataset_cd = 'TEE_FEEDBACK';
sql_statement
value to something incorrect (see example given below).
UPDATE camdaux.datatable
set sql_statement = 'SELECT * FROM {SCHEMA}.xyz_abc_feedback($1)'
WHERE dataset_cd = 'TEE_FEEDBACK';
UPDATE camdecmpsaux.submission_set
SET status_cd = 'QUEUED'
WHERE submission_set_id = '7767f6e7-d700-8a34-6561-368d79ea13420';
submission_set
status should be updated to 'ERROR'
.note
field should contain the error details and note_time
should indicate when the error occurred.
UPDATE camdaux.datatable
set sql_statement = 'SELECT * FROM {SCHEMA}.get_test_extension_exemption_feedback($1)'
WHERE dataset_cd = 'TEE_FEEDBACK';
Scenario 1 as described above was followed for testing. Tester / submitter received a failure email (unable to ascertain if ECMPS Support received failure email). The submission_set status was updated to 'ERROR', and the note field contained the error details and note_time indicated when the error occurred.
Based on info in #6205.
We need a way to fail whole submissions and individual submissions in a set.