-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CosmosDB Output Binding Stable Certification Tests (#1378)
* cosmosdb output binding certification tests Signed-off-by: GitHub <noreply@github.com> * linter touchup Signed-off-by: GitHub <noreply@github.com> * Rename some remnants from copy paste Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com> Co-authored-by: Looong Dai <long.dai@intel.com>
- Loading branch information
1 parent
870fedb
commit 29848e1
Showing
6 changed files
with
225 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/certification/bindings/azure/cosmosdb/components/wrongPartitionKey/cosmosdb.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: azure-cosmosdb-binding | ||
namespace: default | ||
spec: | ||
type: bindings.azure.cosmosdb | ||
version: v1 | ||
metadata: | ||
- name: url | ||
secretKeyRef: | ||
name: AzureCosmosDBUrl | ||
key: AzureCosmosDBUrl | ||
- name: database | ||
secretKeyRef: | ||
name: AzureCosmosDB | ||
key: AzureCosmosDB | ||
- name: collection | ||
secretKeyRef: | ||
name: AzureCosmosDBCollection | ||
key: AzureCosmosDBCollection | ||
- name: partitionKey | ||
value: wrongPartitionKey | ||
- name: masterKey | ||
secretKeyRef: | ||
name: AzureCosmosDBMasterKey | ||
key: AzureCosmosDBMasterKey | ||
|
||
auth: | ||
secretStore: envvar-secret-store |
9 changes: 9 additions & 0 deletions
9
tests/certification/bindings/azure/cosmosdb/components/wrongPartitionKey/localsecrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: envvar-secret-store | ||
namespace: default | ||
spec: | ||
type: secretstores.local.env | ||
version: v1 | ||
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
name: keyvaultconfig | ||
name: cosmosdbbindingconfig | ||
spec: | ||
features: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters