|
1 | 1 | """
|
2 |
| -Copyright (c) 2021, Oracle and/or its affiliates. |
| 2 | +Copyright (c) 2021, 2022, Oracle and/or its affiliates. |
3 | 3 | Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
4 | 4 | """
|
5 | 5 | import os
|
6 | 6 |
|
7 | 7 | from base_test import BaseTestCase
|
| 8 | +from wlsdeploy.aliases import alias_utils |
8 | 9 | from wlsdeploy.aliases.model_constants import APPLICATION
|
9 | 10 | from wlsdeploy.aliases.model_constants import APP_DEPLOYMENTS
|
10 | 11 | from wlsdeploy.aliases.model_constants import AUTHENTICATION_PROVIDER
|
@@ -68,8 +69,10 @@ def testFilter(self):
|
68 | 69 |
|
69 | 70 | # Dynamic clusters should have "CalculatedListenPorts" set to false
|
70 | 71 |
|
71 |
| - self._match(0, model, TOPOLOGY, CLUSTER, 'dynamicCluster', DYNAMIC_SERVERS, CALCULATED_LISTEN_PORTS) |
72 |
| - self._match(0, model, TOPOLOGY, CLUSTER, 'dynamicCluster2', DYNAMIC_SERVERS, CALCULATED_LISTEN_PORTS) |
| 72 | + for name in ['dynamicCluster', 'dynamicCluster2']: |
| 73 | + is_calc = self._traverse(model, TOPOLOGY, CLUSTER, name, DYNAMIC_SERVERS)[CALCULATED_LISTEN_PORTS] |
| 74 | + self.assertEqual(False, alias_utils.convert_boolean(is_calc), |
| 75 | + CALCULATED_LISTEN_PORTS + ' for ' + name + ' is ' + str(is_calc) + ', should be false') |
73 | 76 |
|
74 | 77 | # Online-only attributes should be removed from the model
|
75 | 78 |
|
|
0 commit comments