Warehouse contains "Unsupported" host_address for plugin based hosts (#1656)
* Populating the warehouse with the host_address from a plugin basd host is unsupported. * Adding test for plugin hosts in the datawarehouse.
This commit is contained in:
4 files changed
+64
-9
No files matched your search
@@ -1,9 +1,9 @@
|
||||
-- source tests the whx_host_dimension_source view.
|
||||
begin;
|
||||
select plan(1);
|
||||
select plan(2);
|
||||
select wtt_load('widgets', 'iam', 'kms', 'auth', 'hosts', 'targets');
|
||||
|
||||
-- auth_password_account
|
||||
-- Static hosts
|
||||
select is(s.*, row(
|
||||
'h_____wb__01', 'static host', 'None', 'None', '1.big.widget',
|
||||
's___2wb-sths', 'static host set', 'Big Widget Static Set 2', 'None',
|
||||
@@ -17,6 +17,20 @@ begin;
|
||||
and s.host_set_id = 's___2wb-sths'
|
||||
and s.target_id = 't_________wb';
|
||||
|
||||
-- Plugin based hosts
|
||||
select is(s.*, row(
|
||||
'h_____wb__01-plgh', 'plugin host', 'None', 'None', 'Unsupported',
|
||||
's___2wb-plghs', 'plugin host set', 'Big Widget Plugin Set 2', 'None',
|
||||
'c___wb-plghcl', 'plugin host catalog', 'Big Widget Plugin Catalog', 'None',
|
||||
't_________wb', 'tcp target', 'Big Widget Target', 'None', 0, 28800, 1,
|
||||
'p____bwidget', 'Big Widget Factory', 'None',
|
||||
'o_____widget', 'Widget Inc', 'None'
|
||||
)::whx_host_dimension_source)
|
||||
from whx_host_dimension_source as s
|
||||
where s.host_id = 'h_____wb__01-plgh'
|
||||
and s.host_set_id = 's___2wb-plghs'
|
||||
and s.target_id = 't_________wb';
|
||||
|
||||
select * from finish();
|
||||
rollback;
|
||||
|
||||
Reference in new issue
Block a user