Skip to content

Commit

Permalink
dev: fix org_id and inventory group in test_generate_data
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy authored and MichaelMraka committed Sep 25, 2023
1 parent 5d3feaf commit 8514db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/test_generate_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ do $$
select val into wanted from _const where key = 'accounts';
while cnt < wanted loop
id := nextval('rh_account_id_seq');
insert into rh_account (id, name)
insert into rh_account (id, org_id)
values (id, 'RHACCOUNT-' || id );
cnt := cnt + 1;
end loop;
Expand Down Expand Up @@ -125,7 +125,7 @@ delete from inventory.hosts;
insert into inventory.hosts (id, account, display_name, tags, updated, created, stale_timestamp,
system_profile, reporter, per_reporter_staleness, org_id, groups )
select sp.inventory_id, substr(ac.name, 0, 10), sp.display_name, '{}', sp.last_updated, sp.last_updated, coalesce(sp.stale_timestamp, now()),
'{}', 'puptoo', '{}', ac.org_id, '{}'
'{}', 'puptoo', '{}', ac.org_id, '[]'
from system_platform sp
join rh_account ac on sp.rh_account_id = ac.id ;

Expand Down

0 comments on commit 8514db6

Please sign in to comment.