-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathAzuriteProperties.java
More file actions
71 lines (57 loc) · 2.26 KB
/
AzuriteProperties.java
File metadata and controls
71 lines (57 loc) · 2.26 KB
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
package com.playtika.testcontainer.azurite;
import com.playtika.testcontainer.common.properties.CommonContainerProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties("embedded.azurite")
public class AzuriteProperties extends CommonContainerProperties {
static final String AZURITE_BEAN_NAME = "azurite";
/**
* can't be changed, see https://github.com/Azure/Azurite#default-storage-account
*/
static final String ACCOUNT_NAME = "devstoreaccount1";
/**
* can't be changed, see https://github.com/Azure/Azurite#default-storage-account
*/
static final String ACCOUNT_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==";
static final String DEFAULT_CERT_CLASSPATH = "azurite/cert.pem";
static final String DEFAULT_KEY_CLASSPATH = "azurite/key.pem";
int blobStoragePort = 10000;
int queueStoragePort = 10001;
int tableStoragePort = 10002;
/**
* Enables HTTPS for Azurite. Required for OAuth (DefaultAzureCredential) support.
* When enabled without providing cert/key paths, uses an embedded self-signed certificate.
*/
boolean httpsEnabled = false;
/**
* Enables OAuth basic emulation (--oauth basic). Requires httpsEnabled=true.
* Allows using DefaultAzureCredential with Azurite.
*/
boolean oauthEnabled = false;
/**
* Classpath or file path to a PEM certificate for HTTPS. Used together with pemKeyPath.
* If not set when httpsEnabled=true, the embedded self-signed certificate is used.
*/
String pemCertPath;
/**
* Classpath or file path to a PEM private key for HTTPS. Used together with pemCertPath.
*/
String pemKeyPath;
/**
* Classpath or file path to a PFX certificate for HTTPS. Used together with pfxPassword.
*/
String pfxCertPath;
/**
* Password for the PFX certificate.
*/
String pfxPassword;
@Override
public String getDefaultDockerImage() {
// Please don`t remove this comment.
// renovate: datasource=docker
return "mcr.microsoft.com/azure-storage/azurite:3.35.0";
}
}