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
Run Azure blob store integration tests with Azure and Azurite
Azurite is run as a testcontainer, and the github CI build runs all
integration tests for Java 11, 17, and 21.
In order to save on Azure resources, online integration tests are
run only if the Azurite based tests succeeded, using github secrets
to set up the account, key, and container; and for Java 11 only.
GeoWebCache `BlobStore` implementation to store tiles on [Azure Blob Storage](https://azure.microsoft.com/en-us/products/storage/blobs)
4
+
5
+
6
+
## Building
7
+
8
+
`mvn install|test|verify` will run only unit tests.
9
+
10
+
In order to run the integration tests, build with the `-Ponline` maven profile. For example:
11
+
12
+
```
13
+
mvn verify -Ponline
14
+
```
15
+
16
+
There are two sets of integration tests:
17
+
18
+
-`org.geowebcache.azure.tests.container.*IT.java`: run integration tests using [Testcontainers](https://testcontainers.com/), with a Microsoft [Azurite](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite) Docker image.
19
+
-`org.geowebcache.azure.tests.online.*IT.java`: run integration tests against a real Azure account, only if there's a configuration file in `$HOME/.gwc_azure_tests.properties`, which must have the following contents:
20
+
21
+
```
22
+
accountName=<Azure account name>
23
+
accountKey=<Azure account key>
24
+
container=<Azure blob storage container name>
25
+
useHTTPS=true
26
+
maxConnections=<optional, max number of concurrent connections>
27
+
```
28
+
29
+
## Continuous integration
30
+
31
+
There's a Github Actions CI job defined at `<gwc git root>/.github/workflows/azure-integration.yml`
32
+
that will run the Docker-based integration tests first, and then the online ones against
33
+
a real Azure account, using Github repository secrets to define the values for the
34
+
`$HOME/.gwc_azure_tests.properties` file's `accountName`, `accountSecret`, and `container` keys.
0 commit comments