Sync Integ to Master
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / utils / general / SnmpTypeEnum.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.utils.general;
22
23 import static org.testng.AssertJUnit.assertEquals;
24
25 import java.io.File;
26 import java.io.FileNotFoundException;
27 import java.io.IOException;
28 import java.io.InputStream;
29 import java.io.StringWriter;
30 import java.nio.file.FileSystems;
31 import java.util.Arrays;
32 import java.util.HashMap;
33 import java.util.Iterator;
34 import java.util.LinkedList;
35 import java.util.List;
36 import java.util.Map;
37 import java.util.UUID;
38 import java.util.stream.Collectors;
39
40 import org.apache.commons.io.IOUtils;
41 import org.apache.http.HttpEntity;
42 import org.apache.http.client.ClientProtocolException;
43 import org.apache.http.client.methods.CloseableHttpResponse;
44 import org.apache.http.client.methods.HttpPost;
45 import org.apache.http.entity.mime.MultipartEntityBuilder;
46 import org.apache.http.entity.mime.content.FileBody;
47 import org.apache.http.impl.client.CloseableHttpClient;
48 import org.apache.http.impl.client.HttpClients;
49 import org.json.JSONException;
50 import org.json.JSONObject;
51 import org.json.simple.JSONArray;
52 import org.json.simple.JSONValue;
53 import org.openecomp.sdc.be.model.User;
54 import org.openecomp.sdc.ci.tests.config.Config;
55 import org.openecomp.sdc.ci.tests.datatypes.AmdocsLicenseMembers;
56
57 import org.openecomp.sdc.ci.tests.datatypes.HeatMetaFirstLevelDefinition;
58
59 import org.openecomp.sdc.ci.tests.datatypes.http.HttpHeaderEnum;
60 import org.openecomp.sdc.ci.tests.datatypes.http.HttpRequest;
61 import org.openecomp.sdc.ci.tests.datatypes.http.RestResponse;
62 import org.openecomp.sdc.ci.tests.execute.devCI.ArtifactFromCsar;
63
64
65 import org.openecomp.sdc.ci.tests.utils.Utils;
66 import org.openecomp.sdc.ci.tests.utils.rest.ResponseParser;
67
68 import org.testng.Assert;
69
70 import com.aventstack.extentreports.Status;
71 import com.clearspring.analytics.util.Pair;
72
73 enum SnmpTypeEnum{
74     SNMP_POLL ("snmp"),
75     SNMP_TRAP ("snmp-trap");
76
77     private String value;
78
79     public String getValue() {
80         return value;
81     }
82
83     private SnmpTypeEnum(String value) {
84         this.value = value;
85 }
86
87 }
88