Skip to content

Commit

Permalink
fix imports and add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-schndr committed Nov 17, 2023
1 parent 6453188 commit ccce9dd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"path/filepath"
"strings"

"github.com/Azure/go-autorest/autorest"
"github.com/go-chi/chi/v5"
"github.com/sirupsen/logrus"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database/cosmosdb"
"github.com/Azure/ARO-RP/pkg/frontend/middleware"
"github.com/Azure/go-autorest/autorest"
)

func (f *frontend) postAdminOpenShiftDeleteManagedResource(w http.ResponseWriter, r *http.Request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"strings"
"testing"

"github.com/Azure/go-autorest/autorest"
"github.com/golang/mock/gomock"
"github.com/sirupsen/logrus"

Expand All @@ -19,7 +20,6 @@ import (
"github.com/Azure/ARO-RP/pkg/metrics/noop"
mock_adminactions "github.com/Azure/ARO-RP/pkg/util/mocks/adminactions"
testdatabase "github.com/Azure/ARO-RP/test/database"
"github.com/Azure/go-autorest/autorest"
)

func TestAdminDeleteManagedResource(t *testing.T) {
Expand Down
6 changes: 5 additions & 1 deletion pkg/frontend/adminactions/delete_managedresource.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package adminactions

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

import (
"context"
"strings"

"github.com/Azure/go-autorest/autorest/azure"

"github.com/Azure/ARO-RP/pkg/util/azureclient"
"github.com/Azure/ARO-RP/pkg/util/loadbalancer"
"github.com/Azure/go-autorest/autorest/azure"
)

func (a *azureActions) ResourceDeleteAndWait(ctx context.Context, resourceID string) error {

Check failure on line 16 in pkg/frontend/adminactions/delete_managedresource.go

View workflow job for this annotation

GitHub Actions / golangci-lint

unnecessary leading newline (whitespace)
Expand Down
3 changes: 3 additions & 0 deletions pkg/frontend/adminactions/delete_managedresource_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package adminactions

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

import (
"context"
"fmt"
Expand Down
3 changes: 3 additions & 0 deletions pkg/util/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package loadbalancer

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

import (
"fmt"
"strings"
Expand Down
3 changes: 3 additions & 0 deletions pkg/util/loadbalancer/loadbalancer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package loadbalancer

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

import (
"fmt"
"testing"
Expand Down

0 comments on commit ccce9dd

Please sign in to comment.