/* * ============LICENSE_START======================================================================== * ONAP : tr-069-adapter * ================================================================================================= * Copyright (C) 2020 CommScope Inc Intellectual Property. * ================================================================================================= * This tr-069-adapter software file is distributed by CommScope Inc 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 * * This file 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 org.commscope.tr069adapter.config; import org.commscope.tr069adapter.config.model.ConfigFileContent; public class ConfigDataTestsUtils { public static final String SERVER_URI = "http://localhost:9000/"; public static final String macId = "testMacId"; public static final String OUI = "0005B9"; public static final String PRODUCT_CLASS = "LTE_Enterprise_C-RANSC_Cntrl"; public static final String HAEDWARE_VERSION = "1.1.1.1"; public static final String SW_VERSION = "4.5.00.001"; public static final String CONFIG_FILE_NAME = macId + ".xml"; // public static ConfigurationData getConfigurationData() { // ConfigurationData configData = new ConfigurationData(); // // configData.setHardwareVersion(HAEDWARE_VERSION); // configData.setSoftwareVersion(SW_VERSION); // configData.setLocalDn(macId); // configData.setOUI(OUI); // configData.setProductClass(PRODUCT_CLASS); // //// Map map = new HashMap(); //// map.put(", value) //// configData.set // return configData; // } public static ConfigFileContent getConfigFileContent() { ConfigFileContent configFileContent = new ConfigFileContent(); configFileContent.setFileContent(getFileContent()); configFileContent.setMacId(macId); return configFileContent; } public static String getFileContent() { String fileContent = "\r\n" + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " 1\r\n" + " dmsuser\r\n" + " 7001\r\n" + " NONE\r\n" + " dmsuser\r\n" + " \r\n" + " 0\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + ""; return fileContent; } }