Merge pull request #694 from hashicorp/desktop-sessions-mirage-config

chore: 🤖 Fix missing target in sessions scenarios in mirage
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-08-10 08:48:01 -04:00
commit 03ce03bebf
1 file changed
+2 -1
+2 -1
View File
@@ -47,8 +47,9 @@ export default function (server) {
// Other resources
server.schema.scopes.where({ type: 'project' }).models.forEach((scope) => {
server.createList('host-catalog', 2, { scope }, 'withChildren');
server.createList('session', 4, { scope }, 'withAssociations');
server.createList('credential-store', 3, { scope }, 'withAssociations');
server.createList('target', 2, { scope }, 'withAssociations');
// Sessions have target data. Create it after targets.
server.createList('session', 4, { scope }, 'withAssociations');
});
}