summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorsheetalm <sheetal.mudholkar@amdocs.com>2017-12-13 15:25:05 +0530
committersheetalm <sheetal.mudholkar@amdocs.com>2017-12-13 15:51:21 +0530
commit64ffbe2d6567b28b31f82c0dbf38379281722d7d (patch)
tree1832a2dd2b6dc159951038db1c089c7cc9296e47 /pom.xml
parent4b1c2aaab1c3200076138d8702bc324d78a69fa8 (diff)
Rearranging togglez to avoid dependency issues
Added new profile "dev-integ" which will allow togglez-console dependency to be added. When built with default profile togglez-console will be excluded Change-Id: I8a918fe1ad56620d4215acb70dc126b0bc986802 Issue-ID: SDC-343 Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index bd7bb2a457..25d58ca061 100644
--- a/pom.xml
+++ b/pom.xml
@@ -396,6 +396,20 @@
<module>onboarding</module>
</modules>
</profile>
+
+ <profile>
+ <id>dev-integ</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.togglz</groupId>
+ <artifactId>togglz-console</artifactId>
+ <version>${togglz.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
<repositories>
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
/*-
 * ============LICENSE_START=======================================================
 * SDC
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

package com.att.sdc.translator.services.heattotosca.impl.resourcetranslation;

import org.junit.Before;
import org.junit.Test;

import java.io.IOException;
//import org.apache.log4j.Logger;

public class ResourceTranslationValetGroupAssignmentImplTest
    extends BaseResourceTranslationTest {

  @Override
  @Before
  public void setUp() throws IOException {
    // do not delete this function. it prevents the superclass setup from running
  }

  @Test
  public void testTranslateSimpleOnlyNova() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testTranslateGroupNameParameter() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testTranslateComplexNovaAndGroup() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testTranslateComplexOnlyGroup() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles";

/*    String[] loggers = { "org.apache.commons.dbcp2"};
    for (String logger : loggers) {
      org.apache.log4j.Logger logSuppress = org.apache.log4j.Logger.getLogger(logger);
      logSuppress.setLevel(org.apache.log4j.Level.OFF);
    }*/

    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testTranslateComplexTwoGroups() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testInvalidGroupIsNotTranslatedAndNotAddedAsMemberOfGroup() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testSimpleNovaAndNotSupportedResource() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testSimpleOnlyNotSupportedResources() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testSimpleOnlySingleNova() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testConfigNoConnection() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/notconnected/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }

  @Test
  public void testDynamicGroup() throws Exception {
    inputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles";
    outputFilesPath =
        "/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/expectedoutputfiles";
    initTranslatorAndTranslate();
    testTranslation();
    validateComputeTemplateConsolidationData();
  }


}