MSP-3428 CRUD application_group, service -> application_group

This commit is contained in:
Demidyuk Oleg committed 2024-06-13 18:09:25 +03:00
1 parent 7108122102
commit bef400d0d9
26 files changed
+559 -395

No files matched your search

+3 -3
View File
@@ -15,9 +15,9 @@ func InsertDomain(db *dbt.TestDb, value entity.Domain) {
db.Must().ExecNamed(q, value)
}
func InsertService(db *dbt.TestDb, value entity.Service) {
func InsertApplicationGroup(db *dbt.TestDb, value entity.ApplicationGroup) {
q := `
INSERT INTO service
INSERT INTO application_group
(id, name, description, domain_id, created_at, updated_at)
VALUES
(:id, :name, :description, :domain_id, :created_at, :updated_at)
@@ -28,7 +28,7 @@ func InsertService(db *dbt.TestDb, value entity.Service) {
func InsertApplication(db *dbt.TestDb, value entity.Application) {
q := `
INSERT INTO application
(id, name, description, service_id, created_at, updated_at)
(id, name, description, application_group_id, created_at, updated_at)
VALUES
(:id, :name, :description, :service_id, :created_at, :updated_at)
`