File tree Expand file tree Collapse file tree 2 files changed +4
-30
lines changed
AzureAppGatewayOrchestrator/Client Expand file tree Collapse file tree 2 files changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -316,8 +316,9 @@ public IEnumerable<CurrentInventoryItem> GetAppGatewaySslCertificates()
316
316
}
317
317
catch ( Exception e )
318
318
{
319
- _logger . LogError ( $ "Error retrieving certificate from Azure Key Vault with ID { certObject . KeyVaultSecretId } : { e . Message } ") ;
320
- continue ;
319
+ string error = $ "Error retrieving certificate from Azure Key Vault with ID { certObject . KeyVaultSecretId } : { e . Message } ";
320
+ _logger . LogError ( error ) ;
321
+ throw new Exception ( error ) ;
321
322
}
322
323
}
323
324
else
Original file line number Diff line number Diff line change @@ -62,33 +62,6 @@ setup: ## Setup the environment for development
62
62
echo " PROJECT_NAME=$$ (basename $$ (dirname $$ (grep PROJECT_FILE .env | cut -d '=' -f 2)))" >> .env; \
63
63
fi
64
64
65
- .PHONY : newtest
66
- newtest : setup # # Create a new test project
67
- @source .env; \
68
- testProjectName=" $$ PROJECT_NAME" .Tests; \
69
- echo " Creating new xUnit project called $$ testProjectName" ; \
70
- dotnet new xunit -o $$ testProjectName; \
71
- dotnet sln add $$ testProjectName/$$ testProjectName.csproj; \
72
- dotnet add $$ testProjectName reference $$ PROJECT_FILE;
73
-
74
- .PHONY : installpackage
75
- installpackage : # # Install a package to the project
76
- @source .env; \
77
- echo " Select a project to install the package into" ; \
78
- PS3=" Selection: " ; \
79
- select opt in $$ (ls * /* .csproj); do \
80
- if [ -n " $$ opt" ]; then \
81
- echo " You have selected $$ opt" ; \
82
- break ; \
83
- else \
84
- echo " Invalid selection. Please try again." ; \
85
- fi ; \
86
- done ; \
87
- echo " Enter the package name to install: " ; \
88
- read packageName; \
89
- echo " Installing $$ packageName to $$ opt" ; \
90
- dotnet add $$ opt package $$ packageName;
91
-
92
65
.PHONY : testall
93
66
testall : # # Run all tests.
94
67
@source .env; \
@@ -105,7 +78,7 @@ test: ## Run a single test.
105
78
cut -d ' ' -f 5- | \
106
79
sed ' s/(.*//i' | \
107
80
sort | uniq | \
108
- fzf | \
81
+ fzf | \
109
82
xargs -I {} dotnet test --filter {} --logger " console;verbosity=detailed"
110
83
111
84
# #@ Build
You can’t perform that action at this time.
0 commit comments