summaryrefslogtreecommitdiffstats
path: root/distribution-ci/src/main/java/org/openecomp/test/SimpleConfiguration.java
blob: 7f2ff9190640c0e7fe29d2f0288521eb2c4d6121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
<
package org.openecomp.test;

import java.util.List;

import org.openecomp.sdc.api.consumer.IConfiguration;
import org.openecomp.sdc.common.api.ArtifactTypeEnum;

public class SimpleConfiguration implements IConfiguration{

//	public String getUser()
//	  {
//	    return System.getProperty("user");
//	  }
//	  
//	public List<String> getRelevantArtifactTypes() {
//		List<String> res = new ArrayList<String>();
//		for (ArtifactTypeEnum type : ArtifactTypeEnum.values()){
//			res.add(type.name());
//		}
//		return res;
//	}
//		
//	  public int getPollingTimeout()
//	  {
//	    return 20;
//	  }
//	  
//	  public int getPollingInterval()
//	  {
//	    return 20;
//	  }
//	  
//	  public String getPassword()
//	  {
//	    return System.getProperty("password");
//	  }
//	  
//	  public String getEnvironmentName()
//	  {
//	    return System.getProperty("env");
//	  }
//	  
//	  public String getConsumerID()
//	  {
//	    return System.getProperty("consumerID");
//	  }
//	  
//	  public String getConsumerGroup()
//	  {
//	    return System.getProperty("groupID");
//	  }
//	  
//	  public String getAsdcAddress()
//	  {
//	    return System.getProperty("beAddress");
//	  }
//	  
//	  public String getKeyStorePath()
//	  {
//	    return "";
//	  }
//	  
//	  public String getKeyStorePassword()
//	  {
//	    return "Aa123456";
//	  }
//	  
//	  public boolean activateServerTLSAuth()
//	  {
//	    return Boolean.parseBoolean(System.getProperty("auth"));
////		res.add(ArtifactTypeEnum.HEAT_ARTIFACT);
////		res.add(ArtifactTypeEnum.HEAT_ENV);
////		res.add(ArtifactTypeEnum.MURANO_PKG);
////		res.add(ArtifactTypeEnum.VF_LICENSE);
////		res.add(ArtifactTypeEnum.APPC_CONFIG);
////		res.add(ArtifactTypeEnum.MODEL_INVENTORY_PROFILE);
////		res.add(ArtifactTypeEnum.VNF_CATALOG);
////		res.add(ArtifactTypeEnum.APPC_CONFIG);
////		res.add(ArtifactTypeEnum.VF_MODULES_METADATA);
////		return "PROD-Tedy-Only";
////		return "A-AI";
////		return "A-AI";
//	  }
	  
	  
	
	public String getUser() {
		return "ci";
	}
	
	public List<String> getRelevantArtifactTypes() {

//		List<String> res = new ArrayList<String>();
//		for (ArtifactTypeEnum type : AssetTypeEnum.values()){
//			res.add(type.name());
//		}
		return ArtifactTypeEnum.getAllTypes();
	}

	
	public int getPollingTimeout() {
		return 20;
	}
	
	public int getPollingInterval() {
		return 20;
	}
	
	public String getPassword() {
		return "123456";
	}
	
	public String getEnvironmentName() {
		return "PROD-Rom";
	}
	
	public String getConsumerID() {
		return "ys9693-groupVasya";
	}
	
	public String getConsumerGroup() {
//		return "mso-groupTedy";
		return "ys9693-consumerVasya";
	}
	
	public String getAsdcAddress() {
		return "127.0.0.1:8443";

	}

	@Override
	public String getKeyStorePath() {
		//return "";
		return "etc/asdc-client.jks";
	}

	@Override
	public String getKeyStorePassword() {
		
		return "Aa123456";
	}

	@Override
	public boolean activateServerTLSAuth() {
		
		return false;
	}

}
ass="n">annotations.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> <version>${jackson.dataformat.version}</version> </dependency> <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>woodstox-core-asl</artifactId> <version>${woodstox.version}</version> </dependency> <dependency> <groupId>org.openecomp.sdc</groupId> <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-multipart</artifactId> <version>${jersey.multipart.version}</version> <scope>provided</scope> </dependency> </dependencies> </project>