feat(sql): Add target and host history tables to session recording
This adds four columns to the `recording_session` table which are foreign keys to the `iam_scope_hst`, `target_ssh_hst`, `host_history_base`, and `host_catalog_history_base` tables. The foreign key to the `iam_scope_hst` table references the project scope of the target at the time of the recording.
This commit is contained in:
1 parent
73b710cd06
commit
477e6df269
14 files changed
+220
-118
No files matched your search
@@ -11,7 +11,7 @@ begin;
|
||||
select is(count(*), 1::bigint) from session_state where session_id = 's1_____carly' and state='active';
|
||||
|
||||
-- Check that we have a session for both auth token
|
||||
select is(count(*), 1::bigint) from session where auth_token_id = 'tok____clare';
|
||||
select is(count(*), 2::bigint) from session where auth_token_id = 'tok____clare';
|
||||
select is(count(*), 1::bigint) from session where auth_token_id = 'tok____carly';
|
||||
|
||||
-- Delete auth tokens, expect no errors
|
||||
@@ -28,4 +28,4 @@ begin;
|
||||
select is(count(*), 1::bigint) from session_state where state = 'canceling' and session_id = 's1_____carly';
|
||||
|
||||
select * from finish();
|
||||
rollback;
|
||||
rollback;
|
||||
Reference in new issue
Block a user