Skip to content
Snippets Groups Projects
Commit 213d4377 authored by Lars Johansson's avatar Lars Johansson
Browse files

Add test data and update README.md

parent ead379e1
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ Thereafter a number of http requests (GET) and curl commands (POST, PUT, PATCH,
#### Note
* Pre-populated database to be available if data to be available at start of application. Otherwise database may be populated through `curl` at command line or Swagger UI.
* See `src/main/resources` and sub folders for database scripts.
* See `src/test/resources` and sub folders for database scripts. This includes scripts for database schema, migration and example content.
* If no prior database is available, see integration tests for examples on how to populate database. E.g. tests may be debugged and database content may be examined at any debug point. It's possible to backup database at such debug point and later restore it outside test. In such way, database may be set to state of choice.
#### Recommentation
......
README
----------
Folder contains backup and export of data for Naming database that may be useful for development and maintenance.
Content prepared by
- using NamesIT test class
- setting debug point in readSearchHistoryDeleted method
- debug
- when test is halted, use database management tool to backup and export data
Backup done with DBeaver tool
DBeaver 21.2.0
DBeaver
https://dbeaver.io/
This diff is collapsed.
INSERT INTO public.appinfo ("version",schemaversion) VALUES
(1,1);INSERT INTO public.devicegroup ("version",uuid,parent_uuid,"name",mnemonic,mnemonic_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'7e036d2e-0f81-469a-91e3-79725e9db70e','aa1aaa31-1463-490f-a173-4006ceea953c','Control',NULL,NULL,'empty','APPROVED',true,false,'2022-09-30 07:11:27.894','test who','These names are needed now, so I am approving, but please add a description to these later.','2022-09-30 07:11:27.979','test who','These names are needed now, so I am approving, but please add a description to these later.');INSERT INTO public.devicetype ("version",uuid,parent_uuid,"name",mnemonic,mnemonic_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'ac201308-1f64-459c-bc39-afa5ae1d6889','7e036d2e-0f81-469a-91e3-79725e9db70e','Flow Switch','FS','FS','empty','APPROVED',true,false,'2022-09-30 07:11:28.073','test who','Approve names added from misc device group','2022-09-30 07:11:28.169','test who','Approve names added from misc device group'),
(1,'5deb551f-87ec-43a3-8116-eb6692767012','7e036d2e-0f81-469a-91e3-79725e9db70e','RF Antenna','RFA','RFA','empty','APPROVED',true,false,'2022-09-30 07:11:28.267','test who','Approve names added from misc device group','2022-09-30 07:11:28.35','test who','Approve names added from misc device group'),
(1,'195eb50f-cdac-44c9-bf2e-c7cb3d89bcb1','7e036d2e-0f81-469a-91e3-79725e9db70e','Temperature Transmitter','TT','TT','empty','APPROVED',true,false,'2022-09-30 07:11:28.446','test who','Approve names added from misc device group','2022-09-30 07:11:28.513','test who','Approve names added from misc device group');INSERT INTO public.discipline ("version",uuid,"name",mnemonic,mnemonic_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'aa1aaa31-1463-490f-a173-4006ceea953c','Electromagnetic Resonators','EMR','EMR','empty','APPROVED',true,false,'2022-09-30 07:11:27.769','test who','empty','2022-09-30 07:11:27.828','test who','empty');INSERT INTO public."name" ("version",uuid,systemgroup_uuid,system_uuid,subsystem_uuid,devicetype_uuid,instance_index,convention_name,convention_name_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(0,'4c8fcc43-e7f9-4f43-9be9-06e1873f1e9a','0b1fbe52-b581-4bdf-8cfc-6c975882262e',NULL,NULL,NULL,NULL,'Acc','ACC','System structure only','APPROVED',true,false,'2022-09-30 07:11:26.957','test who',NULL,NULL,NULL,NULL),
(0,'976d0e3b-9353-46cf-9550-a1949296c22f',NULL,'91eafa70-a0b4-4fa7-889a-0812d0a3ac04',NULL,NULL,NULL,'RFQ','RFQ','System structure only','APPROVED',true,false,'2022-09-30 07:11:27.172','test who',NULL,NULL,NULL,NULL),
(0,'60d7c1dc-f6e3-4819-8278-a091f5779ad5',NULL,NULL,'420f81b4-cdd6-4a3f-a528-135c2a2eb3ed',NULL,NULL,'RFQ-010PRL','RFQ-10PR1','System structure only','APPROVED',true,false,'2022-09-30 07:11:27.361','test who',NULL,NULL,NULL,NULL),
(0,'c87a620a-d169-4263-8c0b-f5b41695446c',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67',NULL,NULL,'RFQ-010','RFQ-10','System structure only','APPROVED',true,false,'2022-09-30 07:11:27.532','test who',NULL,NULL,NULL,NULL),
(0,'a58f08c7-6961-49ff-9e83-d863746af46b',NULL,NULL,'66fdb990-7f76-475c-9e8c-c1716af839c3',NULL,NULL,'RFQ-N1U1','RFQ-N1U1','System structure only','APPROVED',true,false,'2022-09-30 07:11:27.67','test who',NULL,NULL,NULL,NULL),
(0,'61f3818d-316e-4593-aed3-1522726b279e',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','002','RFQ-010:EMR-FS-002','RFQ-10:EMR-FS-2','description','APPROVED',true,false,'2022-09-30 07:11:28.735','test who','comment',NULL,NULL,NULL),
(0,'8635c489-fd82-4939-8193-066d6f0a8c2a',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','003','RFQ-010:EMR-FS-003','RFQ-10:EMR-FS-3','description','APPROVED',true,false,'2022-09-30 07:11:28.804','test who','comment',NULL,NULL,NULL),
(0,'126d3f78-9ed8-4f97-98d3-d7a2f2bd6dd4',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','004','RFQ-010:EMR-FS-004','RFQ-10:EMR-FS-4','description','APPROVED',true,false,'2022-09-30 07:11:28.879','test who','comment',NULL,NULL,NULL),
(0,'7c8ceabb-aed7-4e0d-8503-d8bc38e7d25b',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','005','RFQ-010:EMR-FS-005','RFQ-10:EMR-FS-5','description','APPROVED',true,false,'2022-09-30 07:11:28.934','test who','comment',NULL,NULL,NULL),
(0,'18170b1a-dd95-4aa5-a05c-555fbbab8a75',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','006','RFQ-010:EMR-FS-006','RFQ-10:EMR-FS-6','description','APPROVED',true,false,'2022-09-30 07:11:28.992','test who','comment',NULL,NULL,NULL);
INSERT INTO public."name" ("version",uuid,systemgroup_uuid,system_uuid,subsystem_uuid,devicetype_uuid,instance_index,convention_name,convention_name_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'4c92c9e9-5a34-48e4-a2c3-ca284682f57c',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','001','RFQ-010:EMR-FS-001','RFQ-10:EMR-FS-1','description','APPROVED',false,false,'2022-09-30 07:11:28.645','test who','comment',NULL,NULL,NULL),
(0,'4c92c9e9-5a34-48e4-a2c3-ca284682f57c',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','001','RFQ-010:EMR-FS-001','RFQ-10:EMR-FS-1','updated description again','APPROVED',true,false,'2022-09-30 07:11:29.223','test who','updated comment again',NULL,NULL,NULL),
(1,'4c92c9e9-5a34-48e4-a2c3-ca284682f57c',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','001','RFQ-010:EMR-FS-001','RFQ-10:EMR-FS-1','updated description','APPROVED',false,false,'2022-09-30 07:11:29.167','test who','updated comment',NULL,NULL,NULL),
(0,'fd22b033-0fad-48a4-afa1-65cfd1098464',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','007','RFQ-010:EMR-FS-007','RFQ-10:EMR-FS-7','description','APPROVED',true,true,'2022-09-30 07:11:29.271','test who','comment',NULL,NULL,NULL),
(1,'fd22b033-0fad-48a4-afa1-65cfd1098464',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','007','RFQ-010:EMR-FS-007','RFQ-10:EMR-FS-7','description','APPROVED',false,false,'2022-09-30 07:11:29.05','test who','comment',NULL,NULL,NULL),
(0,'3743a2a8-3a8f-41b3-aa9b-352ea722f46a',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','008','RFQ-010:EMR-FS-008','RFQ-10:EMR-FS-8','description','APPROVED',true,true,'2022-09-30 07:11:29.315','test who','comment',NULL,NULL,NULL),
(1,'3743a2a8-3a8f-41b3-aa9b-352ea722f46a',NULL,NULL,'d85f970f-be06-445a-8b48-f896be710f67','ac201308-1f64-459c-bc39-afa5ae1d6889','008','RFQ-010:EMR-FS-008','RFQ-10:EMR-FS-8','description','APPROVED',false,false,'2022-09-30 07:11:29.107','test who','comment',NULL,NULL,NULL);INSERT INTO public.subsystem ("version",uuid,parent_uuid,"name",mnemonic,mnemonic_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'420f81b4-cdd6-4a3f-a528-135c2a2eb3ed','91eafa70-a0b4-4fa7-889a-0812d0a3ac04','01 Phase Reference Line','010PRL','10PR1','empty','APPROVED',true,false,'2022-09-30 07:11:27.282','test who','Approved by Daniel Piso','2022-09-30 07:11:27.361','test who','Approved by Daniel Piso'),
(1,'d85f970f-be06-445a-8b48-f896be710f67','91eafa70-a0b4-4fa7-889a-0812d0a3ac04','RFQ-010','010','10','empty','APPROVED',true,false,'2022-09-30 07:11:27.452','test who','Approved by Daniel Piso','2022-09-30 07:11:27.532','test who','Approved by Daniel Piso'),
(1,'66fdb990-7f76-475c-9e8c-c1716af839c3','91eafa70-a0b4-4fa7-889a-0812d0a3ac04','Power switch board 01','N1U1','N1U1','Electrical power cabinets','APPROVED',true,false,'2022-09-30 07:11:27.612','test who','Approved by Daniel Piso','2022-09-30 07:11:27.67','test who','Approved by Daniel Piso');INSERT INTO public."system" ("version",uuid,parent_uuid,"name",mnemonic,mnemonic_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'91eafa70-a0b4-4fa7-889a-0812d0a3ac04','0b1fbe52-b581-4bdf-8cfc-6c975882262e','Radio Frequency Quadrupole','RFQ','RFQ','empty','APPROVED',true,false,'2022-09-30 07:11:27.109','test who','empty','2022-09-30 07:11:27.172','test who','empty');INSERT INTO public.systemgroup ("version",uuid,"name",mnemonic,mnemonic_equivalence,description,status,latest,deleted,requested,requested_by,requested_comment,processed,processed_by,processed_comment) VALUES
(1,'0b1fbe52-b581-4bdf-8cfc-6c975882262e','Accelerator','Acc','ACC','The ESS Linear Accelerator','APPROVED',true,false,'2022-09-30 07:11:26.775','test who','approved by alfio','2022-09-30 07:11:26.957','test who','approved by alfio');
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment