Skip to content

Commit c1f3113

Browse files
authored
Restore wlsVersionEarlierThan (#3616)
1 parent d54892a commit c1f3113

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

operator/src/main/resources/scripts/model_wdt_mii_filter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ def toDNS1123Legal(self, address):
144144
def getModel(self):
145145
return self.model
146146

147+
def wlsVersionEarlierThan(self, version):
148+
# unconventional import within function definition for unit testing
149+
from weblogic.management.configuration import LegalHelper
150+
# WLS Domain versions supported by operator are 12.2.1.3 + patches, 12.2.1.4
151+
# and 14.1.1.0 so current version will only be one of these that are listed.
152+
return LegalHelper.versionEarlierThan("14.1.1.0", version)
153+
147154
class SecretManager(object):
148155

149156
def __init__(self, env):

operator/src/test/python/test_wdt_mii_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,5 +341,8 @@ def readFile(self, path):
341341

342342
return self.WLS_CRED_PASSWORD
343343

344+
def wlsVersionEarlierThan(self, version):
345+
return False
346+
344347
if __name__ == '__main__':
345348
unittest.main()

0 commit comments

Comments
 (0)