55
55
init_per_suite /1 , end_per_suite /1 , basic_PI_api /1 , multi_orber_api /1 ,
56
56
init_per_testcase /2 , end_per_testcase /2 , multi_pseudo_orber_api /1 ,
57
57
light_orber_api /1 , light_orber2_api /1 ,
58
- ssl_1_multi_orber_api /1 , ssl_2_multi_orber_api /1 , ssl_reconfigure_api /1 ,
59
58
iiop_timeout_api /1 , iiop_timeout_added_api /1 , setup_connection_timeout_api /1 ,
60
59
setup_multi_connection_timeout_api /1 , setup_multi_connection_timeout_random_api /1 ,
61
60
setup_multi_connection_timeout_attempts_api /1 ,
@@ -139,28 +138,21 @@ cases() ->
139
138
ssl_2_multi_orber_generation_3_api ,
140
139
ssl_reconfigure_generation_3_api ].
141
140
142
- % ssl_1_multi_orber_api,ssl_2_multi_orber_api,ssl_reconfigure_api,
143
-
144
141
% %-----------------------------------------------------------------
145
142
% % Init and cleanup functions.
146
143
% %-----------------------------------------------------------------
147
- init_per_testcase (TC ,Config )
148
- when TC =:= ssl_1_multi_orber_api ;
149
- TC =:= ssl_2_multi_orber_api ;
150
- TC =:= ssl_reconfigure_api ->
151
- init_ssl (Config );
152
144
init_per_testcase (TC ,Config )
153
145
when TC =:= ssl_1_multi_orber_generation_3_api ;
154
146
TC =:= ssl_2_multi_orber_generation_3_api ;
155
147
TC =:= ssl_reconfigure_generation_3_api ->
156
- init_ssl_3 (Config );
148
+ init_ssl (Config );
157
149
init_per_testcase (_Case , Config ) ->
158
150
init_all (Config ).
159
151
160
152
init_ssl (Config ) ->
161
- case proplists :get_value (crypto_started , Config ) of
153
+ case proplists :get_value (crypto_started , Config ) of
162
154
true ->
163
- case orber_test_lib :ssl_version () of
155
+ case orber_test_lib :ssl_available () of
164
156
no_ssl ->
165
157
{skip , " SSL is not installed!" };
166
158
_ ->
@@ -170,21 +162,6 @@ init_ssl(Config) ->
170
162
{skip , " Crypto did not start" }
171
163
end .
172
164
173
- init_ssl_3 (Config ) ->
174
- case proplists :get_value (crypto_started , Config ) of
175
- true ->
176
- case orber_test_lib :ssl_version () of
177
- 3 ->
178
- init_all (Config );
179
- 2 ->
180
- {skip , " Could not find the correct SSL version!" };
181
- no_ssl ->
182
- {skip , " SSL is not installed!" }
183
- end ;
184
- false ->
185
- {skip , " Crypto did not start" }
186
- end .
187
-
188
165
init_all (Config ) ->
189
166
Path = code :which (? MODULE ),
190
167
code :add_pathz (filename :join (filename :dirname (Path ), " idl_output" )),
@@ -1554,19 +1531,6 @@ basic_PI_api(_Config) ->
1554
1531
% %-----------------------------------------------------------------
1555
1532
% % API tests for ORB to ORB, ssl security depth 1
1556
1533
% %-----------------------------------------------------------------
1557
-
1558
- % % SECURE MULTI ORB API tests (SSL depth 1)
1559
- % % This case set up two secure orbs and test if they can
1560
- % % communicate. The case also test to access one of the
1561
- % % secure orbs which must raise a NO_PERMISSION exception.
1562
- ssl_1_multi_orber_api (_Config ) ->
1563
- ServerOptions = orber_test_lib :get_options_old (iiop_ssl , server ,
1564
- 1 , [{iiop_ssl_port , 0 }]),
1565
- ClientOptions = orber_test_lib :get_options_old (iiop_ssl , client ,
1566
- 1 , [{iiop_ssl_port , 0 }]),
1567
- ssl_suite (ServerOptions , ClientOptions ).
1568
-
1569
-
1570
1534
% % SECURE MULTI ORB API tests (SSL depth 1)
1571
1535
% % This case set up two secure orbs and test if they can
1572
1536
% % communicate. The case also test to access one of the
@@ -1589,14 +1553,6 @@ ssl_1_multi_orber_generation_3_api(_Config) ->
1589
1553
% % These case set up two secure orbs and test if they can
1590
1554
% % communicate. They also test to access one of the
1591
1555
% % secure orbs which must raise a NO_PERMISSION exception.
1592
- ssl_2_multi_orber_api (_Config ) ->
1593
-
1594
- ServerOptions = orber_test_lib :get_options_old (iiop_ssl , server ,
1595
- 2 , [{iiop_ssl_port , 0 }]),
1596
- ClientOptions = orber_test_lib :get_options_old (iiop_ssl , client ,
1597
- 2 , [{iiop_ssl_port , 0 }]),
1598
- ssl_suite (ServerOptions , ClientOptions ).
1599
-
1600
1556
ssl_2_multi_orber_generation_3_api (_Config ) ->
1601
1557
1602
1558
ServerOptions = orber_test_lib :get_options (iiop_ssl , server ,
@@ -1609,71 +1565,13 @@ ssl_2_multi_orber_generation_3_api(_Config) ->
1609
1565
% %-----------------------------------------------------------------
1610
1566
% % API tests for ORB to ORB, ssl security depth 2
1611
1567
% %-----------------------------------------------------------------
1612
-
1613
1568
% % SECURE MULTI ORB API tests (SSL depth 2)
1614
1569
% % These case set up two secure orbs and test if they can
1615
1570
% % communicate. They also test to access one of the
1616
1571
% % secure orbs which must raise a NO_PERMISSION exception.
1617
- ssl_reconfigure_api (_Config ) ->
1618
- ssl_reconfigure_old ([]).
1619
-
1620
-
1621
- % ssl_reconfigure_generation_3_api_old(_Config) ->
1622
- % ssl_reconfigure_old([{ssl_generation, 3}]).
1623
-
1624
- ssl_reconfigure_old (ExtraSSLOptions ) ->
1625
-
1626
- IP = orber_test_lib :get_host (),
1627
- Loopback = orber_test_lib :get_loopback_interface (),
1628
- {ok , ServerNode , _ServerHost } =
1629
- ? match ({ok ,_ ,_ },
1630
- orber_test_lib :js_node ([{iiop_port , 0 },
1631
- {flags , ? ORB_ENV_LOCAL_INTERFACE },
1632
- {ip_address , IP }|ExtraSSLOptions ])),
1633
- orber_test_lib :remote_apply (ServerNode , ssl , start , []),
1634
- orber_test_lib :remote_apply (ServerNode , crypto , start , []),
1635
- ? match (ok , orber_test_lib :remote_apply (ServerNode , orber_test_lib ,
1636
- install_test_data ,
1637
- [ssl ])),
1638
- ? match ({ok , _ },
1639
- orber_test_lib :remote_apply (ServerNode , orber ,
1640
- add_listen_interface ,
1641
- [Loopback , normal , [{iiop_port , 5648 },
1642
- {iiop_ssl_port , 5649 },
1643
- {interceptors , {native , [orber_iiop_tracer_silent ]}}|ExtraSSLOptions ]])),
1644
- ServerOptions = orber_test_lib :get_options_old (iiop_ssl , server ,
1645
- 2 , [{flags , ? ORB_ENV_LOCAL_INTERFACE },
1646
- {iiop_port , 5648 },
1647
- {iiop_ssl_port , 5649 },
1648
- {interceptors , {native , [orber_iiop_tracer_silent ]}}|ExtraSSLOptions ]),
1649
- ? match ({ok , _ },
1650
- orber_test_lib :remote_apply (ServerNode , orber ,
1651
- add_listen_interface ,
1652
- [Loopback , ssl , ServerOptions ])),
1653
-
1654
- ClientOptions = orber_test_lib :get_options_old (iiop_ssl , client ,
1655
- 2 , [{iiop_ssl_port , 0 }|ExtraSSLOptions ]),
1656
- {ok , ClientNode , _ClientHost } =
1657
- ? match ({ok ,_ ,_ }, orber_test_lib :js_node (ClientOptions )),
1658
-
1659
- ? match (ok , orber_test_lib :remote_apply (ClientNode , orber_test_lib ,
1660
- install_test_data ,
1661
- [ssl ])),
1662
- orber_test_lib :remote_apply (ClientNode , ssl , start , []),
1663
- orber_test_lib :remote_apply (ServerNode , crypto , start , []),
1664
- Obj = ? match (# 'IOP_IOR' {},
1665
- orber_test_lib :remote_apply (ClientNode , corba ,
1666
- string_to_object , [" corbaname:iiop:1.1@" ++ Loopback ++ " :5648/NameService#mamba" ,
1667
- [{context , [# 'IOP_ServiceContext' {context_id = ? ORBER_GENERIC_CTX_ID ,
1668
- context_data = {configuration , ClientOptions }}]}]])),
1669
- ? match (ok , orber_test_lib :remote_apply (ClientNode , orber_test_server ,
1670
- print , [Obj ])).
1671
-
1672
-
1673
1572
ssl_reconfigure_generation_3_api (_Config ) ->
1674
1573
ssl_reconfigure ([{ssl_generation , 3 }]).
1675
1574
1676
-
1677
1575
ssl_reconfigure (ExtraSSLOptions ) ->
1678
1576
1679
1577
IP = orber_test_lib :get_host (),
0 commit comments