Skip to content

Commit 2ee579f

Browse files
authored
gofmt -s -w . (Azure#2050)
1 parent c4abb41 commit 2ee579f

File tree

52 files changed

+64
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+64
-17
lines changed

controllers/apimgmt_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || apimgmt
45
// +build all apimgmt
56

67
package controllers

controllers/appinsights_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || appinsights
45
// +build all appinsights
56

67
package controllers

controllers/appinsightsapikey_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || appinsights
45
// +build all appinsights
56

67
package controllers

controllers/azureloadbalancer_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azureloadbalancer
45
// +build all azureloadbalancer
56

67
package controllers

controllers/azurenetworkinterface_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azurenetworkinterface
45
// +build all azurenetworkinterface
56

67
package controllers

controllers/azurepublicipaddress_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azurepublicipaddress
45
// +build all azurepublicipaddress
56

67
package controllers

controllers/azuresql_combined_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || azuresqlservercombined
45
// +build all azuresqlserver azuresqlservercombined
56

67
package controllers

controllers/azuresqlaction_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || azuresqlservercombined || testaction
45
// +build all azuresqlserver azuresqlservercombined testaction
56

67
package controllers

controllers/azuresqldatabase_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || azuresqldatabase
45
// +build all azuresqlserver azuresqldatabase
56

67
package controllers

controllers/azuresqlfailovergroup_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || fog
45
// +build all azuresqlserver fog
56

67
package controllers

controllers/azuresqlfirewallrule_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlfirewall
45
// +build all azuresqlfirewall
56

67
package controllers

controllers/azuresqlmanageduser_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || azuresqluser
45
// +build all azuresqlserver azuresqluser
56

67
package controllers

controllers/azuresqlserver_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || asql
45
// +build all azuresqlserver asql
56

67
package controllers

controllers/azuresqluser_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || azuresqluser
45
// +build all azuresqlserver azuresqluser
56

67
package controllers

controllers/azurevirtualmachine_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azurevirtualmachine
45
// +build all azurevirtualmachine
56

67
package controllers

controllers/azurevirtualmachineextension_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azurevirtualmachineextension
45
// +build all azurevirtualmachineextension
56

67
package controllers

controllers/azurevmscaleset_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azurevmscaleset
45
// +build all azurevmscaleset
56

67
package controllers

controllers/azurevnetrule_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || azuresqlserver || azuresqlservercombined || testvnetrule
45
// +build all azuresqlserver azuresqlservercombined testvnetrule
56

67
package controllers

controllers/blobcontainer_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || blobcontainer
45
// +build all blobcontainer
56

67
package controllers

controllers/cosmosdb_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || cosmos
45
// +build all cosmos
56

67
package controllers

controllers/cosmosdbsqldatabase_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || cosmos
45
// +build all cosmos
56

67
package controllers

controllers/eventhub_namespace_consumergroup_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || consumergroup || eventhub || eventhubnamespace
45
// +build all consumergroup eventhub eventhubnamespace
56

67
package controllers

controllers/eventhub_storageaccount_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || eventhub || storage || blobcontainer
45
// +build all eventhub storage blobcontainer
56

67
package controllers

controllers/eventhubnamespace_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || eventhubnamespace
45
// +build all eventhubnamespace
56

67
package controllers

controllers/keyvault_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || keyvault
45
// +build all keyvault
56

67
package controllers

controllers/keyvaultkey_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || keyvaultkey
45
// +build all keyvaultkey
56

67
package controllers

controllers/mysql_combined_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysql
45
// +build all mysql
56

67
package controllers
@@ -131,7 +132,7 @@ func RunMySQLUserHappyPath(ctx context.Context, t *testing.T, mySQLServerName st
131132
Server: mySQLServerName,
132133
Roles: []string{"RELOAD", "PROCESS"},
133134
DatabaseRoles: map[string][]string{
134-
mySQLDBName: []string{"SELECT", "DELETE"},
135+
mySQLDBName: {"SELECT", "DELETE"},
135136
},
136137
Username: username,
137138
},

controllers/mysqlaaduser_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysqluser
45
// +build all mysqluser
56

67
package controllers

controllers/mysqldatabase_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysql || mysqldatabase
45
// +build all mysql mysqldatabase
56

67
package controllers

controllers/mysqlfirewallrule_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysql || mysqlfirewallrule
45
// +build all mysql mysqlfirewallrule
56

67
package controllers

controllers/mysqlserver_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysql
45
// +build all mysql
56

67
package controllers

controllers/mysqlserveradministrator_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysql || mysqlfirewallrule
45
// +build all mysql mysqlfirewallrule
56

67
package controllers

controllers/mysqluser_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysqluser
45
// +build all mysqluser
56

67
package controllers

controllers/mysqlvnetrule_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || mysql
45
// +build all mysql
56

67
package controllers

controllers/operatormode_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all
45
// +build all
56

67
package controllers

controllers/postgresql_combined_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || psql
45
// +build all psql
56

67
package controllers

controllers/postgresqldatabase_controller_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
// +build all psqldatabase
4+
//go:build all || psqldatabase
5+
// +build all psqldatabase
56

67
package controllers
78

controllers/postgresqlfirewallrule_controller_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
// +build all psqlfirewallrule
4+
//go:build all || psqlfirewallrule
5+
// +build all psqlfirewallrule
56

67
package controllers
78

controllers/postgresqlserver_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || psqlserver
45
// +build all psqlserver
56

67
package controllers

controllers/postgresqluser_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || postgresqluser
45
// +build all postgresqluser
56

67
package controllers

controllers/rediscache_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build rediscache
45
// +build rediscache
56

67
package controllers

controllers/rediscacheaction_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || rediscache
45
// +build all rediscache
56

67
package controllers

controllers/rediscachefirewallrule_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || rediscache
45
// +build all rediscache
56

67
package controllers

controllers/resourcegroup_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || resourcegroup
45
// +build all resourcegroup
56

67
package controllers

controllers/secret_naming_version_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all
45
// +build all
56

67
package controllers

controllers/storage_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || appinsights
45
// +build all appinsights
56

67
package controllers

controllers/virtualnetwork_controller_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
//go:build all || virtualnetwork
45
// +build all virtualnetwork
56

67
package controllers

0 commit comments

Comments
 (0)