Add deprecation warning for testCCModel|setupAndTestNode func
Change-Id: I761873ecfc649038fe1e6832f6e835d42eb3556f
Related-bug: PROD-22115 (PROD:22115)
diff --git a/src/com/mirantis/mk/SaltModelTesting.groovy b/src/com/mirantis/mk/SaltModelTesting.groovy
index ba1a993..78a8d6f 100644
--- a/src/com/mirantis/mk/SaltModelTesting.groovy
+++ b/src/com/mirantis/mk/SaltModelTesting.groovy
@@ -236,6 +236,10 @@
formulasRevision = 'stable', reclassVersion = "master", dockerMaxCpus = 0,
ignoreClassNotfound = false, legacyTestingMode = false, aptRepoUrl = '', aptRepoGPG = '', dockerContainerName = false) {
def common = new com.mirantis.mk.Common()
+ // TODO
+ common.errorMsg('You are using deprecated function!Please migrate to "setupDockerAndTest".' +
+ 'It would be removed after 2018.q4 release!Pushing forced 60s sleep..')
+ sh('sleep 60')
// timeout for test execution (40min)
def testTimeout = 40 * 60
def TestMarkerResult = false
@@ -395,6 +399,9 @@
def testCCModel(cfg) {
def common = new com.mirantis.mk.Common()
+ common.errorMsg('You are using deprecated function!Please migrate to "testNode".' +
+ 'It would be removed after 2018.q4 release!Pushing forced 60s sleep..')
+ sh('sleep 60')
sh(script: 'find . -mindepth 1 -delete || true', returnStatus: true)
sh(script: "wget --progress=dot:mega --auth-no-challenge -O models.tar.gz ${cfg.MODELS_TARGZ}")
// unpack data