Skip to content

Commit

Permalink
Merge pull request #318 from majguo/main
Browse files Browse the repository at this point in the history
A few refinements
  • Loading branch information
majguo authored Dec 27, 2024
2 parents 40b4019 + fdd0e0d commit e231cc9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
44 changes: 22 additions & 22 deletions .github/run-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ set -Eeuo pipefail
# - EVENTHUBS_NAMESPACE
# - EVENTHUBS_EVENTHUB_NAME

# Test azure-services-disabled
mvn -f azure-services-disabled/pom.xml test-compile failsafe:integration-test -Dnative -Dazure.test=true
mvn -f azure-services-disabled/pom.xml verify -Dazure.test=true

# Azure Storage Blob Extension
# Authenticate to Azure Storage Blob with Microsoft Entra ID and connection string
# Get the endpoint of azure storage blob
Expand Down Expand Up @@ -64,6 +68,24 @@ export QUARKUS_AZURE_KEYVAULT_SECRET_ENDPOINT=$(az keyvault show --name "${KEY_V
mvn -f azure-keyvault/pom.xml test-compile failsafe:integration-test -Dnative -Dazure.test=true
mvn -f azure-keyvault/pom.xml verify -Dazure.test=true

# Azure Event Hubs Extension
# Retrieve the event hub resource ID
EVENTHUBS_EVENTHUB_RESOURCE_ID=$(az eventhubs eventhub show \
--resource-group $RESOURCE_GROUP_NAME \
--namespace-name $EVENTHUBS_NAMESPACE \
--name $EVENTHUBS_EVENTHUB_NAME \
--query 'id' \
--output tsv)
# Assign the "Azure Event Hubs Data Owner" role to the current signed-in identity
az role assignment create \
--role "Azure Event Hubs Data Owner" \
--assignee ${OBJECT_ID} \
--scope $EVENTHUBS_EVENTHUB_RESOURCE_ID
export QUARKUS_AZURE_EVENTHUBS_NAMESPACE=${EVENTHUBS_NAMESPACE}
export QUARKUS_AZURE_EVENTHUBS_EVENTHUB_NAME=${EVENTHUBS_EVENTHUB_NAME}
mvn -f azure-eventhubs/pom.xml test-compile failsafe:integration-test -Dnative -Dazure.test=true
mvn -f azure-eventhubs/pom.xml verify -Dazure.test=true

# Azure Cosmos Extension
# Authenticate to Azure Cosmos DB with Microsoft Entra ID and key
# Export the endpoint of azure cosmos db
Expand Down Expand Up @@ -98,25 +120,3 @@ mvn -f azure-cosmos/pom.xml test-compile failsafe:integration-test -Dnative -Daz
mvn -f azure-cosmos/pom.xml test-compile failsafe:integration-test -Dnative -Dazure.test=true -Dquarkus.azure.cosmos.key=${AZURE_COSMOS_KEY}
mvn -f azure-cosmos/pom.xml verify -Dazure.test=true
mvn -f azure-cosmos/pom.xml verify -Dazure.test=true -Dquarkus.azure.cosmos.key=${AZURE_COSMOS_KEY}

# Azure Event Hubs Extension
# Retrieve the event hub resource ID
EVENTHUBS_EVENTHUB_RESOURCE_ID=$(az eventhubs eventhub show \
--resource-group $RESOURCE_GROUP_NAME \
--namespace-name $EVENTHUBS_NAMESPACE \
--name $EVENTHUBS_EVENTHUB_NAME \
--query 'id' \
--output tsv)
# Assign the "Azure Event Hubs Data Owner" role to the current signed-in identity
az role assignment create \
--role "Azure Event Hubs Data Owner" \
--assignee ${OBJECT_ID} \
--scope $EVENTHUBS_EVENTHUB_RESOURCE_ID
export QUARKUS_AZURE_EVENTHUBS_NAMESPACE=${EVENTHUBS_NAMESPACE}
export QUARKUS_AZURE_EVENTHUBS_EVENTHUB_NAME=${EVENTHUBS_EVENTHUB_NAME}
mvn -f azure-eventhubs/pom.xml test-compile failsafe:integration-test -Dnative -Dazure.test=true
mvn -f azure-eventhubs/pom.xml verify -Dazure.test=true

# Test azure-services-disabled
mvn -f azure-services-disabled/pom.xml test-compile failsafe:integration-test -Dnative -Dazure.test=true
mvn -f azure-services-disabled/pom.xml verify -Dazure.test=true
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Quarkiverse - Quarkus Azure Services

[![Build](https://github.com/quarkiverse/quarkus-azure-services/workflows/Build/badge.svg?branch=main)](https://github.com/quarkiverse/quarkus-azure-services/actions?query=workflow%3ABuild)
[![Build](https://github.com/quarkiverse/quarkus-azure-services/workflows/Build/badge.svg)](https://github.com/quarkiverse/quarkus-azure-services/actions?query=workflow%3ABuild)
[![License](https://img.shields.io/github/license/quarkiverse/quarkus-azure-services.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![Central](https://img.shields.io/maven-central/v/io.quarkiverse.azureservices/quarkus-azure-services-parent?color=green)](https://central.sonatype.com/artifact/io.quarkiverse.azureservices/quarkus-azure-services-parent)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
Expand Down Expand Up @@ -46,8 +46,7 @@ Example applications can be found inside the [integration-tests](integration-tes
Follow [this wiki](https://github.com/quarkiverse/quarkiverse/wiki/Release) to release a new version of the extensions.
You can reference the following PRs as examples:

* Release a new version: https://github.com/quarkiverse/quarkus-azure-services/pull/133
* Create a new GitHub release based on the tag the release pipeline created, for example, [1.0.0](https://github.com/quarkiverse/quarkus-azure-services/releases/tag/1.0.0).
* Release a new version: https://github.com/quarkiverse/quarkus-azure-services/pull/316.
* Register new extensions in catalog: https://github.com/quarkusio/quarkus-extension-catalog/pull/64.
See [Publish your extension in registry.quarkus.io](https://quarkus.io/guides/writing-extensions#publish-your-extension-in-registry-quarkus-io)
for more information.
Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/quarkus-azure-cosmos.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public class CosmosAsyncResource {
@Inject
CosmosAsyncClient cosmosAsyncClient;
@Path("/{database}/{container}")
@POST
@Consumes(MediaType.APPLICATION_JSON)
public Uni<Response> createItem(
Expand Down

0 comments on commit e231cc9

Please sign in to comment.