@@ -34,30 +34,30 @@ script_compiles('../../bin/dx_get_hierarchy.pl');
34
34
script_runs([' ../../bin/dx_get_hierarchy.pl' , ' -d' , ' local32' , ' -format' ,' csv' ,' -nohead' ] , " All hierachy test" );
35
35
36
36
my $expected_stdout = <<EOF ;
37
- local32,CDOMLOTG2E25,Analytics,CDB,,N/A,CDOMLOTG2E25,N/A
38
- local32,mssqltest,Analytics,VDB,Soda,2021-12-17 05:08:25 PST,Soda,mssqltest
39
- local32,oramask,Analytics,VDB,DBOMSR3A85E9,2021-12-22 07:53:08 EST,DBOMSR3A85E9,oramask
40
- local32,pdbtest,Analytics,VDB,CDOMLOSRCA1DPDB1,2021-12-17 05:05:09 EST,CDOMLOSRCA1DPDB1,pdbtest
41
- local32,pdbtest2,Analytics,VDB,CDOMLOSRCA1DPDB1,2021-12-17 05:05:09 EST,CDOMLOSRCA1DPDB1,pdbtest2
42
- local32,sybasetest,Analytics,VDB,db_rhel83_160_1,2021-12-17 05:01:49 EST,db_rhel83_160_1,sybasetest
43
- local32,vcdbtest,Analytics,vCDB,,N/A,vcdbtest,N/A
44
- local32,CDOMLOSRCA1D,Sources,CDB,,N/A,CDOMLOSRCA1D,N/A
45
- local32,CDOMLOSRCA1DPDB1,Sources,dSource,,N/A,CDOMLOSRCA1DPDB1,N/A
46
- local32,db_rhel83_160_1,Sources,dSource,,N/A,db_rhel83_160_1,N/A
47
- local32,DBOMSR3A85E9,Sources,dSource,,N/A,DBOMSR3A85E9,N/A
48
- local32,Macaroon,Sources,dSource,,N/A,Macaroon,N/A
49
- local32,Soda,Sources,dSource,,N/A,Soda,N/A
37
+ local32,CDOMLOTG2E25,Analytics,CDB,,N/A,CDOMLOTG2E25,N/A,
38
+ local32,mssqltest,Analytics,VDB,Soda,2021-12-17 05:08:25 PST,Soda,mssqltest,Soda
39
+ local32,oramask,Analytics,VDB,DBOMSR3A85E9,2021-12-22 07:53:08 EST,DBOMSR3A85E9,oramask,DBOMSR3A85E9
40
+ local32,pdbtest,Analytics,VDB,CDOMLOSRCA1DPDB1,2021-12-17 05:05:09 EST,CDOMLOSRCA1DPDB1,pdbtest,CDOMLOSRCA1DPDB1
41
+ local32,pdbtest2,Analytics,VDB,CDOMLOSRCA1DPDB1,2021-12-17 05:05:09 EST,CDOMLOSRCA1DPDB1,pdbtest2,CDOMLOSRCA1DPDB1
42
+ local32,sybasetest,Analytics,VDB,db_rhel83_160_1,2021-12-17 05:01:49 EST,db_rhel83_160_1,sybasetest,db_rhel83_160_1
43
+ local32,vcdbtest,Analytics,vCDB,,N/A,vcdbtest,N/A,
44
+ local32,CDOMLOSRCA1D,Sources,CDB,,N/A,CDOMLOSRCA1D,N/A,
45
+ local32,CDOMLOSRCA1DPDB1,Sources,dSource,,N/A,CDOMLOSRCA1DPDB1,N/A,
46
+ local32,db_rhel83_160_1,Sources,dSource,,N/A,db_rhel83_160_1,N/A,
47
+ local32,DBOMSR3A85E9,Sources,dSource,,N/A,DBOMSR3A85E9,N/A,
48
+ local32,Macaroon,Sources,dSource,,N/A,Macaroon,N/A,
49
+ local32,Soda,Sources,dSource,,N/A,Soda,N/A,
50
50
EOF
51
51
52
52
script_stdout_is $expected_stdout , " All hierachy results compare" ;
53
53
54
54
script_runs([' ../../bin/dx_get_hierarchy.pl' , ' -d' , ' local33' , ' -format' ,' csv' ,' -nohead' ,' -parent_engine' ,' local32' ] , " 2 engine test" );
55
55
56
56
my $expected_stdout = <<EOF ;
57
- local33,oramask\@ ip-10-110-251-90-1,Analytics\@ ip-10-110-251-90-1,VDB,DBOMSR3A85E9,2021-12-22 07:53:08 EST,DBOMSR3A85E9,oramask
58
- local33,clony,Untitled,VDB,DBOMSR3A85E9,2021-12-17 06:30:40 EST,DBOMSR3A85E9,oramask
59
- local33,mask2,Untitled,VDB,DBOMSR3A85E9,2021-12-17 06:30:40 EST,DBOMSR3A85E9,oramask
60
- local33,maskmask,Untitled,VDB,DBOMSR3A85E9,2021-12-22 07:53:08 EST,DBOMSR3A85E9,oramask
57
+ local33,oramask\@ ip-10-110-251-90-1,Analytics\@ ip-10-110-251-90-1,VDB,DBOMSR3A85E9,2021-12-22 07:53:08 EST,DBOMSR3A85E9,oramask,N/A
58
+ local33,clony,Untitled,VDB,DBOMSR3A85E9,2021-12-17 06:30:40 EST,DBOMSR3A85E9,oramask,mask2
59
+ local33,mask2,Untitled,VDB,DBOMSR3A85E9,2021-12-17 06:30:40 EST,DBOMSR3A85E9,oramask,oramask \@ ip-10-110-251-90-1
60
+ local33,maskmask,Untitled,VDB,DBOMSR3A85E9,2021-12-22 07:53:08 EST,DBOMSR3A85E9,oramask,oramask \@ ip-10-110-251-90-1
61
61
EOF
62
62
63
63
script_stdout_is $expected_stdout , " 2 engine results compare" ;
@@ -66,10 +66,10 @@ script_stdout_is $expected_stdout, "2 engine results compare";
66
66
script_runs([' ../../bin/dx_get_hierarchy.pl' , ' -d' , ' local33' , ' -format' ,' csv' ,' -nohead' ] , " target engine test" );
67
67
68
68
my $expected_stdout = <<EOF ;
69
- local33,oramask\@ ip-10-110-251-90-1,Analytics\@ ip-10-110-251-90-1,VDB,dSource on other DE,N/A,N/A,N/A
70
- local33,clony,Untitled,VDB,dSource on other DE,N/A,N/A,N/A
71
- local33,mask2,Untitled,VDB,dSource on other DE,N/A,N/A,N/A
72
- local33,maskmask,Untitled,VDB,dSource on other DE,N/A,N/A,N/A
69
+ local33,oramask\@ ip-10-110-251-90-1,Analytics\@ ip-10-110-251-90-1,VDB,dSource on other DE,N/A,N/A,N/A,N/A
70
+ local33,clony,Untitled,VDB,dSource on other DE,N/A,N/A,N/A,mask2
71
+ local33,mask2,Untitled,VDB,dSource on other DE,N/A,N/A,N/A,oramask \@ ip-10-110-251-90-1
72
+ local33,maskmask,Untitled,VDB,dSource on other DE,N/A,N/A,N/A,oramask \@ ip-10-110-251-90-1
73
73
EOF
74
74
75
75
script_stdout_is $expected_stdout , " target engine results compare" ;
0 commit comments