Commit Graph

15 Commits

Author SHA1 Message Date
Bernd Verst 3398bf407a
Add Azure App Config to Conf Test infra (#3085)
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-08-15 18:05:05 -07:00
Alessandro (Ale) Segala 58228efd01
Add Azure AD support to Postgres state store component (#2970)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-07-06 23:38:11 -07:00
Bernd Verst f25b26fc0c
Upgrade to Azure Table Storage Track 2 SDK in State Store and add CosmosDB Table API support (#1792)
* Upgrade to Azure Table Storage Track 2 SDK in State Store

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make modtidy-all

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* don't panic

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* fix error parsing

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Adds support for empty rowKeys again

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Pin aztables v1.0.1

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add support for Cosmos DB Table API

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add Azure Table Storage CosmosDB conformance test

Signed-off-by: GitHub <noreply@github.com>

* Address code review

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Create Table Storage State store subtests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Address linter issue

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* context instead of ctx

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* load state store in conf tests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* use cosmosDB mode in cosmosDB test

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add Azure AD support for Table Storage

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* remove shadow declaration

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make accountKey optional

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add options to skip table creation

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-17 14:04:53 -07:00
Bernd Verst 76bc9acd57
Add additional Event Hub topics for certification tests (#1767)
* Add additional Event Hub topics for certification tests

Signed-off-by: GitHub <noreply@github.com>

* Apply EventHubs changes for pubsub and binding cert tests

Signed-off-by: GitHub <noreply@github.com>

* Remove partitions from EHs because we don't want to pay for premium

Signed-off-by: GitHub <noreply@github.com>
2022-06-08 10:26:23 -07:00
Surender Singh Malik 37e4e8a44a
Certify Azure Event Hubs as Stable in pubsub (#1623)
* First iteration for the eventhubs certifications tests

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fixing typos,  adding more description and publishing with multiple partitions

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Moved the secret reference in components definition to secretstore.local.env

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* moving to latest dapr/dapr github.com/dapr/dapr@v1.7.0-rc.2

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updating go.mod

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* changes in infra and workflow for cert eventhubs

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* typo fix in local secret store type

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* correcting the typo in policyName

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* bug fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* publish to a topic with no subscriber fix

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete azure eventhub that got created as part of test run

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updated readme

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* removed dummy sidecar and leveraged connectionstring at namespace level for multi topic operations

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* go mod changes and nit fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* fixing iot device issue

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* NIT : CR fixes

* Enabled iothub test and a bit of code refactoring

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete the checkpoint container for the temp eventhub

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Revert "NIT : CR fixes"

This reverts commit 260f5ed686.

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* First iteration for the eventhubs certifications tests

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fixing typos,  adding more description and publishing with multiple partitions

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Moved the secret reference in components definition to secretstore.local.env

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* moving to latest dapr/dapr github.com/dapr/dapr@v1.7.0-rc.2

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updating go.mod

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* changes in infra and workflow for cert eventhubs

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* typo fix in local secret store type

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* correcting the typo in policyName

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* bug fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* publish to a topic with no subscriber fix

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete azure eventhub that got created as part of test run

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updated readme

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* removed dummy sidecar and leveraged connectionstring at namespace level for multi topic operations

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* go mod changes and nit fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* fixing iot device issue

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* NIT : CR fixes

* Enabled iothub test and a bit of code refactoring

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete the checkpoint container for the temp eventhub

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Revert "NIT : CR fixes"

This reverts commit 260f5ed686.

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fix eventhub pubsub certification test infra provisioning

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Fixing the scoping issue for role assignment on eh

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-23 23:27:41 -07:00
Bernd Verst 40aadba329
Adds Azure Active Directory support to the Azure EventHubs Binding (#1572)
* Adds AAD support for Event Hubs Binding

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Update test infra

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* EventHubs AAD permissions

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* WIP

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* EventHubs Binding AAD working with integration test

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Update certification test role assignments

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* fix linter issues

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* rename validate function

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Update commented out code for ACR resource.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-03-18 14:46:49 -07:00
Dmitry Shmulevich c7adb917f3
update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
Bernd Verst 9dbdaee296
Cosmos DB Output Binding - Authentication tests (#1373)
* Adds CosmosDB Binding authentication tests

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Enable Cosmos DB Binding Conformance test

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Initial cosmosdb binding certification plan WIP

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Go mod tidy

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Update library and go mod tidy

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make modtidy-all

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* CosmosDB Binding test plan details

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2021-12-13 15:08:07 -08:00
Bernd Verst dbb18e4d77
Fix test infrastructure setup script (#1366)
* Fix test infrastructure setup script

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* use more unique ACR resource name

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2021-12-08 17:34:12 -08:00
Bernd Verst f6e6bd8120
Adds missing ACR resource definition for test infrastructure (#1359)
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-12-06 12:01:18 -08:00
Simon Leet 9f77037de2
Add state.sqlserver conformance test against Azure SQL (#1182)
* Add Azure SQL to setup-azure-conf-test.sh

* Add state.sqlserver conformance test on Azure SQL

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-10-06 12:33:50 -07:00
Simon Leet a9cf218c04
Support setting up Azure IoT Hub for integration testing with EventHubs components (#1174)
* Add IoT Hub config to setup-azure-conf-test.sh

* Add EventHubs bindings integration test for IoT device event properties

* Add consumer group for IoT Hub events for pubsub EventHubs testing

* Add EventHubs pubsub integration test for IoT device event properties
2021-10-01 16:17:53 -07:00
Simon Leet ec6021304d
Update EventHubs conformance tests (#1095)
* Fix parameters flag typo in setup-azure-conf-test.sh

* Update Event Hubs conformance tests

- Separate containers and consumer groups used for EventHub pubsub and
  bindings conformance tests.
- Update setup-azure-conf-test.sh to reflect new naming targets.
2021-08-26 15:38:51 -07:00
Simon Leet dc7ee55e2a
Add Event Hubs pubsub and bindings conformance tests (#1040)
* Add conformance test for EventHubs bindings

* Update EventHubs pubsub to pass conformance tests

- Add conformance tests for Azure EventHubs PubSub component
- Add retry & backoff handling on subscriber handling error to EventHubs
  PubSub component for conformance tests.
- Add cancellation context to Azure EventHubs and update Close() to
  invoke cancel prior to closing the hub, which cleans up both senders
  and receivers.
2021-08-02 18:03:24 -07:00
Simon Leet 9c84bd202c
Add automation for deploying Azure conformance test resources (#1001)
* Add automation for deploying Azure conformance test resources

- Add .bicep definitions for Azure deployment of conformance test resources.
- Add setup-azure-conf-test.sh script for deploying .bicep definition and
  configuring other assets needed for the Azure conformance tests:
   - Creates the appropriate service principals and their credentials
     for the test.
   - Populates the key vault with the test parameters and secrets used by
     the GitHub conformance.yml test workflow.
   - Generates a .rc file that can be invoked with `source` to configure
     the local environment variables and secrets for running conformance
     tests described in tests/conformance/README.md.
   - Generates a teardown script that can be used to dispose of the
     deployed Azure resources when done.

* Move setup-azure-conf-test under azure/ subfolder

* Add documentation for Azure conformance test automation

- Add README.md to .github/infrastructure/conformance/azure describing
  use of automation script.
- Update tests/conformance/README.md with reference to Azure
  conformance test infrastructure automation.
- Fix spelling and issues in tests/conformance/README.md reported by
  markdownlint.
2021-07-28 10:06:14 -07:00