You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- SONARQUBE_TOKEN: SonarQube access token. Optional parameter, must be set when ACL is configured for the project.
41
+
More details about access tokens - https://docs.sonarqube.org/latest/user-guide/user-token/
42
+
43
+
- AWS_S3_BUCKET: AWS S3 Bucket name. Bucket must be already exist
44
+
- AWS_S3_PREFIX: AWS S3 Key prefix. Optional parameter. Must end with slash
45
+
38
46
- All variables starting with prefix `AUTH0` corresponds to Auth0 related credentials
39
47
48
+
### AWS Credentials
49
+
* Please refer to following [documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html) in order to get AWS credentials.
50
+
* Depending on your Operating System, create AWS credentials file in the path listed below
51
+
```
52
+
Linux, Unix, and macOS users: ~/.aws/credentials
53
+
Windows users: C:\Users\USER_NAME\.aws\credentials
54
+
```
55
+
Credentials file should look like below
56
+
```
57
+
[default]
58
+
aws_access_key_id = SOME_ACCESS_KEY_ID
59
+
aws_secret_access_key = SOME_SECRET_ACCESS_KEY
60
+
```
61
+
* Credentials can be set in environment variables. [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html)
62
+
40
63
## Local deployment
41
64
42
65
1. From the project root directory, run the following command to install the dependencies
@@ -75,6 +98,12 @@ To run unit tests
75
98
npm run test
76
99
```
77
100
101
+
## Code coverage
102
+
103
+
```
104
+
npm run coverage
105
+
```
106
+
78
107
## Local Deployment with Docker
79
108
80
109
To run the Submission quality processor using docker, follow the below steps
@@ -83,7 +112,7 @@ To run the Submission quality processor using docker, follow the below steps
83
112
84
113
2. Rename the file `sample.api.env` to `api.env`
85
114
86
-
3. Set the required Auth0 and Submission API URL in the file `api.env`
115
+
3. Set the required Auth0, Submission API URL, SonarQube config and AWS S3 configuration in the file `api.env`
0 commit comments