Skip to content

Commit

Permalink
pr-chore: remove in-process docker integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels committed May 2, 2024
1 parent ce4bdd6 commit fdc6143
Showing 1 changed file with 0 additions and 90 deletions.
90 changes: 0 additions & 90 deletions build/templates/docker-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,61 +86,21 @@ stages:
ARCUS_STORAGEACCOUNT_CONNECTIONSTRING=$(Arcus.EventHubs.BlobStorage.StorageAccountConnectionString)
ARCUS_SERVICEBUS_CONNECTIONSTRING=$(Arcus.Worker.ServiceBus.Queue.ConnectionString)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.Databricks.JobMetrics'
projectAlias: 'arcus-az-databricks-jobmetrics'
ports: '$(Arcus.AzureFunctions.Databricks.HttpPort):80'
script: |
Get-Content './Arcus.Demo.AzureFunctions.Databricks.JobMetrics/Startup.cs' -Raw |
% { $_ -replace '#error', '#warning' -replace '#if DEBUG', '#if RELEASE' } |
Set-Content './Arcus.Demo.AzureFunctions.Databricks.JobMetrics/Startup.cs'
envVars: |
Arcus__Databricks__Url=$(Arcus.Databricks.Url)
Arcus__ApplicationInsights__MetricName=$(Arcus.ApplicationInsights.MetricName)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.InProcess.Http'
projectAlias: 'arcus-az-func-http'
projectOptions: '--functions-worker inProcess'
ports: '$(Arcus.AzureFunctions.Http.InProcess.HttpPort):80'
script: |
Get-Content './Arcus.Demo.AzureFunctions.InProcess.Http/Startup.cs' -Raw |
% { $_ -replace '#error', '#warning' -replace '#if DEBUG', '#if RELEASE' } |
Set-Content './Arcus.Demo.AzureFunctions.InProcess.Http/Startup.cs'
envVars: |
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.Isolated.Http'
projectAlias: 'arcus-az-func-http'
projectOptions: '--functions-worker isolated'
ports: '$(Arcus.AzureFunctions.Http.Isolated.HttpPort):80'
script: |
Get-Content './Arcus.Demo.AzureFunctions.Isolated.Http/Program.cs' -Raw |
% { $_ -replace '#error', '#warning' -replace '#if DEBUG', '#if RELEASE' } |
Set-Content './Arcus.Demo.AzureFunctions.Isolated.Http/Program.cs'
envVars: |
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.ServiceBus.Queue.InProcess'
projectAlias: 'arcus-az-func-servicebus-queue'
projectOptions: '--functions-worker inProcess'
ports: '$(Arcus.AzureFunctions.ServiceBus.Queue.InProcess.Port):$(Arcus.AzureFunctions.ServiceBus.Queue.InProcess.Port)'
script: |
Get-Content './Arcus.Demo.AzureFunctions.ServiceBus.Queue.InProcess/Startup.cs' -Raw |
% { $_ -replace '#error', '#warning' -replace '#if DEBUG', '#if RELEASE' } |
Set-Content './Arcus.Demo.AzureFunctions.ServiceBus.Queue.InProcess/Startup.cs'
envVars: |
ServiceBusConnectionString=$(Arcus.Worker.ServiceBus.Queue.ConnectionString)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.ServiceBus.Queue.Isolated'
projectAlias: 'arcus-az-func-servicebus-queue'
projectOptions: '--functions-worker isolated'
ports: '$(Arcus.AzureFunctions.ServiceBus.Queue.Isolated.Port):$(Arcus.AzureFunctions.ServiceBus.Queue.Isolated.Port)'
script: |
Get-Content './Arcus.Demo.AzureFunctions.ServiceBus.Queue.Isolated/Program.cs' -Raw |
Expand All @@ -149,24 +109,10 @@ stages:
envVars: |
ServiceBusConnectionString=$(Arcus.Worker.ServiceBus.Queue.ConnectionString)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.ServiceBus.Topic.InProcess'
projectAlias: 'arcus-az-func-servicebus-topic'
projectOptions: '--functions-worker inProcess'
ports: '$(Arcus.AzureFunctions.ServiceBus.Topic.InProcess.Port):$(Arcus.AzureFunctions.ServiceBus.Topic.InProcess.Port)'
script: |
Get-Content './Arcus.Demo.AzureFunctions.ServiceBus.Topic.InProcess/Startup.cs' -Raw |
% { $_ -replace '#error', '#warning' -replace '#if DEBUG', '#if RELEASE' } |
Set-Content './Arcus.Demo.AzureFunctions.ServiceBus.Topic.InProcess/Startup.cs'
envVars: |
ServiceBusConnectionString=$(Arcus.Worker.ServiceBus.Topic.ConnectionString)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.ServiceBus.Topic.Isolated'
projectAlias: 'arcus-az-func-servicebus-topic'
projectOptions: '--functions-worker isolated'
ports: '$(Arcus.AzureFunctions.ServiceBus.Topic.Isolated.Port):$(Arcus.AzureFunctions.ServiceBus.Topic.Isolated.Port)'
script: |
Get-Content './Arcus.Demo.AzureFunctions.ServiceBus.Topic.Isolated/Program.cs' -Raw |
Expand All @@ -175,28 +121,10 @@ stages:
envVars: |
ServiceBusConnectionString=$(Arcus.Worker.ServiceBus.Topic.ConnectionString)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.EventHubs.InProcess'
projectAlias: 'arcus-az-func-eventhubs'
projectOptions: '--functions-worker inProcess'
ports: '$(Arcus.AzureFunctions.EventHubs.InProcess.Port):$(Arcus.AzureFunctions.EventHubs.InProcess.Port)'
script: |
Get-Content './Arcus.Demo.AzureFunctions.EventHubs.InProcess/Startup.cs' -Raw |
% { $_ -replace '#error', '#warning' -replace '#if DEBUG', '#if RELEASE' } |
Set-Content './Arcus.Demo.AzureFunctions.EventHubs.InProcess/Startup.cs'
Get-Content './Arcus.Demo.AzureFunctions.EventHubs.InProcess/SensorReadingFunction.cs' -Raw |
% { $_ -replace 'sensors', '$(Arcus.EventHubs.Docker.EventHubsName)' } |
Set-Content './Arcus.Demo.AzureFunctions.EventHubs.InProcess/SensorReadingFunction.cs'
envVars: |
EventHubsConnectionString=$(Arcus.EventHubs.ConnectionString)
AzureWebJobsStorage=$(Arcus.EventHubs.BlobStorage.StorageAccountConnectionString)
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=$(Arcus.ApplicationInsights.InstrumentationKey)
- template: 'run-new-project-from-template.yml'
parameters:
projectName: 'Arcus.Demo.AzureFunctions.EventHubs.Isolated'
projectAlias: 'arcus-az-func-eventhubs'
projectOptions: '--functions-worker isolated'
ports: '$(Arcus.AzureFunctions.EventHubs.Isolated.Port):$(Arcus.AzureFunctions.EventHubs.Isolated.Port)'
script: |
Get-Content './Arcus.Demo.AzureFunctions.EventHubs.Isolated/Program.cs' -Raw |
Expand Down Expand Up @@ -238,36 +166,18 @@ stages:
targetType: 'inline'
script: 'docker logs Arcus.Demo.EventHubs'
condition: failed()
- task: PowerShell@2
displayName: 'Get Docker container logs for Arcus.Demo.AzureFunctions.EventHubs.InProcess'
inputs:
targetType: 'inline'
script: 'docker logs Arcus.Demo.AzureFunctions.EventHubs.InProcess'
condition: failed()
- task: PowerShell@2
displayName: 'Get Docker container logs for Arcus.Demo.AzureFunctions.EventHubs.Isolated'
inputs:
targetType: 'inline'
script: 'docker logs Arcus.Demo.AzureFunctions.EventHubs.Isolated'
condition: failed()
- task: PowerShell@2
displayName: 'Get Docker container logs for Arcus.Demo.AzureFunctions.ServiceBus.Topic.InProcess'
inputs:
targetType: 'inline'
script: 'docker logs Arcus.Demo.AzureFunctions.ServiceBus.Topic.InProcess'
condition: failed()
- task: PowerShell@2
displayName: 'Get Docker container logs for Arcus.Demo.AzureFunctions.ServiceBus.Topic.Isolated'
inputs:
targetType: 'inline'
script: 'docker logs Arcus.Demo.AzureFunctions.ServiceBus.Topic.Isolated'
condition: failed()
- task: PowerShell@2
displayName: 'Get Docker container logs for Arcus.Demo.AzureFunctions.InProcess.Http'
inputs:
targetType: 'inline'
script: 'docker logs Arcus.Demo.AzureFunctions.InProcess.Http'
condition: failed()
- task: PowerShell@2
displayName: 'Get Docker container logs for Arcus.Demo.AzureFunctions.Isolated.Http'
inputs:
Expand Down

0 comments on commit fdc6143

Please sign in to comment.