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

+11 -11
View File
@@ -54,11 +54,11 @@ func (s *SecureSuite) SetupSuite() {
InsertDomain(s.testDb, entity.Domain{
Id: 3, Name: "test_domain", SystemId: 1, CreatedAt: createdTime, UpdatedAt: createdTime,
})
InsertService(s.testDb, entity.Service{
Id: 5, Name: "test_service", DomainId: 3, CreatedAt: createdTime, UpdatedAt: createdTime,
InsertApplicationGroup(s.testDb, entity.ApplicationGroup{
Id: 5, Name: "test_application_group", DomainId: 3, CreatedAt: createdTime, UpdatedAt: createdTime,
})
InsertApplication(s.testDb, entity.Application{
Id: 7, Name: "test_application", ServiceId: 5, CreatedAt: createdTime, UpdatedAt: createdTime,
Id: 7, Name: "test_application", ApplicationGroupId: 5, CreatedAt: createdTime, UpdatedAt: createdTime,
})
}
@@ -79,10 +79,10 @@ func (s *SecureSuite) TestAuthenticate_Success() {
Authenticated: true,
ErrorReason: "",
AuthData: &domain.AuthData{
SystemId: 1,
DomainId: 3,
ServiceId: 5,
ApplicationId: 7,
SystemId: 1,
DomainId: 3,
ApplicationGroupId: 5,
ApplicationId: 7,
},
}, result)
}
@@ -120,10 +120,10 @@ func (s *SecureSuite) TestAuthenticate_NotExpired() {
Authenticated: true,
ErrorReason: "",
AuthData: &domain.AuthData{
SystemId: 1,
DomainId: 3,
ServiceId: 5,
ApplicationId: 7,
SystemId: 1,
DomainId: 3,
ApplicationGroupId: 5,
ApplicationId: 7,
},
}, result)
}