File tree Expand file tree Collapse file tree 3 files changed +20
-115
lines changed Expand file tree Collapse file tree 3 files changed +20
-115
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,16 @@ $key = $repository->getKey('openid_connect_ad');
106106
107107## Providers
108108
109+ The module comes with two key providers.
110+
109111### Azure Key Vault
110112
111- ` @todo ` < https://azure.microsoft.com/en-us/products/key- vault>
113+ Used for fetching certificate from Azure Key vault.
112114
113- ### Infisical
115+ ### HashiCorp Vault
114116
115- ` @todo ` < https://infisical.com/ >
117+ Used to fetch any sort of secret string from HashiCorp vault. Note that
118+ this can only provide string values, i.e. no binary files.
116119
117120## Coding standards
118121
@@ -146,3 +149,17 @@ analysis:
146149``` shell
147150docker run --rm --volume ${PWD} :/app --workdir /app itkdev/php8.3-fpm ./scripts/code-analysis
148151```
152+
153+ ## Unit tests
154+
155+ We use [ PHPUnit] ( https://phpunit.de/documentation.html ) for unit testing.
156+
157+ Testing mostly centers around the conversion and parsing of certificates. For this purpose a bunch of test
158+ certificates has been generated.
159+
160+ Running PHPUnit tests in a standalone Drupal module is a bit tricky, so we use a helper script to run the
161+ analysis:
162+
163+ ``` shell
164+ docker run --rm --volume ${PWD} :/app --workdir /app itkdev/php8.3-fpm ./scripts/unit-tests
165+ ```
Original file line number Diff line number Diff line change 4747 "sort-packages" : true
4848 },
4949 "scripts" : {
50- "code-analysis" : [
51- " @code-analysis/drupal-check"
52- ],
53- "code-analysis/drupal-check" : [
54- " # @see https://github.com/mglaman/drupal-check/issues/261#issuecomment-1030141772 for details on exclude-dir value" ,
55- " drupal-check --deprecations --analysis --exclude-dir='vendor' *.* src"
56- ],
5750 "coding-standards-apply" : [
5851 " @coding-standards-apply/phpcs"
5952 ],
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments