diff --git a/eng/ignore-links.txt b/eng/ignore-links.txt index 43d853a55bbe..9f7cd80cd812 100644 --- a/eng/ignore-links.txt +++ b/eng/ignore-links.txt @@ -1,6 +1,5 @@ https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/testproxy/transition-scripts/generate-assets-json.ps1 -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v3 -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v4 -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices/v2 -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7 \ No newline at end of file +https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8 +https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/avs/armavs/v2 +https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3 \ No newline at end of file diff --git a/sdk/ai/azopenai/client_shared_test.go b/sdk/ai/azopenai/client_shared_test.go index 447b58878053..5412e514ac05 100644 --- a/sdk/ai/azopenai/client_shared_test.go +++ b/sdk/ai/azopenai/client_shared_test.go @@ -255,7 +255,7 @@ func newRecordingTransporter(t *testing.T) policy.Transporter { err = recording.AddHeaderRegexSanitizer("Api-Key", fakeAPIKey, "", nil) require.NoError(t, err) - err = recording.AddHeaderRegexSanitizer("Uer-Agent", "fake-user-agent", "", nil) + err = recording.AddHeaderRegexSanitizer("User-Agent", "fake-user-agent", "", nil) require.NoError(t, err) err = recording.AddURISanitizer("/openai/operations/images/00000000-AAAA-BBBB-CCCC-DDDDDDDDDDDD", "/openai/operations/images/[A-Za-z-0-9]+", nil) @@ -360,7 +360,7 @@ func getEndpoint(ev string, azure bool) string { v := getEnvVariable(ev, fakeEP) if !strings.HasSuffix(v, "/") { - // (this just makes recording replacement easier)j + // (this just makes recording replacement easier) v += "/" } diff --git a/sdk/ai/azopenai/testdata/tsp-location.yaml b/sdk/ai/azopenai/testdata/tsp-location.yaml index c51013654aa2..d4d652513fd7 100644 --- a/sdk/ai/azopenai/testdata/tsp-location.yaml +++ b/sdk/ai/azopenai/testdata/tsp-location.yaml @@ -1,4 +1,3 @@ directory: specification/cognitiveservices/OpenAI.Inference -# https://github.com/Azure/azure-rest-api-specs/pull/29182 -commit: dabebc4e3ef2794a801b4d546425b37e7cfaabdd +commit: f6fbf63641332dd06c025d995a82dc090a5f6fad repo: Azure/azure-rest-api-specs diff --git a/sdk/internal/CHANGELOG.md b/sdk/internal/CHANGELOG.md index 5395b8d236c2..58c5a323937e 100644 --- a/sdk/internal/CHANGELOG.md +++ b/sdk/internal/CHANGELOG.md @@ -1,17 +1,11 @@ # Release History -## 1.9.0 (Unreleased) +## 1.9.0 (2024-06-06) ### Features Added * Added `test/credential` package containing a credential factory for live and recorded tests and a fake credential for offline tests. -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.8.0 (2024-05-09) ### Breaking Changes diff --git a/sdk/messaging/azwebpubsub/CHANGELOG.md b/sdk/messaging/azwebpubsub/CHANGELOG.md index 570a992dc42d..2a2f4284fed1 100644 --- a/sdk/messaging/azwebpubsub/CHANGELOG.md +++ b/sdk/messaging/azwebpubsub/CHANGELOG.md @@ -1,6 +1,16 @@ # Release History -## 0.1.0 (2024-03-05) +## 0.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 0.1.0 (2024-02-27) ### Features Added diff --git a/sdk/messaging/azwebpubsub/internal/version.go b/sdk/messaging/azwebpubsub/internal/version.go index e0cba87ea360..b38d5b9c46ef 100644 --- a/sdk/messaging/azwebpubsub/internal/version.go +++ b/sdk/messaging/azwebpubsub/internal/version.go @@ -14,5 +14,5 @@ const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/messaging/azwebpubsub" // ModuleVersion is the semantic version (see http://semver.org) of this module. - ModuleVersion = "v0.1.0" + ModuleVersion = "v0.1.1" ) diff --git a/sdk/monitor/query/azmetrics/README.md b/sdk/monitor/query/azmetrics/README.md index b223e5827f69..944178ec0ab3 100644 --- a/sdk/monitor/query/azmetrics/README.md +++ b/sdk/monitor/query/azmetrics/README.md @@ -51,6 +51,8 @@ Each set of metric values is a time series with the following characteristics: - The value itself - Some metrics may have multiple dimensions as described in [multi-dimensional metrics][multi-metrics]. Custom metrics can have up to 10 dimensions. +To discover the metrics available to query, please reference the [supported metrics documentation][supported_metrics]. The documentation also describes important details like the valid unit, aggregation, and time grain for each metric. + ## Examples Get started with our [examples][examples]. diff --git a/sdk/resourcemanager/advisor/armadvisor/advisor_live_test.go b/sdk/resourcemanager/advisor/armadvisor/advisor_live_test.go index f5a223c9e1ff..924cc3e32896 100644 --- a/sdk/resourcemanager/advisor/armadvisor/advisor_live_test.go +++ b/sdk/resourcemanager/advisor/armadvisor/advisor_live_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type AdvisorTestSuite struct { } func (testsuite *AdvisorTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/advisor/armadvisor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *AdvisorTestSuite) TearDownSuite() { } func TestAdvisorTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AdvisorTestSuite)) } diff --git a/sdk/resourcemanager/advisor/armadvisor/assets.json b/sdk/resourcemanager/advisor/armadvisor/assets.json index 99475dd03931..4b4e68b30461 100644 --- a/sdk/resourcemanager/advisor/armadvisor/assets.json +++ b/sdk/resourcemanager/advisor/armadvisor/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/advisor/armadvisor", - "Tag": "go/resourcemanager/advisor/armadvisor_46f954b727" + "Tag": "go/resourcemanager/advisor/armadvisor_2b0059cbf3" } diff --git a/sdk/resourcemanager/advisor/armadvisor/ci.yml b/sdk/resourcemanager/advisor/armadvisor/ci.yml index 26e635079ac9..69c002949cc2 100644 --- a/sdk/resourcemanager/advisor/armadvisor/ci.yml +++ b/sdk/resourcemanager/advisor/armadvisor/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/advisor/armadvisor' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/advisor/armadvisor/go.mod b/sdk/resourcemanager/advisor/armadvisor/go.mod index 7118297edeaf..a4baad4f9a52 100644 --- a/sdk/resourcemanager/advisor/armadvisor/go.mod +++ b/sdk/resourcemanager/advisor/armadvisor/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/advisor/armadvisor/go.sum b/sdk/resourcemanager/advisor/armadvisor/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/advisor/armadvisor/go.sum +++ b/sdk/resourcemanager/advisor/armadvisor/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/advisor/armadvisor/utils_test.go b/sdk/resourcemanager/advisor/armadvisor/utils_test.go new file mode 100644 index 000000000000..f1ad9a702fec --- /dev/null +++ b/sdk/resourcemanager/advisor/armadvisor/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armadvisor_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/advisor/armadvisor/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/alertsmanagement_live_test.go b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/alertsmanagement_live_test.go index d0f97520f81f..7690a7f1928b 100644 --- a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/alertsmanagement_live_test.go +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/alertsmanagement_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type AlertsManagementTestSuite struct { } func (testsuite *AlertsManagementTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/alertsmanagement/armalertsmanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *AlertsManagementTestSuite) TearDownSuite() { } func TestAlertsManagementTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AlertsManagementTestSuite)) } diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/assets.json b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/assets.json index 549e6517fb1f..a1dd253f8da4 100644 --- a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/assets.json +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/alertsmanagement/armalertsmanagement", - "Tag": "go/resourcemanager/alertsmanagement/armalertsmanagement_aa22f99525" + "Tag": "go/resourcemanager/alertsmanagement/armalertsmanagement_a96048a84d" } diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/ci.yml b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/ci.yml index 985a0d31005e..d9e3934fe9ae 100644 --- a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/ci.yml +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/alertsmanagement/armalertsmanagement' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.mod b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.mod index 73c12f6b5827..35df02217a0a 100644 --- a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.mod +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.sum b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.sum +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/utils_test.go b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/utils_test.go new file mode 100644 index 000000000000..4374666768b0 --- /dev/null +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armalertsmanagement_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/alertsmanagement/armalertsmanagement/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/analysisservices_live_test.go b/sdk/resourcemanager/analysisservices/armanalysisservices/analysisservices_live_test.go index 303eb2a586cf..e047257d73b7 100644 --- a/sdk/resourcemanager/analysisservices/armanalysisservices/analysisservices_live_test.go +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/analysisservices_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/armanalysisservices" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type AnalysisservicesTestSuite struct { } func (testsuite *AnalysisservicesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/analysisservices/armanalysisservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -55,9 +55,6 @@ func (testsuite *AnalysisservicesTestSuite) TearDownSuite() { } func TestAnalysisservicesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AnalysisservicesTestSuite)) } diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/assets.json b/sdk/resourcemanager/analysisservices/armanalysisservices/assets.json index ae26c9677182..64e8adbd8a09 100644 --- a/sdk/resourcemanager/analysisservices/armanalysisservices/assets.json +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/analysisservices/armanalysisservices", - "Tag": "go/resourcemanager/analysisservices/armanalysisservices_9ce7891cff" + "Tag": "go/resourcemanager/analysisservices/armanalysisservices_7b9521f358" } diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/ci.yml b/sdk/resourcemanager/analysisservices/armanalysisservices/ci.yml index 00ddaffac6e1..6edb0c8ba4b5 100644 --- a/sdk/resourcemanager/analysisservices/armanalysisservices/ci.yml +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/analysisservices/armanalysisservices' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/go.mod b/sdk/resourcemanager/analysisservices/armanalysisservices/go.mod index 87bc6b6f7f46..ca43fa02e192 100644 --- a/sdk/resourcemanager/analysisservices/armanalysisservices/go.mod +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/go.sum b/sdk/resourcemanager/analysisservices/armanalysisservices/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/analysisservices/armanalysisservices/go.sum +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/utils_test.go b/sdk/resourcemanager/analysisservices/armanalysisservices/utils_test.go new file mode 100644 index 000000000000..4fe500f7867d --- /dev/null +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armanalysisservices_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/analysisservices/armanalysisservices/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/apicenter/armapicenter/apicenter_live_test.go b/sdk/resourcemanager/apicenter/armapicenter/apicenter_live_test.go index 324a7426f916..f2d03a654163 100644 --- a/sdk/resourcemanager/apicenter/armapicenter/apicenter_live_test.go +++ b/sdk/resourcemanager/apicenter/armapicenter/apicenter_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apicenter/armapicenter" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -42,7 +42,7 @@ type ApicenterTestSuite struct { } func (testsuite *ApicenterTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apicenter/armapicenter/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -73,9 +73,6 @@ func (testsuite *ApicenterTestSuite) TearDownSuite() { } func TestApicenterTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApicenterTestSuite)) } diff --git a/sdk/resourcemanager/apicenter/armapicenter/assets.json b/sdk/resourcemanager/apicenter/armapicenter/assets.json index 7c15771a82d8..9f618baaad46 100644 --- a/sdk/resourcemanager/apicenter/armapicenter/assets.json +++ b/sdk/resourcemanager/apicenter/armapicenter/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/apicenter/armapicenter", - "Tag": "go/resourcemanager/apicenter/armapicenter_13a0eda9fe" + "Tag": "go/resourcemanager/apicenter/armapicenter_4b1dd6f714" } diff --git a/sdk/resourcemanager/apicenter/armapicenter/ci.yml b/sdk/resourcemanager/apicenter/armapicenter/ci.yml index d4c643688e26..ef8cbf4f16d7 100644 --- a/sdk/resourcemanager/apicenter/armapicenter/ci.yml +++ b/sdk/resourcemanager/apicenter/armapicenter/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/apicenter/armapicenter' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/apicenter/armapicenter/go.mod b/sdk/resourcemanager/apicenter/armapicenter/go.mod index 2d0234552ae2..7c396a03a0d1 100644 --- a/sdk/resourcemanager/apicenter/armapicenter/go.mod +++ b/sdk/resourcemanager/apicenter/armapicenter/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/apicenter/armapicenter/go.sum b/sdk/resourcemanager/apicenter/armapicenter/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/apicenter/armapicenter/go.sum +++ b/sdk/resourcemanager/apicenter/armapicenter/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/apicenter/armapicenter/utils_test.go b/sdk/resourcemanager/apicenter/armapicenter/utils_test.go new file mode 100644 index 000000000000..6dae841e2d69 --- /dev/null +++ b/sdk/resourcemanager/apicenter/armapicenter/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armapicenter_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/apicenter/armapicenter/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimapis_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimapis_live_test.go index e50b4c2aa987..3a9208eca241 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimapis_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimapis_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -44,7 +44,7 @@ type ApimapisTestSuite struct { } func (testsuite *ApimapisTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.operationId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "operationi", 16, false) @@ -77,9 +77,6 @@ func (testsuite *ApimapisTestSuite) TearDownSuite() { } func TestApimapisTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimapisTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimapiversionsets_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimapiversionsets_live_test.go index 7fceab10a912..ad166c423537 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimapiversionsets_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimapiversionsets_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimapiversionsetsTestSuite struct { } func (testsuite *ApimapiversionsetsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "serviceapiversionsets", 27, false) @@ -56,9 +56,6 @@ func (testsuite *ApimapiversionsetsTestSuite) TearDownSuite() { } func TestApimapiversionsetsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimapiversionsetsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimauthorizationservers_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimauthorizationservers_live_test.go index 27cfe4bcf186..53d87551e1ae 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimauthorizationservers_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimauthorizationservers_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimauthorizationserversTestSuite struct { } func (testsuite *ApimauthorizationserversTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.authsid, _ = recording.GenerateAlphaNumericID(testsuite.T(), "authsid", 13, false) @@ -56,9 +56,6 @@ func (testsuite *ApimauthorizationserversTestSuite) TearDownSuite() { } func TestApimauthorizationserversTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimauthorizationserversTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimcaches_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimcaches_live_test.go index 95988d9378e6..7769b3edaf46 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimcaches_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimcaches_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimcachesTestSuite struct { } func (testsuite *ApimcachesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.cacheId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "cacheid", 13, false) @@ -56,9 +56,6 @@ func (testsuite *ApimcachesTestSuite) TearDownSuite() { } func TestApimcachesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimcachesTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimdeployment_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimdeployment_live_test.go index 16d86145185b..00ea15c99d18 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimdeployment_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimdeployment_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ApimdeploymentTestSuite struct { } func (testsuite *ApimdeploymentTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "servicedeploy", 19, false) @@ -53,9 +53,6 @@ func (testsuite *ApimdeploymentTestSuite) TearDownSuite() { } func TestApimdeploymentTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimdeploymentTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimgateways_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimgateways_live_test.go index 53037c143159..509584393039 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimgateways_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimgateways_live_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type ApimgatewaysTestSuite struct { } func (testsuite *ApimgatewaysTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.gatewayId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "gatewayid", 15, false) @@ -60,9 +60,6 @@ func (testsuite *ApimgatewaysTestSuite) TearDownSuite() { } func TestApimgatewaysTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimgatewaysTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimgroups_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimgroups_live_test.go index 7e281cabdb21..c9c06b2a4aad 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimgroups_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimgroups_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimgroupsTestSuite struct { } func (testsuite *ApimgroupsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.groupId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "groupid", 13, false) @@ -56,9 +56,6 @@ func (testsuite *ApimgroupsTestSuite) TearDownSuite() { } func TestApimgroupsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimgroupsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimidentityprovider_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimidentityprovider_live_test.go index 10ab1b2ad488..5a6763b95444 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimidentityprovider_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimidentityprovider_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type ApimidentityproviderTestSuite struct { } func (testsuite *ApimidentityproviderTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "serviceidentity", 21, false) @@ -60,9 +60,6 @@ func (testsuite *ApimidentityproviderTestSuite) TearDownSuite() { } func TestApimidentityproviderTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimidentityproviderTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimnamedvalues_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimnamedvalues_live_test.go index 7b0b15e4652a..394e5d4bf386 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimnamedvalues_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimnamedvalues_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimnamedvaluesTestSuite struct { } func (testsuite *ApimnamedvaluesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.namedValueId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "namedvalue", 16, false) @@ -56,9 +56,6 @@ func (testsuite *ApimnamedvaluesTestSuite) TearDownSuite() { } func TestApimnamedvaluesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimnamedvaluesTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimnotifications_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimnotifications_live_test.go index 881b214c60d2..a6d6aeac09fa 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimnotifications_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimnotifications_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type ApimnotificationsTestSuite struct { } func (testsuite *ApimnotificationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.email, _ = recording.GenerateAlphaNumericID(testsuite.T(), "email", 11, false) @@ -58,9 +58,6 @@ func (testsuite *ApimnotificationsTestSuite) TearDownSuite() { } func TestApimnotificationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimnotificationsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimopenidconnectproviders_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimopenidconnectproviders_live_test.go index d20a330eae4d..1dd3d9932031 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimopenidconnectproviders_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimopenidconnectproviders_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimopenidconnectprovidersTestSuite struct { } func (testsuite *ApimopenidconnectprovidersTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.opid, _ = recording.GenerateAlphaNumericID(testsuite.T(), "opid", 10, false) @@ -56,9 +56,6 @@ func (testsuite *ApimopenidconnectprovidersTestSuite) TearDownSuite() { } func TestApimopenidconnectprovidersTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimopenidconnectprovidersTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimpolicies_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimpolicies_live_test.go index dbf7f5aba452..628781c1142a 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimpolicies_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimpolicies_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ApimpoliciesTestSuite struct { } func (testsuite *ApimpoliciesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "servicepolicy", 19, false) @@ -54,9 +54,6 @@ func (testsuite *ApimpoliciesTestSuite) TearDownSuite() { } func TestApimpoliciesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimpoliciesTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimportalrevisions_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimportalrevisions_live_test.go index 54787dfa3945..dc65b5f299fc 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimportalrevisions_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimportalrevisions_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimportalrevisionsTestSuite struct { } func (testsuite *ApimportalrevisionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.portalRevisionId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "portalrevi", 16, false) @@ -56,9 +56,6 @@ func (testsuite *ApimportalrevisionsTestSuite) TearDownSuite() { } func TestApimportalrevisionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimportalrevisionsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimportalsettings_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimportalsettings_live_test.go index 1ff4423eb4ab..3a8623fa325c 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimportalsettings_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimportalsettings_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ApimportalsettingsTestSuite struct { } func (testsuite *ApimportalsettingsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "servicesetting", 20, false) @@ -54,9 +54,6 @@ func (testsuite *ApimportalsettingsTestSuite) TearDownSuite() { } func TestApimportalsettingsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimportalsettingsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimprivatelink_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimprivatelink_live_test.go index 94624f1c1ffc..0a2375415d93 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimprivatelink_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimprivatelink_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type ApimprivatelinkTestSuite struct { } func (testsuite *ApimprivatelinkTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.privateEndpointConnectionName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "apimprivateendpoint", 25, false) @@ -60,9 +60,6 @@ func (testsuite *ApimprivatelinkTestSuite) TearDownSuite() { } func TestApimprivatelinkTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimprivatelinkTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimproducts_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimproducts_live_test.go index edae9d703c47..03d13a4189fd 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimproducts_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimproducts_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type ApimproductsTestSuite struct { } func (testsuite *ApimproductsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.apiId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "productapiid", 18, false) @@ -63,9 +63,6 @@ func (testsuite *ApimproductsTestSuite) TearDownSuite() { } func TestApimproductsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimproductsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimreports_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimreports_live_test.go index 9feb601c12bc..23935ef40a41 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimreports_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimreports_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ApimreportsTestSuite struct { } func (testsuite *ApimreportsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "servicereports", 20, false) @@ -54,9 +54,6 @@ func (testsuite *ApimreportsTestSuite) TearDownSuite() { } func TestApimreportsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimreportsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimschema_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimschema_live_test.go index 3a330924012a..b7fa76b307d1 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimschema_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimschema_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimschemaTestSuite struct { } func (testsuite *ApimschemaTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.schemaId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "globalschemaid", 20, false) @@ -56,9 +56,6 @@ func (testsuite *ApimschemaTestSuite) TearDownSuite() { } func TestApimschemaTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimschemaTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimsubscriptions_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimsubscriptions_live_test.go index f69a69cefe6c..29f88de853ed 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimsubscriptions_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimsubscriptions_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type ApimsubscriptionsTestSuite struct { } func (testsuite *ApimsubscriptionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.productId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "subproductid", 18, false) @@ -59,9 +59,6 @@ func (testsuite *ApimsubscriptionsTestSuite) TearDownSuite() { } func TestApimsubscriptionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimsubscriptionsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimtags_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimtags_live_test.go index b31bf7f1edb8..47124ee874b8 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimtags_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimtags_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimtagsTestSuite struct { } func (testsuite *ApimtagsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "servicetags", 17, false) @@ -56,9 +56,6 @@ func (testsuite *ApimtagsTestSuite) TearDownSuite() { } func TestApimtagsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimtagsTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimtenant_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimtenant_live_test.go index aa8d95d3e9ef..b36e07cb681a 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimtenant_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimtenant_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ApimtenantTestSuite struct { } func (testsuite *ApimtenantTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "servicetenant", 19, false) @@ -54,9 +54,6 @@ func (testsuite *ApimtenantTestSuite) TearDownSuite() { } func TestApimtenantTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimtenantTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/apimusers_live_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/apimusers_live_test.go index 98e113d7d1f5..96861455ff80 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/apimusers_live_test.go +++ b/sdk/resourcemanager/apimanagement/armapimanagement/apimusers_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ApimusersTestSuite struct { } func (testsuite *ApimusersTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/apimanagement/armapimanagement/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.serviceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "serviceuser", 17, false) @@ -56,9 +56,6 @@ func (testsuite *ApimusersTestSuite) TearDownSuite() { } func TestApimusersTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApimusersTestSuite)) } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/assets.json b/sdk/resourcemanager/apimanagement/armapimanagement/assets.json index 4dd1ba3fbf13..c76639333eb6 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/assets.json +++ b/sdk/resourcemanager/apimanagement/armapimanagement/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/apimanagement/armapimanagement", - "Tag": "go/resourcemanager/apimanagement/armapimanagement_038009015c" + "Tag": "go/resourcemanager/apimanagement/armapimanagement_48ef0d88df" } diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/ci.yml b/sdk/resourcemanager/apimanagement/armapimanagement/ci.yml index 50d503cf4ad2..d34b186f059b 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/ci.yml +++ b/sdk/resourcemanager/apimanagement/armapimanagement/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/apimanagement/armapimanagement' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/go.mod b/sdk/resourcemanager/apimanagement/armapimanagement/go.mod index 90c9d960edef..01a0aface52a 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/go.mod +++ b/sdk/resourcemanager/apimanagement/armapimanagement/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/go.sum b/sdk/resourcemanager/apimanagement/armapimanagement/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/go.sum +++ b/sdk/resourcemanager/apimanagement/armapimanagement/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/utils_test.go b/sdk/resourcemanager/apimanagement/armapimanagement/utils_test.go new file mode 100644 index 000000000000..9f0638ea64d4 --- /dev/null +++ b/sdk/resourcemanager/apimanagement/armapimanagement/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armapimanagement_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/apimanagement/armapimanagement/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/appconfiguration/armappconfiguration/appconfiguration_live_test.go b/sdk/resourcemanager/appconfiguration/armappconfiguration/appconfiguration_live_test.go index 8aa1c1634c9c..9b94d744a679 100644 --- a/sdk/resourcemanager/appconfiguration/armappconfiguration/appconfiguration_live_test.go +++ b/sdk/resourcemanager/appconfiguration/armappconfiguration/appconfiguration_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type AppconfigurationTestSuite struct { } func (testsuite *AppconfigurationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/appconfiguration/armappconfiguration/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -63,9 +63,6 @@ func (testsuite *AppconfigurationTestSuite) TearDownSuite() { } func TestAppconfigurationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AppconfigurationTestSuite)) } diff --git a/sdk/resourcemanager/appconfiguration/armappconfiguration/assets.json b/sdk/resourcemanager/appconfiguration/armappconfiguration/assets.json index fb5f4ebd7725..0a648a72303c 100644 --- a/sdk/resourcemanager/appconfiguration/armappconfiguration/assets.json +++ b/sdk/resourcemanager/appconfiguration/armappconfiguration/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/appconfiguration/armappconfiguration", - "Tag": "go/resourcemanager/appconfiguration/armappconfiguration_99e0592a1e" + "Tag": "go/resourcemanager/appconfiguration/armappconfiguration_7bfb1cf27c" } diff --git a/sdk/resourcemanager/appconfiguration/armappconfiguration/ci.yml b/sdk/resourcemanager/appconfiguration/armappconfiguration/ci.yml index a78406b33ad0..c6ce281829b8 100644 --- a/sdk/resourcemanager/appconfiguration/armappconfiguration/ci.yml +++ b/sdk/resourcemanager/appconfiguration/armappconfiguration/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/appconfiguration/armappconfiguration' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/appconfiguration/armappconfiguration/go.mod b/sdk/resourcemanager/appconfiguration/armappconfiguration/go.mod index 1c3a4e75b627..411bbd110e40 100644 --- a/sdk/resourcemanager/appconfiguration/armappconfiguration/go.mod +++ b/sdk/resourcemanager/appconfiguration/armappconfiguration/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/appconfiguration/armappconfiguration/go.sum b/sdk/resourcemanager/appconfiguration/armappconfiguration/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/appconfiguration/armappconfiguration/go.sum +++ b/sdk/resourcemanager/appconfiguration/armappconfiguration/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/appconfiguration/armappconfiguration/utils_test.go b/sdk/resourcemanager/appconfiguration/armappconfiguration/utils_test.go new file mode 100644 index 000000000000..a15c46919f4a --- /dev/null +++ b/sdk/resourcemanager/appconfiguration/armappconfiguration/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armappconfiguration_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/appconfiguration/armappconfiguration/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/appplatform/armappplatform/appplatform_live_test.go b/sdk/resourcemanager/appplatform/armappplatform/appplatform_live_test.go index cedad6b52f07..3eab4a39e5f1 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/appplatform_live_test.go +++ b/sdk/resourcemanager/appplatform/armappplatform/appplatform_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type AppplatformTestSuite struct { } func (testsuite *AppplatformTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/appplatform/armappplatform/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *AppplatformTestSuite) TearDownSuite() { } func TestAppplatformTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AppplatformTestSuite)) } diff --git a/sdk/resourcemanager/appplatform/armappplatform/assets.json b/sdk/resourcemanager/appplatform/armappplatform/assets.json index b49a3628cd36..172c40a839af 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/assets.json +++ b/sdk/resourcemanager/appplatform/armappplatform/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/appplatform/armappplatform", - "Tag": "go/resourcemanager/appplatform/armappplatform_30c0c07f2b" + "Tag": "go/resourcemanager/appplatform/armappplatform_1edc3822a7" } diff --git a/sdk/resourcemanager/appplatform/armappplatform/ci.yml b/sdk/resourcemanager/appplatform/armappplatform/ci.yml index 630620366cfc..9e9b8cf87248 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/ci.yml +++ b/sdk/resourcemanager/appplatform/armappplatform/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/appplatform/armappplatform' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/appplatform/armappplatform/configservices_live_test.go b/sdk/resourcemanager/appplatform/armappplatform/configservices_live_test.go index 44a32bd15ce8..c84569d92ab0 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/configservices_live_test.go +++ b/sdk/resourcemanager/appplatform/armappplatform/configservices_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ConfigservicesTestSuite struct { } func (testsuite *ConfigservicesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/appplatform/armappplatform/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *ConfigservicesTestSuite) TearDownSuite() { } func TestConfigservicesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ConfigservicesTestSuite)) } diff --git a/sdk/resourcemanager/appplatform/armappplatform/go.mod b/sdk/resourcemanager/appplatform/armappplatform/go.mod index e290cc0b5070..e9f3c8612386 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/go.mod +++ b/sdk/resourcemanager/appplatform/armappplatform/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/appplatform/armappplatform/go.sum b/sdk/resourcemanager/appplatform/armappplatform/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/go.sum +++ b/sdk/resourcemanager/appplatform/armappplatform/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/appplatform/armappplatform/utils_test.go b/sdk/resourcemanager/appplatform/armappplatform/utils_test.go new file mode 100644 index 000000000000..e00302b63e60 --- /dev/null +++ b/sdk/resourcemanager/appplatform/armappplatform/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armappplatform_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/appplatform/armappplatform/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/attestation/armattestation/assets.json b/sdk/resourcemanager/attestation/armattestation/assets.json index 546309386b11..f36e8b4819f2 100644 --- a/sdk/resourcemanager/attestation/armattestation/assets.json +++ b/sdk/resourcemanager/attestation/armattestation/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/attestation/armattestation", - "Tag": "go/resourcemanager/attestation/armattestation_fd64689e3c" + "Tag": "go/resourcemanager/attestation/armattestation_2dd36fd171" } diff --git a/sdk/resourcemanager/attestation/armattestation/attestation_live_test.go b/sdk/resourcemanager/attestation/armattestation/attestation_live_test.go index bb2aa38885fa..f3f8dacf44ea 100644 --- a/sdk/resourcemanager/attestation/armattestation/attestation_live_test.go +++ b/sdk/resourcemanager/attestation/armattestation/attestation_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/attestation/armattestation" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type AttestationTestSuite struct { } func (testsuite *AttestationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/attestation/armattestation/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *AttestationTestSuite) TearDownSuite() { } func TestAttestationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AttestationTestSuite)) } diff --git a/sdk/resourcemanager/attestation/armattestation/ci.yml b/sdk/resourcemanager/attestation/armattestation/ci.yml index ae4cf1636688..1ee84d4c9f69 100644 --- a/sdk/resourcemanager/attestation/armattestation/ci.yml +++ b/sdk/resourcemanager/attestation/armattestation/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/attestation/armattestation' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/attestation/armattestation/go.mod b/sdk/resourcemanager/attestation/armattestation/go.mod index 6bcb6882f967..8150e27cca6c 100644 --- a/sdk/resourcemanager/attestation/armattestation/go.mod +++ b/sdk/resourcemanager/attestation/armattestation/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/attestation/armattestation/go.sum b/sdk/resourcemanager/attestation/armattestation/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/attestation/armattestation/go.sum +++ b/sdk/resourcemanager/attestation/armattestation/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/attestation/armattestation/utils_test.go b/sdk/resourcemanager/attestation/armattestation/utils_test.go new file mode 100644 index 000000000000..0273861348cf --- /dev/null +++ b/sdk/resourcemanager/attestation/armattestation/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armattestation_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/attestation/armattestation/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/batch/armbatch/assets.json b/sdk/resourcemanager/batch/armbatch/assets.json index b5ef8a54ff1e..44391201f103 100644 --- a/sdk/resourcemanager/batch/armbatch/assets.json +++ b/sdk/resourcemanager/batch/armbatch/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/batch/armbatch", - "Tag": "go/resourcemanager/batch/armbatch_66d4b27392" + "Tag": "go/resourcemanager/batch/armbatch_4f9e698270" } diff --git a/sdk/resourcemanager/batch/armbatch/batchmanagement_live_test.go b/sdk/resourcemanager/batch/armbatch/batchmanagement_live_test.go index aceead805e8e..68996147f434 100644 --- a/sdk/resourcemanager/batch/armbatch/batchmanagement_live_test.go +++ b/sdk/resourcemanager/batch/armbatch/batchmanagement_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -40,7 +40,7 @@ type BatchManagementTestSuite struct { } func (testsuite *BatchManagementTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/batch/armbatch/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -66,9 +66,6 @@ func (testsuite *BatchManagementTestSuite) TearDownSuite() { } func TestBatchManagementTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(BatchManagementTestSuite)) } diff --git a/sdk/resourcemanager/batch/armbatch/ci.yml b/sdk/resourcemanager/batch/armbatch/ci.yml index 42608969eff3..1b4153325cd1 100644 --- a/sdk/resourcemanager/batch/armbatch/ci.yml +++ b/sdk/resourcemanager/batch/armbatch/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/batch/armbatch' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/batch/armbatch/go.mod b/sdk/resourcemanager/batch/armbatch/go.mod index a16495f0df05..76656db0c31e 100644 --- a/sdk/resourcemanager/batch/armbatch/go.mod +++ b/sdk/resourcemanager/batch/armbatch/go.mod @@ -5,9 +5,9 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch v1.2.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -17,7 +17,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/batch/armbatch/go.sum b/sdk/resourcemanager/batch/armbatch/go.sum index 5bca2f098421..d6c8c51a771e 100644 --- a/sdk/resourcemanager/batch/armbatch/go.sum +++ b/sdk/resourcemanager/batch/armbatch/go.sum @@ -2,18 +2,18 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch v1.2.1 h1:IdXgoDe3cTMEGXpaW1Y9sLNRhY4iy0Ul2rXGRfMlWLI= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch v1.2.1/go.mod h1:CHiiIYxbQfbFdCvAgmJ5/Ivp+s4tz+dQ9nO0Z7InRZY= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -22,7 +22,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/batch/armbatch/utils_test.go b/sdk/resourcemanager/batch/armbatch/utils_test.go new file mode 100644 index 000000000000..1ba15c1ede30 --- /dev/null +++ b/sdk/resourcemanager/batch/armbatch/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armbatch_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/batch/armbatch/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/botservice/armbotservice/assets.json b/sdk/resourcemanager/botservice/armbotservice/assets.json index 0fc726d7299b..aec8983956b0 100644 --- a/sdk/resourcemanager/botservice/armbotservice/assets.json +++ b/sdk/resourcemanager/botservice/armbotservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/botservice/armbotservice", - "Tag": "go/resourcemanager/botservice/armbotservice_ef1ce590df" + "Tag": "go/resourcemanager/botservice/armbotservice_0ac0833bc9" } diff --git a/sdk/resourcemanager/botservice/armbotservice/botservice_live_test.go b/sdk/resourcemanager/botservice/armbotservice/botservice_live_test.go index f0ea88b66aed..6ded9ffa990b 100644 --- a/sdk/resourcemanager/botservice/armbotservice/botservice_live_test.go +++ b/sdk/resourcemanager/botservice/armbotservice/botservice_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type BotserviceTestSuite struct { } func (testsuite *BotserviceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/botservice/armbotservice/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *BotserviceTestSuite) TearDownSuite() { } func TestBotserviceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(BotserviceTestSuite)) } diff --git a/sdk/resourcemanager/botservice/armbotservice/ci.yml b/sdk/resourcemanager/botservice/armbotservice/ci.yml index 49f6951fbfd1..69beb1876b4b 100644 --- a/sdk/resourcemanager/botservice/armbotservice/ci.yml +++ b/sdk/resourcemanager/botservice/armbotservice/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/botservice/armbotservice' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/botservice/armbotservice/go.mod b/sdk/resourcemanager/botservice/armbotservice/go.mod index 2a9714138583..25ed1215e5fe 100644 --- a/sdk/resourcemanager/botservice/armbotservice/go.mod +++ b/sdk/resourcemanager/botservice/armbotservice/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/botservice/armbotservice/go.sum b/sdk/resourcemanager/botservice/armbotservice/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/botservice/armbotservice/go.sum +++ b/sdk/resourcemanager/botservice/armbotservice/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/botservice/armbotservice/utils_test.go b/sdk/resourcemanager/botservice/armbotservice/utils_test.go new file mode 100644 index 000000000000..6ebfa3b0112f --- /dev/null +++ b/sdk/resourcemanager/botservice/armbotservice/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armbotservice_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/botservice/armbotservice/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/cdn/armcdn/afdx_live_test.go b/sdk/resourcemanager/cdn/armcdn/afdx_live_test.go index 44352a586513..842031b0553f 100644 --- a/sdk/resourcemanager/cdn/armcdn/afdx_live_test.go +++ b/sdk/resourcemanager/cdn/armcdn/afdx_live_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -42,7 +42,7 @@ type AfdxTestSuite struct { } func (testsuite *AfdxTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cdn/armcdn/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -71,9 +71,6 @@ func (testsuite *AfdxTestSuite) TearDownSuite() { } func TestAfdxTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AfdxTestSuite)) } diff --git a/sdk/resourcemanager/cdn/armcdn/assets.json b/sdk/resourcemanager/cdn/armcdn/assets.json index 2a0eb6f82a66..3f80be40726f 100644 --- a/sdk/resourcemanager/cdn/armcdn/assets.json +++ b/sdk/resourcemanager/cdn/armcdn/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/cdn/armcdn", - "Tag": "go/resourcemanager/cdn/armcdn_886242a335" + "Tag": "go/resourcemanager/cdn/armcdn_f60035c922" } diff --git a/sdk/resourcemanager/cdn/armcdn/cdn_live_test.go b/sdk/resourcemanager/cdn/armcdn/cdn_live_test.go index 37579b6d2016..fee71e1d9bfa 100644 --- a/sdk/resourcemanager/cdn/armcdn/cdn_live_test.go +++ b/sdk/resourcemanager/cdn/armcdn/cdn_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type CdnTestSuite struct { } func (testsuite *CdnTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cdn/armcdn/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -63,9 +63,6 @@ func (testsuite *CdnTestSuite) TearDownSuite() { } func TestCdnTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CdnTestSuite)) } diff --git a/sdk/resourcemanager/cdn/armcdn/ci.yml b/sdk/resourcemanager/cdn/armcdn/ci.yml index 29cbff2ef350..cd59c8fee8c2 100644 --- a/sdk/resourcemanager/cdn/armcdn/ci.yml +++ b/sdk/resourcemanager/cdn/armcdn/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/cdn/armcdn' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/cdn/armcdn/go.mod b/sdk/resourcemanager/cdn/armcdn/go.mod index 4295afe701a5..842cd9ea2130 100644 --- a/sdk/resourcemanager/cdn/armcdn/go.mod +++ b/sdk/resourcemanager/cdn/armcdn/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/cdn/armcdn/go.sum b/sdk/resourcemanager/cdn/armcdn/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/cdn/armcdn/go.sum +++ b/sdk/resourcemanager/cdn/armcdn/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/cdn/armcdn/utils_test.go b/sdk/resourcemanager/cdn/armcdn/utils_test.go new file mode 100644 index 000000000000..8023197e69aa --- /dev/null +++ b/sdk/resourcemanager/cdn/armcdn/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcdn_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/cdn/armcdn/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/assets.json b/sdk/resourcemanager/changeanalysis/armchangeanalysis/assets.json index 35db31e94fb5..809c86eed61b 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/assets.json +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/changeanalysis/armchangeanalysis", - "Tag": "go/resourcemanager/changeanalysis/armchangeanalysis_fa56bf877d" + "Tag": "go/resourcemanager/changeanalysis/armchangeanalysis_67deb45e78" } diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/changeanalysis_live_test.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/changeanalysis_live_test.go index f5ac9f621dd3..d842990fed57 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/changeanalysis_live_test.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/changeanalysis_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/changeanalysis/armchangeanalysis" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type ChangeanalysisTestSuite struct { } func (testsuite *ChangeanalysisTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/changeanalysis/armchangeanalysis/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *ChangeanalysisTestSuite) TearDownSuite() { } func TestChangeanalysisTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ChangeanalysisTestSuite)) } diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ci.yml b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ci.yml index 32121de922c0..4e0843455658 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ci.yml +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/changeanalysis/armchangeanalysis' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.mod b/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.mod index 25e3fe9d564d..c8f534a0d1bc 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.mod +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.sum b/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.sum +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/utils_test.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/utils_test.go new file mode 100644 index 000000000000..920b567af61d --- /dev/null +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armchangeanalysis_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/changeanalysis/armchangeanalysis/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/chaos/armchaos/assets.json b/sdk/resourcemanager/chaos/armchaos/assets.json index 12204fbc7eee..34af5da13593 100644 --- a/sdk/resourcemanager/chaos/armchaos/assets.json +++ b/sdk/resourcemanager/chaos/armchaos/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/chaos/armchaos", - "Tag": "go/resourcemanager/chaos/armchaos_79f5325349" + "Tag": "go/resourcemanager/chaos/armchaos_cb54da0c82" } diff --git a/sdk/resourcemanager/chaos/armchaos/capabilities_live_test.go b/sdk/resourcemanager/chaos/armchaos/capabilities_live_test.go index 7e5216c45c6c..a81b322e53d5 100644 --- a/sdk/resourcemanager/chaos/armchaos/capabilities_live_test.go +++ b/sdk/resourcemanager/chaos/armchaos/capabilities_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type CapabilitiesTestSuite struct { } func (testsuite *CapabilitiesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/chaos/armchaos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -62,9 +62,6 @@ func (testsuite *CapabilitiesTestSuite) TearDownSuite() { } func TestCapabilitiesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CapabilitiesTestSuite)) } diff --git a/sdk/resourcemanager/chaos/armchaos/capabilitytypes_live_test.go b/sdk/resourcemanager/chaos/armchaos/capabilitytypes_live_test.go index 5a4d859a2e43..645111fd6af6 100644 --- a/sdk/resourcemanager/chaos/armchaos/capabilitytypes_live_test.go +++ b/sdk/resourcemanager/chaos/armchaos/capabilitytypes_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type CapabilityTypesTestSuite struct { } func (testsuite *CapabilityTypesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/chaos/armchaos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -52,9 +52,6 @@ func (testsuite *CapabilityTypesTestSuite) TearDownSuite() { } func TestCapabilityTypesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CapabilityTypesTestSuite)) } diff --git a/sdk/resourcemanager/chaos/armchaos/ci.yml b/sdk/resourcemanager/chaos/armchaos/ci.yml index e31e9ba51b4f..1dd383f7b28b 100644 --- a/sdk/resourcemanager/chaos/armchaos/ci.yml +++ b/sdk/resourcemanager/chaos/armchaos/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/chaos/armchaos' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/chaos/armchaos/experiments_live_test.go b/sdk/resourcemanager/chaos/armchaos/experiments_live_test.go index ae47911a0817..8d7d1dd2ff2c 100644 --- a/sdk/resourcemanager/chaos/armchaos/experiments_live_test.go +++ b/sdk/resourcemanager/chaos/armchaos/experiments_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type ExperimentsTestSuite struct { } func (testsuite *ExperimentsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/chaos/armchaos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *ExperimentsTestSuite) TearDownSuite() { } func TestExperimentsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ExperimentsTestSuite)) } diff --git a/sdk/resourcemanager/chaos/armchaos/go.mod b/sdk/resourcemanager/chaos/armchaos/go.mod index bc33f2d73b81..24aad2a775c3 100644 --- a/sdk/resourcemanager/chaos/armchaos/go.mod +++ b/sdk/resourcemanager/chaos/armchaos/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/chaos/armchaos/go.sum b/sdk/resourcemanager/chaos/armchaos/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/chaos/armchaos/go.sum +++ b/sdk/resourcemanager/chaos/armchaos/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/chaos/armchaos/operations_live_test.go b/sdk/resourcemanager/chaos/armchaos/operations_live_test.go index b4ee7fe692b3..bfdd647bf766 100644 --- a/sdk/resourcemanager/chaos/armchaos/operations_live_test.go +++ b/sdk/resourcemanager/chaos/armchaos/operations_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type OperationsTestSuite struct { } func (testsuite *OperationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/chaos/armchaos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -52,9 +52,6 @@ func (testsuite *OperationsTestSuite) TearDownSuite() { } func TestOperationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationsTestSuite)) } diff --git a/sdk/resourcemanager/chaos/armchaos/targets_live_test.go b/sdk/resourcemanager/chaos/armchaos/targets_live_test.go index a087b2419516..cf78e4a3a1a6 100644 --- a/sdk/resourcemanager/chaos/armchaos/targets_live_test.go +++ b/sdk/resourcemanager/chaos/armchaos/targets_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type TargetsTestSuite struct { } func (testsuite *TargetsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/chaos/armchaos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *TargetsTestSuite) TearDownSuite() { } func TestTargetsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TargetsTestSuite)) } diff --git a/sdk/resourcemanager/chaos/armchaos/targettypes_live_test.go b/sdk/resourcemanager/chaos/armchaos/targettypes_live_test.go index afeb4c85ca5f..494f73e36464 100644 --- a/sdk/resourcemanager/chaos/armchaos/targettypes_live_test.go +++ b/sdk/resourcemanager/chaos/armchaos/targettypes_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type TargetTypesTestSuite struct { } func (testsuite *TargetTypesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/chaos/armchaos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -52,9 +52,6 @@ func (testsuite *TargetTypesTestSuite) TearDownSuite() { } func TestTargetTypesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TargetTypesTestSuite)) } diff --git a/sdk/resourcemanager/chaos/armchaos/utils_test.go b/sdk/resourcemanager/chaos/armchaos/utils_test.go new file mode 100644 index 000000000000..5447dc26dcdb --- /dev/null +++ b/sdk/resourcemanager/chaos/armchaos/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armchaos_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/chaos/armchaos/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/compute/armcompute/assets.json b/sdk/resourcemanager/compute/armcompute/assets.json index db9b10d43d85..15df49eb4d16 100644 --- a/sdk/resourcemanager/compute/armcompute/assets.json +++ b/sdk/resourcemanager/compute/armcompute/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/compute/armcompute", - "Tag": "go/resourcemanager/compute/armcompute_6e7bd6d107" + "Tag": "go/resourcemanager/compute/armcompute_a040b901e1" } diff --git a/sdk/resourcemanager/compute/armcompute/availabilityset_live_test.go b/sdk/resourcemanager/compute/armcompute/availabilityset_live_test.go index d5a001186a21..98c2723e44ec 100644 --- a/sdk/resourcemanager/compute/armcompute/availabilityset_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/availabilityset_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type AvailabilitySetTestSuite struct { } func (testsuite *AvailabilitySetTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *AvailabilitySetTestSuite) TearDownSuite() { } func TestAvailabilitySetTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AvailabilitySetTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/capacityreservation_live_test.go b/sdk/resourcemanager/compute/armcompute/capacityreservation_live_test.go index 81f539c7f494..de19be1d94b8 100644 --- a/sdk/resourcemanager/compute/armcompute/capacityreservation_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/capacityreservation_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type CapacityReservationTestSuite struct { } func (testsuite *CapacityReservationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -55,9 +55,6 @@ func (testsuite *CapacityReservationTestSuite) TearDownSuite() { } func TestCapacityReservationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CapacityReservationTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/ci.yml b/sdk/resourcemanager/compute/armcompute/ci.yml index c93d36fd4ccc..7ca73744ee9c 100644 --- a/sdk/resourcemanager/compute/armcompute/ci.yml +++ b/sdk/resourcemanager/compute/armcompute/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/compute/armcompute' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/compute/armcompute/computerpcommon_live_test.go b/sdk/resourcemanager/compute/armcompute/computerpcommon_live_test.go index 80167dfb27ae..3ed6b0bc2aef 100644 --- a/sdk/resourcemanager/compute/armcompute/computerpcommon_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/computerpcommon_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type ComputeRpCommonTestSuite struct { } func (testsuite *ComputeRpCommonTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *ComputeRpCommonTestSuite) TearDownSuite() { } func TestComputeRpCommonTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ComputeRpCommonTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/dedicatedhost_live_test.go b/sdk/resourcemanager/compute/armcompute/dedicatedhost_live_test.go index 1727572d7c57..615435826299 100644 --- a/sdk/resourcemanager/compute/armcompute/dedicatedhost_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/dedicatedhost_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type DedicatedHostTestSuite struct { } func (testsuite *DedicatedHostTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *DedicatedHostTestSuite) TearDownSuite() { } func TestDedicatedHostTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DedicatedHostTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/disk_live_test.go b/sdk/resourcemanager/compute/armcompute/disk_live_test.go index b2c0f89dcfe0..9c2598ad37d7 100644 --- a/sdk/resourcemanager/compute/armcompute/disk_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/disk_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type DiskTestSuite struct { } func (testsuite *DiskTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *DiskTestSuite) TearDownSuite() { } func TestDiskTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DiskTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/diskaccess_live_test.go b/sdk/resourcemanager/compute/armcompute/diskaccess_live_test.go index 41d4e2bac597..19cb3d71d44c 100644 --- a/sdk/resourcemanager/compute/armcompute/diskaccess_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/diskaccess_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type DiskAccessTestSuite struct { } func (testsuite *DiskAccessTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *DiskAccessTestSuite) TearDownSuite() { } func TestDiskAccessTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DiskAccessTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/gallery_live_test.go b/sdk/resourcemanager/compute/armcompute/gallery_live_test.go index c39857a5037a..196e499017a2 100644 --- a/sdk/resourcemanager/compute/armcompute/gallery_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/gallery_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type GalleryTestSuite struct { } func (testsuite *GalleryTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *GalleryTestSuite) TearDownSuite() { } func TestGalleryTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(GalleryTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/go.mod b/sdk/resourcemanager/compute/armcompute/go.mod index 8f3a827578dd..9a4d40971890 100644 --- a/sdk/resourcemanager/compute/armcompute/go.mod +++ b/sdk/resourcemanager/compute/armcompute/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/compute/armcompute/go.sum b/sdk/resourcemanager/compute/armcompute/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/compute/armcompute/go.sum +++ b/sdk/resourcemanager/compute/armcompute/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/compute/armcompute/proximityplacementgroup_live_test.go b/sdk/resourcemanager/compute/armcompute/proximityplacementgroup_live_test.go index 91826c6f5b8f..8a9873439c11 100644 --- a/sdk/resourcemanager/compute/armcompute/proximityplacementgroup_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/proximityplacementgroup_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ProximityPlacementGroupTestSuite struct { } func (testsuite *ProximityPlacementGroupTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *ProximityPlacementGroupTestSuite) TearDownSuite() { } func TestProximityPlacementGroupTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ProximityPlacementGroupTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/restorepoint_live_test.go b/sdk/resourcemanager/compute/armcompute/restorepoint_live_test.go index 93df07c9b047..2517c198d049 100644 --- a/sdk/resourcemanager/compute/armcompute/restorepoint_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/restorepoint_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -42,7 +42,7 @@ type RestorePointTestSuite struct { } func (testsuite *RestorePointTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -70,9 +70,6 @@ func (testsuite *RestorePointTestSuite) TearDownSuite() { } func TestRestorePointTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RestorePointTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/runcommand_live_test.go b/sdk/resourcemanager/compute/armcompute/runcommand_live_test.go index 3c36777a8e6f..a7bb137134f7 100644 --- a/sdk/resourcemanager/compute/armcompute/runcommand_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/runcommand_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -44,7 +44,7 @@ type RunCommandTestSuite struct { } func (testsuite *RunCommandTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -73,9 +73,6 @@ func (testsuite *RunCommandTestSuite) TearDownSuite() { } func TestRunCommandTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RunCommandTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/skus_live_test.go b/sdk/resourcemanager/compute/armcompute/skus_live_test.go index 39e99fe931db..16ca703398a8 100644 --- a/sdk/resourcemanager/compute/armcompute/skus_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/skus_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type SkusTestSuite struct { } func (testsuite *SkusTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -51,9 +51,6 @@ func (testsuite *SkusTestSuite) TearDownSuite() { } func TestSkusTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SkusTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/snapshot_live_test.go b/sdk/resourcemanager/compute/armcompute/snapshot_live_test.go index 654e20037563..2b4eeb86d883 100644 --- a/sdk/resourcemanager/compute/armcompute/snapshot_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/snapshot_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type SnapshotTestSuite struct { } func (testsuite *SnapshotTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *SnapshotTestSuite) TearDownSuite() { } func TestSnapshotTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SnapshotTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/sshpublickey_live_test.go b/sdk/resourcemanager/compute/armcompute/sshpublickey_live_test.go index bd2ff1c93442..d6702df2c710 100644 --- a/sdk/resourcemanager/compute/armcompute/sshpublickey_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/sshpublickey_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type SshPublicKeyTestSuite struct { } func (testsuite *SshPublicKeyTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *SshPublicKeyTestSuite) TearDownSuite() { } func TestSshPublicKeyTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SshPublicKeyTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/utils_test.go b/sdk/resourcemanager/compute/armcompute/utils_test.go new file mode 100644 index 000000000000..7f25d21ed799 --- /dev/null +++ b/sdk/resourcemanager/compute/armcompute/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcompute_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/compute/armcompute/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/compute/armcompute/virtualmachine_live_test.go b/sdk/resourcemanager/compute/armcompute/virtualmachine_live_test.go index dfeaddfa9e02..d5cbfaf08b86 100644 --- a/sdk/resourcemanager/compute/armcompute/virtualmachine_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/virtualmachine_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -39,7 +39,7 @@ type VirtualMachineTestSuite struct { } func (testsuite *VirtualMachineTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -65,9 +65,6 @@ func (testsuite *VirtualMachineTestSuite) TearDownSuite() { } func TestVirtualMachineTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualMachineTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/virtualmachineextensionimage_live_test.go b/sdk/resourcemanager/compute/armcompute/virtualmachineextensionimage_live_test.go index e5046da7666c..852fbb5c7ba8 100644 --- a/sdk/resourcemanager/compute/armcompute/virtualmachineextensionimage_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/virtualmachineextensionimage_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type VirtualMachineExtensionImageTestSuite struct { } func (testsuite *VirtualMachineExtensionImageTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *VirtualMachineExtensionImageTestSuite) TearDownSuite() { } func TestVirtualMachineExtensionImageTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualMachineExtensionImageTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/virtualmachineimage_live_test.go b/sdk/resourcemanager/compute/armcompute/virtualmachineimage_live_test.go index 8fba47c23b68..05a39c415c05 100644 --- a/sdk/resourcemanager/compute/armcompute/virtualmachineimage_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/virtualmachineimage_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type VirtualMachineImageTestSuite struct { } func (testsuite *VirtualMachineImageTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *VirtualMachineImageTestSuite) TearDownSuite() { } func TestVirtualMachineImageTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualMachineImageTestSuite)) } diff --git a/sdk/resourcemanager/compute/armcompute/virtualmachinescaleset_live_test.go b/sdk/resourcemanager/compute/armcompute/virtualmachinescaleset_live_test.go index b9550364d7db..03e05dab3ad7 100644 --- a/sdk/resourcemanager/compute/armcompute/virtualmachinescaleset_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/virtualmachinescaleset_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -39,7 +39,7 @@ type VirtualMachineScaleSetTestSuite struct { } func (testsuite *VirtualMachineScaleSetTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/compute/armcompute/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -65,9 +65,6 @@ func (testsuite *VirtualMachineScaleSetTestSuite) TearDownSuite() { } func TestVirtualMachineScaleSetTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualMachineScaleSetTestSuite)) } diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json b/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json index 951f2c0bad20..dd20f6995dc2 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/containerregistry/armcontainerregistry", - "Tag": "go/resourcemanager/containerregistry/armcontainerregistry_25cb23de01" + "Tag": "go/resourcemanager/containerregistry/armcontainerregistry_fb8bf42300" } diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ci.yml b/sdk/resourcemanager/containerregistry/armcontainerregistry/ci.yml index 053759dc09a1..c5e538255c3b 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ci.yml +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/containerregistry/armcontainerregistry' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go index a240894660df..2353dcd0eb6e 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type ContainerregistryBuildTestSuite struct { } func (testsuite *ContainerregistryBuildTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.agentPoolName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "agentpooln", 16, false) @@ -60,9 +60,6 @@ func (testsuite *ContainerregistryBuildTestSuite) TearDownSuite() { } func TestContainerregistryBuildTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ContainerregistryBuildTestSuite)) } @@ -355,7 +352,7 @@ func (testsuite *ContainerregistryBuildTestSuite) TestTasks() { Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), OS: to.Ptr(armcontainerregistry.OSLinux), }, - SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Sanitized"), }, nil) testsuite.Require().NoError(err) _, err = testutil.PollForTest(testsuite.ctx, registriesClientScheduleRunResponsePoller) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go index d1d68e63772e..5c0049c1df8c 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -41,7 +41,7 @@ type ContainerregistryTestSuite struct { } func (testsuite *ContainerregistryTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.exportPipelineName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "exportpipe", 16, false) @@ -69,9 +69,6 @@ func (testsuite *ContainerregistryTestSuite) TearDownSuite() { } func TestContainerregistryTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ContainerregistryTestSuite)) } diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod index ecd0a598f49f..f5d903f7a9b7 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/utils_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/utils_test.go new file mode 100644 index 000000000000..e6a9d417edb7 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcontainerregistry_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/assets.json b/sdk/resourcemanager/containerservice/armcontainerservice/assets.json index 8b3e4888ac5d..75fec9c17225 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/assets.json +++ b/sdk/resourcemanager/containerservice/armcontainerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/containerservice/armcontainerservice", - "Tag": "go/resourcemanager/containerservice/armcontainerservice_b39a2b3b3d" + "Tag": "go/resourcemanager/containerservice/armcontainerservice_ced70981c9" } diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/ci.yml b/sdk/resourcemanager/containerservice/armcontainerservice/ci.yml index 176c023b2a07..e73ff0bfb5c3 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/ci.yml +++ b/sdk/resourcemanager/containerservice/armcontainerservice/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/containerservice/armcontainerservice' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/go.mod b/sdk/resourcemanager/containerservice/armcontainerservice/go.mod index 267e5bb1911a..ed1a6f67b5d0 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/go.mod +++ b/sdk/resourcemanager/containerservice/armcontainerservice/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/go.sum b/sdk/resourcemanager/containerservice/armcontainerservice/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/go.sum +++ b/sdk/resourcemanager/containerservice/armcontainerservice/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go b/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go index 7b2c7f73f7eb..58387899151e 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go +++ b/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v5" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -51,7 +51,7 @@ func (testsuite *ManagedclustersTestSuite) SetupSuite() { testsuite.resourceGroupName = recording.GetEnvVariable("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") testsuite.subscriptionId = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerservice/armcontainerservice/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -66,9 +66,6 @@ func (testsuite *ManagedclustersTestSuite) TearDownSuite() { } func TestManagedclustersTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ManagedclustersTestSuite)) } diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/utils_test.go b/sdk/resourcemanager/containerservice/armcontainerservice/utils_test.go new file mode 100644 index 000000000000..3e841298f2bd --- /dev/null +++ b/sdk/resourcemanager/containerservice/armcontainerservice/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcontainerservice_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/containerservice/armcontainerservice/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/assets.json b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/assets.json index d342ddfa41fa..b23a6d886cc9 100644 --- a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/assets.json +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/containerservicefleet/armcontainerservicefleet", - "Tag": "go/resourcemanager/containerservicefleet/armcontainerservicefleet_e227a0a78f" + "Tag": "go/resourcemanager/containerservicefleet/armcontainerservicefleet_f042d4cdd4" } diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/ci.yml b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/ci.yml index 6302ae756229..896aa7eb7baf 100644 --- a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/ci.yml +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/containerservicefleet/armcontainerservicefleet' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/fleets_live_test.go b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/fleets_live_test.go index 78346da62119..1f8649c03ec9 100644 --- a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/fleets_live_test.go +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/fleets_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -41,7 +41,7 @@ type FleetsTestSuite struct { } func (testsuite *FleetsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -69,9 +69,6 @@ func (testsuite *FleetsTestSuite) TearDownSuite() { } func TestFleetsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(FleetsTestSuite)) } diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.mod b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.mod index f0be8b490223..26948d52553a 100644 --- a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.mod +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.sum b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.sum +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/utils_test.go b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/utils_test.go new file mode 100644 index 000000000000..59704ed5a31d --- /dev/null +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcontainerservicefleet_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/cosmos/armcosmos/assets.json b/sdk/resourcemanager/cosmos/armcosmos/assets.json index 080658155bf5..030b3dfd810c 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/assets.json +++ b/sdk/resourcemanager/cosmos/armcosmos/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/cosmos/armcosmos", - "Tag": "go/resourcemanager/cosmos/armcosmos_bacef2f08c" + "Tag": "go/resourcemanager/cosmos/armcosmos_1b867a76a1" } diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_live_test.go index ef82f0755d37..57f99bdb39ca 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type CassandraResourcesTestSuite struct { } func (testsuite *CassandraResourcesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *CassandraResourcesTestSuite) TearDownSuite() { } func TestCassandraResourcesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CassandraResourcesTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/ci.yml b/sdk/resourcemanager/cosmos/armcosmos/ci.yml index 02b5022fdad0..ac1cf41b5754 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/ci.yml +++ b/sdk/resourcemanager/cosmos/armcosmos/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/cosmos/armcosmos' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_live_test.go index 1667d0b0387e..26ef4556f217 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type DatabaseAccountsTestSuite struct { } func (testsuite *DatabaseAccountsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *DatabaseAccountsTestSuite) TearDownSuite() { } func TestDatabaseAccountsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DatabaseAccountsTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/go.mod b/sdk/resourcemanager/cosmos/armcosmos/go.mod index cd6ec8e27a47..85fe8a4fee47 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/go.mod +++ b/sdk/resourcemanager/cosmos/armcosmos/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/cosmos/armcosmos/go.sum b/sdk/resourcemanager/cosmos/armcosmos/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/go.sum +++ b/sdk/resourcemanager/cosmos/armcosmos/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_live_test.go index ddec4b7d7e3a..b20f500eb283 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type GremlinResourcesTestSuite struct { } func (testsuite *GremlinResourcesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *GremlinResourcesTestSuite) TearDownSuite() { } func TestGremlinResourcesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(GremlinResourcesTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_live_test.go index 175974266343..e06f0acadc52 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type MongoDbResourcesTestSuite struct { } func (testsuite *MongoDbResourcesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *MongoDbResourcesTestSuite) TearDownSuite() { } func TestMongoDbResourcesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MongoDbResourcesTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/operations_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/operations_live_test.go index 043cc4ef0a8f..752cd0f3e018 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/operations_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/operations_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type OperationsTestSuite struct { } func (testsuite *OperationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *OperationsTestSuite) TearDownSuite() { } func TestOperationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationsTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnection_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnection_live_test.go index 1a42d31dbc71..b640df4fe894 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnection_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnection_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type PrivateEndpointConnectionTestSuite struct { } func (testsuite *PrivateEndpointConnectionTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *PrivateEndpointConnectionTestSuite) TearDownSuite() { } func TestPrivateEndpointConnectionTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PrivateEndpointConnectionTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/services_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/services_live_test.go index f77e3c124566..53b5c8601dbe 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/services_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/services_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ServicesTestSuite struct { } func (testsuite *ServicesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *ServicesTestSuite) TearDownSuite() { } func TestServicesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServicesTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/sqlresources_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/sqlresources_live_test.go index 876d2d2d5000..012fc47f62e9 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/sqlresources_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/sqlresources_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -39,7 +39,7 @@ type SqlResourcesTestSuite struct { } func (testsuite *SqlResourcesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -67,9 +67,6 @@ func (testsuite *SqlResourcesTestSuite) TearDownSuite() { } func TestSqlResourcesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SqlResourcesTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/tableresources_live_test.go b/sdk/resourcemanager/cosmos/armcosmos/tableresources_live_test.go index a3db87bbdb77..2ce5c924b957 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/tableresources_live_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/tableresources_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type TableResourcesTestSuite struct { } func (testsuite *TableResourcesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmos/armcosmos/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *TableResourcesTestSuite) TearDownSuite() { } func TestTableResourcesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TableResourcesTestSuite)) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/utils_test.go b/sdk/resourcemanager/cosmos/armcosmos/utils_test.go new file mode 100644 index 000000000000..a9c883aa534e --- /dev/null +++ b/sdk/resourcemanager/cosmos/armcosmos/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcosmos_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/cosmos/armcosmos/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/assets.json b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/assets.json index fe51de61fb5d..06be2d702497 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/assets.json +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql", - "Tag": "go/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql_9f1fdf3c02" + "Tag": "go/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql_225e9e4498" } diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/ci.yml b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/ci.yml index 5f1750173c7f..e7b88fe242cc 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/ci.yml +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/cosmosforpostgresql/armcosmosforpostgresql' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.mod b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.mod index 2b19dec213fa..35044db3a609 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.mod +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.sum b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.sum +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/postgresqlhsc_live_test.go b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/postgresqlhsc_live_test.go index 782bb2a27b4a..fbad6f571308 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/postgresqlhsc_live_test.go +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/postgresqlhsc_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type PostgresqlhscTestSuite struct { } func (testsuite *PostgresqlhscTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -63,9 +63,6 @@ func (testsuite *PostgresqlhscTestSuite) TearDownSuite() { } func TestPostgresqlhscTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PostgresqlhscTestSuite)) } diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/readreplica_live_test.go b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/readreplica_live_test.go index ec6456a1ff7c..cc00879651a3 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/readreplica_live_test.go +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/readreplica_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type ReadReplicaTestSuite struct { } func (testsuite *ReadReplicaTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *ReadReplicaTestSuite) TearDownSuite() { } func TestReadReplicaTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ReadReplicaTestSuite)) } diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/utils_test.go b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/utils_test.go new file mode 100644 index 000000000000..cec519b50a3c --- /dev/null +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armcosmosforpostgresql_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/databricks/armdatabricks/assets.json b/sdk/resourcemanager/databricks/armdatabricks/assets.json index 13e56fc80184..19e845fe46a2 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/assets.json +++ b/sdk/resourcemanager/databricks/armdatabricks/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/databricks/armdatabricks", - "Tag": "go/resourcemanager/databricks/armdatabricks_31d2dc0356" + "Tag": "go/resourcemanager/databricks/armdatabricks_a2023b1cb9" } diff --git a/sdk/resourcemanager/databricks/armdatabricks/ci.yml b/sdk/resourcemanager/databricks/armdatabricks/ci.yml index d23d27b6f1f3..b890b069e958 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/ci.yml +++ b/sdk/resourcemanager/databricks/armdatabricks/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/databricks/armdatabricks' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/databricks/armdatabricks/databricks_live_test.go b/sdk/resourcemanager/databricks/armdatabricks/databricks_live_test.go index 0ae5de3eec16..5bf894f25b9d 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/databricks_live_test.go +++ b/sdk/resourcemanager/databricks/armdatabricks/databricks_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databricks/armdatabricks" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type DatabricksTestSuite struct { } func (testsuite *DatabricksTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/databricks/armdatabricks/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -62,9 +62,6 @@ func (testsuite *DatabricksTestSuite) TearDownSuite() { } func TestDatabricksTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DatabricksTestSuite)) } diff --git a/sdk/resourcemanager/databricks/armdatabricks/go.mod b/sdk/resourcemanager/databricks/armdatabricks/go.mod index c8846326da7d..c3eb3c9c47e1 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/go.mod +++ b/sdk/resourcemanager/databricks/armdatabricks/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/databricks/armdatabricks/go.sum b/sdk/resourcemanager/databricks/armdatabricks/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/go.sum +++ b/sdk/resourcemanager/databricks/armdatabricks/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/databricks/armdatabricks/utils_test.go b/sdk/resourcemanager/databricks/armdatabricks/utils_test.go new file mode 100644 index 000000000000..8aaa65687380 --- /dev/null +++ b/sdk/resourcemanager/databricks/armdatabricks/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdatabricks_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/databricks/armdatabricks/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/databricks/armdatabricks/vnetpeering_live_test.go b/sdk/resourcemanager/databricks/armdatabricks/vnetpeering_live_test.go index 5c7a412e2376..a77c787d37a8 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/vnetpeering_live_test.go +++ b/sdk/resourcemanager/databricks/armdatabricks/vnetpeering_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databricks/armdatabricks" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type VnetpeeringTestSuite struct { } func (testsuite *VnetpeeringTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/databricks/armdatabricks/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *VnetpeeringTestSuite) TearDownSuite() { } func TestVnetpeeringTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VnetpeeringTestSuite)) } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/assets.json b/sdk/resourcemanager/datafactory/armdatafactory/assets.json index 972ab7c2779f..e6d1ea1f232a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/assets.json +++ b/sdk/resourcemanager/datafactory/armdatafactory/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/datafactory/armdatafactory", - "Tag": "go/resourcemanager/datafactory/armdatafactory_993da29d54" + "Tag": "go/resourcemanager/datafactory/armdatafactory_616a903dbc" } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/ci.yml b/sdk/resourcemanager/datafactory/armdatafactory/ci.yml index 2033dc94b2fb..433a743cc44e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/ci.yml +++ b/sdk/resourcemanager/datafactory/armdatafactory/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/datafactory/armdatafactory' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go b/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go index 704993915d12..cbe5a9514c58 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -49,7 +49,7 @@ type DatafactoryTestSuite struct { } func (testsuite *DatafactoryTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/datafactory/armdatafactory/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -83,9 +83,6 @@ func (testsuite *DatafactoryTestSuite) TearDownSuite() { } func TestDatafactoryTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DatafactoryTestSuite)) } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.mod b/sdk/resourcemanager/datafactory/armdatafactory/go.mod index 4dfc6cf1ac96..0193de2c2049 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.sum b/sdk/resourcemanager/datafactory/armdatafactory/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.sum +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/datafactory/armdatafactory/utils_test.go b/sdk/resourcemanager/datafactory/armdatafactory/utils_test.go new file mode 100644 index 000000000000..5eca371009d6 --- /dev/null +++ b/sdk/resourcemanager/datafactory/armdatafactory/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdatafactory_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/datafactory/armdatafactory/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/account_live_test.go b/sdk/resourcemanager/datalake-store/armdatalakestore/account_live_test.go index 7a29460d2e58..3d9c2bc7c596 100644 --- a/sdk/resourcemanager/datalake-store/armdatalakestore/account_live_test.go +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/account_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-store/armdatalakestore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type AccountTestSuite struct { } func (testsuite *AccountTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/datalake-store/armdatalakestore/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -62,9 +62,6 @@ func (testsuite *AccountTestSuite) TearDownSuite() { } func TestAccountTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AccountTestSuite)) } diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/assets.json b/sdk/resourcemanager/datalake-store/armdatalakestore/assets.json index 4854f303d93d..d320a6776479 100644 --- a/sdk/resourcemanager/datalake-store/armdatalakestore/assets.json +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/datalake-store/armdatalakestore", - "Tag": "go/resourcemanager/datalake-store/armdatalakestore_6612f1b68e" + "Tag": "go/resourcemanager/datalake-store/armdatalakestore_612bacb108" } diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/ci.yml b/sdk/resourcemanager/datalake-store/armdatalakestore/ci.yml index 72c050e08368..7d5a61d10280 100644 --- a/sdk/resourcemanager/datalake-store/armdatalakestore/ci.yml +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/datalake-store/armdatalakestore' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/go.mod b/sdk/resourcemanager/datalake-store/armdatalakestore/go.mod index 1712ce9ba64c..dfdeeb177bad 100644 --- a/sdk/resourcemanager/datalake-store/armdatalakestore/go.mod +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/go.sum b/sdk/resourcemanager/datalake-store/armdatalakestore/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/datalake-store/armdatalakestore/go.sum +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/utils_test.go b/sdk/resourcemanager/datalake-store/armdatalakestore/utils_test.go new file mode 100644 index 000000000000..604d0656f4ce --- /dev/null +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdatalakestore_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/datalake-store/armdatalakestore/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/devcenter/armdevcenter/assets.json b/sdk/resourcemanager/devcenter/armdevcenter/assets.json index cde546d1a403..54d67c8bbce7 100644 --- a/sdk/resourcemanager/devcenter/armdevcenter/assets.json +++ b/sdk/resourcemanager/devcenter/armdevcenter/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/devcenter/armdevcenter", - "Tag": "go/resourcemanager/devcenter/armdevcenter_9734ebd54f" + "Tag": "go/resourcemanager/devcenter/armdevcenter_54cf82da38" } diff --git a/sdk/resourcemanager/devcenter/armdevcenter/ci.yml b/sdk/resourcemanager/devcenter/armdevcenter/ci.yml index b756b4b5f6c9..7d5344b34597 100644 --- a/sdk/resourcemanager/devcenter/armdevcenter/ci.yml +++ b/sdk/resourcemanager/devcenter/armdevcenter/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/devcenter/armdevcenter' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/devcenter/armdevcenter/devcenter_live_test.go b/sdk/resourcemanager/devcenter/armdevcenter/devcenter_live_test.go index 5a06b0500ea1..460bd6a8c3c7 100644 --- a/sdk/resourcemanager/devcenter/armdevcenter/devcenter_live_test.go +++ b/sdk/resourcemanager/devcenter/armdevcenter/devcenter_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devcenter/armdevcenter/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -44,7 +44,7 @@ type DevcenterTestSuite struct { } func (testsuite *DevcenterTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/devcenter/armdevcenter/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -73,9 +73,6 @@ func (testsuite *DevcenterTestSuite) TearDownSuite() { } func TestDevcenterTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DevcenterTestSuite)) } diff --git a/sdk/resourcemanager/devcenter/armdevcenter/go.mod b/sdk/resourcemanager/devcenter/armdevcenter/go.mod index 3900280ebee5..2ad7527ed061 100644 --- a/sdk/resourcemanager/devcenter/armdevcenter/go.mod +++ b/sdk/resourcemanager/devcenter/armdevcenter/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/devcenter/armdevcenter/go.sum b/sdk/resourcemanager/devcenter/armdevcenter/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/devcenter/armdevcenter/go.sum +++ b/sdk/resourcemanager/devcenter/armdevcenter/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/devcenter/armdevcenter/utils_test.go b/sdk/resourcemanager/devcenter/armdevcenter/utils_test.go new file mode 100644 index 000000000000..43b91f8c080d --- /dev/null +++ b/sdk/resourcemanager/devcenter/armdevcenter/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdevcenter_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/devcenter/armdevcenter/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/dns/armdns/assets.json b/sdk/resourcemanager/dns/armdns/assets.json index 4c6721b5fc57..0adc9cbdb7a3 100644 --- a/sdk/resourcemanager/dns/armdns/assets.json +++ b/sdk/resourcemanager/dns/armdns/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/dns/armdns", - "Tag": "go/resourcemanager/dns/armdns_8b39e2b009" + "Tag": "go/resourcemanager/dns/armdns_b3feaf35b5" } diff --git a/sdk/resourcemanager/dns/armdns/ci.yml b/sdk/resourcemanager/dns/armdns/ci.yml index d650051e7152..3f4d83ed99ea 100644 --- a/sdk/resourcemanager/dns/armdns/ci.yml +++ b/sdk/resourcemanager/dns/armdns/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/dns/armdns' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/dns/armdns/dns_live_test.go b/sdk/resourcemanager/dns/armdns/dns_live_test.go index dee7d4fcd3b4..ecd783af10d0 100644 --- a/sdk/resourcemanager/dns/armdns/dns_live_test.go +++ b/sdk/resourcemanager/dns/armdns/dns_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type DnsTestSuite struct { } func (testsuite *DnsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/dns/armdns/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *DnsTestSuite) TearDownSuite() { } func TestDnsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DnsTestSuite)) } diff --git a/sdk/resourcemanager/dns/armdns/go.mod b/sdk/resourcemanager/dns/armdns/go.mod index 9cb7da38fe52..2cdd17ca2f4d 100644 --- a/sdk/resourcemanager/dns/armdns/go.mod +++ b/sdk/resourcemanager/dns/armdns/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/dns/armdns/go.sum b/sdk/resourcemanager/dns/armdns/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/dns/armdns/go.sum +++ b/sdk/resourcemanager/dns/armdns/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/dns/armdns/utils_test.go b/sdk/resourcemanager/dns/armdns/utils_test.go new file mode 100644 index 000000000000..f27640b7035e --- /dev/null +++ b/sdk/resourcemanager/dns/armdns/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdns_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/dns/armdns/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/assets.json b/sdk/resourcemanager/dnsresolver/armdnsresolver/assets.json index 55c9ddf864c6..e6f22c54fa46 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/assets.json +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/dnsresolver/armdnsresolver", - "Tag": "go/resourcemanager/dnsresolver/armdnsresolver_0a6418ee39" + "Tag": "go/resourcemanager/dnsresolver/armdnsresolver_53886873ff" } diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/ci.yml b/sdk/resourcemanager/dnsresolver/armdnsresolver/ci.yml index 4430950d90c8..1598392c8153 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/ci.yml +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/dnsresolver/armdnsresolver' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsforwardingruleset_live_test.go b/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsforwardingruleset_live_test.go index 03a0b6d07829..377710eefa79 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsforwardingruleset_live_test.go +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsforwardingruleset_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -43,7 +43,7 @@ type DnsforwardingrulesetTestSuite struct { } func (testsuite *DnsforwardingrulesetTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/dnsresolver/armdnsresolver/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -71,9 +71,6 @@ func (testsuite *DnsforwardingrulesetTestSuite) TearDownSuite() { } func TestDnsforwardingrulesetTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DnsforwardingrulesetTestSuite)) } diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsresolver_live_test.go b/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsresolver_live_test.go index 8896c037d7fc..dd42ef984ae5 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsresolver_live_test.go +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/dnsresolver_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -40,7 +40,7 @@ type DnsresolverTestSuite struct { } func (testsuite *DnsresolverTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/dnsresolver/armdnsresolver/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -66,9 +66,6 @@ func (testsuite *DnsresolverTestSuite) TearDownSuite() { } func TestDnsresolverTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DnsresolverTestSuite)) } diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/go.mod b/sdk/resourcemanager/dnsresolver/armdnsresolver/go.mod index 3ab497a0b3af..ef6deb7c7179 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/go.mod +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/go.sum b/sdk/resourcemanager/dnsresolver/armdnsresolver/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/go.sum +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/utils_test.go b/sdk/resourcemanager/dnsresolver/armdnsresolver/utils_test.go new file mode 100644 index 000000000000..2ecc04b25d53 --- /dev/null +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdnsresolver_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/dnsresolver/armdnsresolver/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/assets.json b/sdk/resourcemanager/dynatrace/armdynatrace/assets.json index aed559dd4cdb..da15aa538ea4 100644 --- a/sdk/resourcemanager/dynatrace/armdynatrace/assets.json +++ b/sdk/resourcemanager/dynatrace/armdynatrace/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/dynatrace/armdynatrace", - "Tag": "go/resourcemanager/dynatrace/armdynatrace_67b574d135" + "Tag": "go/resourcemanager/dynatrace/armdynatrace_33bbc4d883" } diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/ci.yml b/sdk/resourcemanager/dynatrace/armdynatrace/ci.yml index 2c7e26ee6dd4..3c9e9589a7dd 100644 --- a/sdk/resourcemanager/dynatrace/armdynatrace/ci.yml +++ b/sdk/resourcemanager/dynatrace/armdynatrace/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/dynatrace/armdynatrace' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/dynatrace_live_test.go b/sdk/resourcemanager/dynatrace/armdynatrace/dynatrace_live_test.go index 61fbf6aae5b6..2e104e262cdb 100644 --- a/sdk/resourcemanager/dynatrace/armdynatrace/dynatrace_live_test.go +++ b/sdk/resourcemanager/dynatrace/armdynatrace/dynatrace_live_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type DynatraceTestSuite struct { } func (testsuite *DynatraceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/dynatrace/armdynatrace/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *DynatraceTestSuite) TearDownSuite() { } func TestDynatraceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DynatraceTestSuite)) } diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/go.mod b/sdk/resourcemanager/dynatrace/armdynatrace/go.mod index 06f69b9ede4d..bcbebbe13430 100644 --- a/sdk/resourcemanager/dynatrace/armdynatrace/go.mod +++ b/sdk/resourcemanager/dynatrace/armdynatrace/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/go.sum b/sdk/resourcemanager/dynatrace/armdynatrace/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/dynatrace/armdynatrace/go.sum +++ b/sdk/resourcemanager/dynatrace/armdynatrace/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/utils_test.go b/sdk/resourcemanager/dynatrace/armdynatrace/utils_test.go new file mode 100644 index 000000000000..b7d219081668 --- /dev/null +++ b/sdk/resourcemanager/dynatrace/armdynatrace/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdynatrace_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/dynatrace/armdynatrace/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/assets.json b/sdk/resourcemanager/eventgrid/armeventgrid/assets.json index 6572d9344c96..bf09a8aabe39 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/assets.json +++ b/sdk/resourcemanager/eventgrid/armeventgrid/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/eventgrid/armeventgrid", - "Tag": "go/resourcemanager/eventgrid/armeventgrid_29c3f1b99d" + "Tag": "go/resourcemanager/eventgrid/armeventgrid_e1e01dfc49" } diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/ci.yml b/sdk/resourcemanager/eventgrid/armeventgrid/ci.yml index d87158db62dd..12975140d5af 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/ci.yml +++ b/sdk/resourcemanager/eventgrid/armeventgrid/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/eventgrid/armeventgrid' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/eventgrid_live_test.go b/sdk/resourcemanager/eventgrid/armeventgrid/eventgrid_live_test.go index 54ab0057cc4b..59d227983e2d 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/eventgrid_live_test.go +++ b/sdk/resourcemanager/eventgrid/armeventgrid/eventgrid_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -46,7 +46,7 @@ type EventGridTestSuite struct { } func (testsuite *EventGridTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/eventgrid/armeventgrid/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -77,9 +77,6 @@ func (testsuite *EventGridTestSuite) TearDownSuite() { } func TestEventGridTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(EventGridTestSuite)) } diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/go.mod b/sdk/resourcemanager/eventgrid/armeventgrid/go.mod index b668212220c7..5f74f12ce69a 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/go.mod +++ b/sdk/resourcemanager/eventgrid/armeventgrid/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/go.sum b/sdk/resourcemanager/eventgrid/armeventgrid/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/go.sum +++ b/sdk/resourcemanager/eventgrid/armeventgrid/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/utils_test.go b/sdk/resourcemanager/eventgrid/armeventgrid/utils_test.go new file mode 100644 index 000000000000..e370ba8b1ed9 --- /dev/null +++ b/sdk/resourcemanager/eventgrid/armeventgrid/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armeventgrid_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/eventgrid/armeventgrid/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/eventhub/armeventhub/assets.json b/sdk/resourcemanager/eventhub/armeventhub/assets.json index abaab1baf659..7676a55e792f 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/assets.json +++ b/sdk/resourcemanager/eventhub/armeventhub/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/eventhub/armeventhub", - "Tag": "go/resourcemanager/eventhub/armeventhub_ecf8a3f8af" + "Tag": "go/resourcemanager/eventhub/armeventhub_90bd8b77a0" } diff --git a/sdk/resourcemanager/eventhub/armeventhub/ci.yml b/sdk/resourcemanager/eventhub/armeventhub/ci.yml index 28fe59888720..fee53d392bc2 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/ci.yml +++ b/sdk/resourcemanager/eventhub/armeventhub/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/eventhub/armeventhub' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/eventhub/armeventhub/disasterrecoveryconfigs_live_test.go b/sdk/resourcemanager/eventhub/armeventhub/disasterrecoveryconfigs_live_test.go index c94f29e30707..e2b392b1b940 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/disasterrecoveryconfigs_live_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/disasterrecoveryconfigs_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type DisasterrecoveryconfigsTestSuite struct { } func (testsuite *DisasterrecoveryconfigsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/eventhub/armeventhub/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.alias, _ = recording.GenerateAlphaNumericID(testsuite.T(), "alias", 11, false) @@ -61,9 +61,6 @@ func (testsuite *DisasterrecoveryconfigsTestSuite) TearDownSuite() { } func TestDisasterrecoveryconfigsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DisasterrecoveryconfigsTestSuite)) } diff --git a/sdk/resourcemanager/eventhub/armeventhub/eventhub_live_test.go b/sdk/resourcemanager/eventhub/armeventhub/eventhub_live_test.go index d37cbbb1753c..dcc43c31bb61 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/eventhub_live_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/eventhub_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -41,7 +41,7 @@ type EventhubTestSuite struct { } func (testsuite *EventhubTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/eventhub/armeventhub/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.applicationGroupName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "applicatio", 16, false) @@ -69,9 +69,6 @@ func (testsuite *EventhubTestSuite) TearDownSuite() { } func TestEventhubTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(EventhubTestSuite)) } diff --git a/sdk/resourcemanager/eventhub/armeventhub/go.mod b/sdk/resourcemanager/eventhub/armeventhub/go.mod index 2fd1a3106b70..f8288e81fc3e 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/go.mod +++ b/sdk/resourcemanager/eventhub/armeventhub/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/eventhub/armeventhub/go.sum b/sdk/resourcemanager/eventhub/armeventhub/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/go.sum +++ b/sdk/resourcemanager/eventhub/armeventhub/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/eventhub/armeventhub/privateendpointconnections_live_test.go b/sdk/resourcemanager/eventhub/armeventhub/privateendpointconnections_live_test.go index 3c9ae0b327a3..ed716030ab37 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/privateendpointconnections_live_test.go +++ b/sdk/resourcemanager/eventhub/armeventhub/privateendpointconnections_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type PrivateEndpointConnectionsTestSuite struct { } func (testsuite *PrivateEndpointConnectionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/eventhub/armeventhub/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *PrivateEndpointConnectionsTestSuite) TearDownSuite() { } func TestPrivateEndpointConnectionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PrivateEndpointConnectionsTestSuite)) } diff --git a/sdk/resourcemanager/eventhub/armeventhub/utils_test.go b/sdk/resourcemanager/eventhub/armeventhub/utils_test.go new file mode 100644 index 000000000000..b925d2527284 --- /dev/null +++ b/sdk/resourcemanager/eventhub/armeventhub/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armeventhub_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/eventhub/armeventhub/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/internal/go.mod b/sdk/resourcemanager/internal/go.mod index eef7d2b23445..82f009b40e02 100644 --- a/sdk/resourcemanager/internal/go.mod +++ b/sdk/resourcemanager/internal/go.mod @@ -1,4 +1,4 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 go 1.18 diff --git a/sdk/resourcemanager/internal/go.sum b/sdk/resourcemanager/internal/go.sum index a6522835ce2c..b3130cefade8 100644 --- a/sdk/resourcemanager/internal/go.sum +++ b/sdk/resourcemanager/internal/go.sum @@ -4,6 +4,7 @@ github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/assets.json b/sdk/resourcemanager/iotcentral/armiotcentral/assets.json index 8db0e29e2aeb..e50e61a8ba6f 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/assets.json +++ b/sdk/resourcemanager/iotcentral/armiotcentral/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/iotcentral/armiotcentral", - "Tag": "go/resourcemanager/iotcentral/armiotcentral_9600a1e8b1" + "Tag": "go/resourcemanager/iotcentral/armiotcentral_dc56c5f418" } diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/ci.yml b/sdk/resourcemanager/iotcentral/armiotcentral/ci.yml index b1987e7c242e..2bb84defc7ed 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/ci.yml +++ b/sdk/resourcemanager/iotcentral/armiotcentral/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/iotcentral/armiotcentral' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/go.mod b/sdk/resourcemanager/iotcentral/armiotcentral/go.mod index 35f93a0317d5..78d933da1fff 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/go.mod +++ b/sdk/resourcemanager/iotcentral/armiotcentral/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/go.sum b/sdk/resourcemanager/iotcentral/armiotcentral/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/go.sum +++ b/sdk/resourcemanager/iotcentral/armiotcentral/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/iotcentral_live_test.go b/sdk/resourcemanager/iotcentral/armiotcentral/iotcentral_live_test.go index 12d64bf9ee2a..b25c9ad3fc0a 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/iotcentral_live_test.go +++ b/sdk/resourcemanager/iotcentral/armiotcentral/iotcentral_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotcentral" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type IotcentralTestSuite struct { } func (testsuite *IotcentralTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/iotcentral/armiotcentral/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -55,9 +55,6 @@ func (testsuite *IotcentralTestSuite) TearDownSuite() { } func TestIotcentralTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(IotcentralTestSuite)) } diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/utils_test.go b/sdk/resourcemanager/iotcentral/armiotcentral/utils_test.go new file mode 100644 index 000000000000..0194ed29af93 --- /dev/null +++ b/sdk/resourcemanager/iotcentral/armiotcentral/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armiotcentral_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/iotcentral/armiotcentral/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/iothub/armiothub/assets.json b/sdk/resourcemanager/iothub/armiothub/assets.json index 6c341b8a3f32..852ff494f9d3 100644 --- a/sdk/resourcemanager/iothub/armiothub/assets.json +++ b/sdk/resourcemanager/iothub/armiothub/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/iothub/armiothub", - "Tag": "go/resourcemanager/iothub/armiothub_2cadee7353" + "Tag": "go/resourcemanager/iothub/armiothub_78835c2cb1" } diff --git a/sdk/resourcemanager/iothub/armiothub/ci.yml b/sdk/resourcemanager/iothub/armiothub/ci.yml index bb3b2374b658..7caed7569072 100644 --- a/sdk/resourcemanager/iothub/armiothub/ci.yml +++ b/sdk/resourcemanager/iothub/armiothub/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/iothub/armiothub' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/iothub/armiothub/go.mod b/sdk/resourcemanager/iothub/armiothub/go.mod index 6aaffe7464e6..16bf8831124c 100644 --- a/sdk/resourcemanager/iothub/armiothub/go.mod +++ b/sdk/resourcemanager/iothub/armiothub/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/iothub/armiothub/go.sum b/sdk/resourcemanager/iothub/armiothub/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/iothub/armiothub/go.sum +++ b/sdk/resourcemanager/iothub/armiothub/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/iothub/armiothub/iothub_live_test.go b/sdk/resourcemanager/iothub/armiothub/iothub_live_test.go index e9ea25b053ec..6f1f45e81842 100644 --- a/sdk/resourcemanager/iothub/armiothub/iothub_live_test.go +++ b/sdk/resourcemanager/iothub/armiothub/iothub_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iothub/armiothub" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type IothubTestSuite struct { } func (testsuite *IothubTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/iothub/armiothub/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *IothubTestSuite) TearDownSuite() { } func TestIothubTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(IothubTestSuite)) } diff --git a/sdk/resourcemanager/iothub/armiothub/utils_test.go b/sdk/resourcemanager/iothub/armiothub/utils_test.go new file mode 100644 index 000000000000..b49ddd0b6fe9 --- /dev/null +++ b/sdk/resourcemanager/iothub/armiothub/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armiothub_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/iothub/armiothub/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/assets.json b/sdk/resourcemanager/keyvault/armkeyvault/assets.json index 84f2859a2209..3622d059639a 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/assets.json +++ b/sdk/resourcemanager/keyvault/armkeyvault/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/keyvault/armkeyvault", - "Tag": "go/resourcemanager/keyvault/armkeyvault_820248387e" + "Tag": "go/resourcemanager/keyvault/armkeyvault_60fe05d05b" } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ci.yml b/sdk/resourcemanager/keyvault/armkeyvault/ci.yml index 650cc8b8b7e9..07fa6eefc005 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ci.yml +++ b/sdk/resourcemanager/keyvault/armkeyvault/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/keyvault/armkeyvault' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/keyvault/armkeyvault/go.mod b/sdk/resourcemanager/keyvault/armkeyvault/go.mod index 121d9d6a6296..1fc56d5a450a 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/go.mod +++ b/sdk/resourcemanager/keyvault/armkeyvault/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/keyvault/armkeyvault/go.sum b/sdk/resourcemanager/keyvault/armkeyvault/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/go.sum +++ b/sdk/resourcemanager/keyvault/armkeyvault/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/keyvault/armkeyvault/keys_client_live_test.go b/sdk/resourcemanager/keyvault/armkeyvault/keys_client_live_test.go index 69bf455d8364..bd7328c05b12 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/keys_client_live_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/keys_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/stretchr/testify/suite" ) @@ -40,7 +40,7 @@ func (testsuite *KeysClientTestSuite) SetupSuite() { testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") testsuite.tenantID = recording.GetEnvVariable("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") testsuite.objectID = recording.GetEnvVariable("AZURE_OBJECT_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/keyvault/armkeyvault/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -53,9 +53,6 @@ func (testsuite *KeysClientTestSuite) TearDownSuite() { } func TestKeysClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(KeysClientTestSuite)) } @@ -104,16 +101,15 @@ func (testsuite *KeysClientTestSuite) TestKeysCRUD() { nil, ) testsuite.Require().NoError(err) - vResp, err := testutil.PollForTest(testsuite.ctx, vPollerResp) + _, err = testutil.PollForTest(testsuite.ctx, vPollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(vaultName, *vResp.Name) // create key fmt.Println("Call operation: Keys_CreateIfNotExist") keysClient, err := armkeyvault.NewKeysClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) keyName := "go-test-key" - createResp, err := keysClient.CreateIfNotExist( + _, err = keysClient.CreateIfNotExist( testsuite.ctx, testsuite.resourceGroupName, vaultName, @@ -134,13 +130,11 @@ func (testsuite *KeysClientTestSuite) TestKeysCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(keyName, *createResp.Name) // get key fmt.Println("Call operation: Keys_Get") - getResp, err := keysClient.Get(testsuite.ctx, testsuite.resourceGroupName, vaultName, keyName, nil) + _, err = keysClient.Get(testsuite.ctx, testsuite.resourceGroupName, vaultName, keyName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(keyName, *getResp.Name) // list fmt.Println("Call operation: Keys_List") diff --git a/sdk/resourcemanager/keyvault/armkeyvault/secrets_client_live_test.go b/sdk/resourcemanager/keyvault/armkeyvault/secrets_client_live_test.go index 30290248d4b8..08a699301d77 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/secrets_client_live_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/secrets_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/stretchr/testify/suite" ) @@ -40,7 +40,7 @@ func (testsuite *SecretsClientTestSuite) SetupSuite() { testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") testsuite.tenantID = recording.GetEnvVariable("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") testsuite.objectID = recording.GetEnvVariable("AZURE_OBJECT_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/keyvault/armkeyvault/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -53,9 +53,6 @@ func (testsuite *SecretsClientTestSuite) TearDownSuite() { } func TestSecretsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SecretsClientTestSuite)) } @@ -104,16 +101,15 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { nil, ) testsuite.Require().NoError(err) - vResp, err := testutil.PollForTest(testsuite.ctx, vPollerResp) + _, err = testutil.PollForTest(testsuite.ctx, vPollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(vaultName, *vResp.Name) // create secret fmt.Println("Call operation: Secrets_CreateOrUpdate") secretsClient, err := armkeyvault.NewSecretsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) secretName := "go-test-secret2" - secretResp, err := secretsClient.CreateOrUpdate( + _, err = secretsClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, vaultName, @@ -129,11 +125,10 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(secretName, *secretResp.Name) // update secret fmt.Println("Call operation: Secrets_Update") - updateResp, err := secretsClient.Update( + _, err = secretsClient.Update( testsuite.ctx, testsuite.resourceGroupName, vaultName, @@ -149,13 +144,11 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal("recording", *updateResp.Tags["test"]) // get secret fmt.Println("Call operation: Secrets_Get") - getResp, err := secretsClient.Get(testsuite.ctx, testsuite.resourceGroupName, vaultName, secretName, nil) + _, err = secretsClient.Get(testsuite.ctx, testsuite.resourceGroupName, vaultName, secretName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(secretName, *getResp.Name) // list secret fmt.Println("Call operation: Secrets_List") diff --git a/sdk/resourcemanager/keyvault/armkeyvault/utils_test.go b/sdk/resourcemanager/keyvault/armkeyvault/utils_test.go new file mode 100644 index 000000000000..c1fee0d49cc5 --- /dev/null +++ b/sdk/resourcemanager/keyvault/armkeyvault/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armkeyvault_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/keyvault/armkeyvault/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/vaults_client_live_test.go b/sdk/resourcemanager/keyvault/armkeyvault/vaults_client_live_test.go index 00c58807d446..cc478b665174 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/vaults_client_live_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/vaults_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/stretchr/testify/suite" ) @@ -34,13 +34,13 @@ type VaultsClientTestSuite struct { } func (testsuite *VaultsClientTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") testsuite.tenantID = recording.GetEnvVariable("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") testsuite.objectID = recording.GetEnvVariable("AZURE_OBJECT_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/keyvault/armkeyvault/testdata") resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -53,9 +53,6 @@ func (testsuite *VaultsClientTestSuite) TearDownSuite() { } func TestVaultsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VaultsClientTestSuite)) } @@ -104,9 +101,8 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { nil, ) testsuite.Require().NoError(err) - vResp, err := testutil.PollForTest(testsuite.ctx, vPollerResp) + _, err = testutil.PollForTest(testsuite.ctx, vPollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(vaultName, *vResp.Name) // create vault fmt.Println("Call operation: Vaults_CheckNameAvailability") @@ -123,13 +119,12 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { // get vault fmt.Println("Call operation: Vaults_Get") - getResp, err := vaultsClient.Get(testsuite.ctx, testsuite.resourceGroupName, vaultName, nil) + _, err = vaultsClient.Get(testsuite.ctx, testsuite.resourceGroupName, vaultName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(vaultName, *getResp.Name) // update vault fmt.Println("Call operation: Vaults_Update") - updateResp, err := vaultsClient.Update( + _, err = vaultsClient.Update( testsuite.ctx, testsuite.resourceGroupName, vaultName, @@ -141,7 +136,6 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal("recording", *updateResp.Tags["test"]) // list vault deleted fmt.Println("Call operation: Vaults_ListDeleted") @@ -155,9 +149,8 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { // get deleted vault fmt.Println("Call operation: Vaults_GetDeleted") - deletedResp, err := vaultsClient.GetDeleted(testsuite.ctx, vaultName, testsuite.location, nil) + _, err = vaultsClient.GetDeleted(testsuite.ctx, vaultName, testsuite.location, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(vaultName, *deletedResp.Name) // purge deleted vault fmt.Println("Call operation: Vaults_PurgeDeleted") diff --git a/sdk/resourcemanager/kusto/armkusto/assets.json b/sdk/resourcemanager/kusto/armkusto/assets.json index a0455b9f07f5..2a74089005b1 100644 --- a/sdk/resourcemanager/kusto/armkusto/assets.json +++ b/sdk/resourcemanager/kusto/armkusto/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/kusto/armkusto", - "Tag": "go/resourcemanager/kusto/armkusto_d6a93043cf" + "Tag": "go/resourcemanager/kusto/armkusto_0a99f76031" } diff --git a/sdk/resourcemanager/kusto/armkusto/ci.yml b/sdk/resourcemanager/kusto/armkusto/ci.yml index ad2712f51865..99e7214c0a44 100644 --- a/sdk/resourcemanager/kusto/armkusto/ci.yml +++ b/sdk/resourcemanager/kusto/armkusto/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/kusto/armkusto' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/kusto/armkusto/go.mod b/sdk/resourcemanager/kusto/armkusto/go.mod index 0a6d89dc3139..29a87643ed3c 100644 --- a/sdk/resourcemanager/kusto/armkusto/go.mod +++ b/sdk/resourcemanager/kusto/armkusto/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/kusto/armkusto/go.sum b/sdk/resourcemanager/kusto/armkusto/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/kusto/armkusto/go.sum +++ b/sdk/resourcemanager/kusto/armkusto/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/kusto/armkusto/kusto_live_test.go b/sdk/resourcemanager/kusto/armkusto/kusto_live_test.go index 7aa08f2252ba..5eb3395c16fd 100644 --- a/sdk/resourcemanager/kusto/armkusto/kusto_live_test.go +++ b/sdk/resourcemanager/kusto/armkusto/kusto_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto/v2" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -50,7 +50,7 @@ type KustoTestSuite struct { } func (testsuite *KustoTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/kusto/armkusto/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -87,9 +87,6 @@ func (testsuite *KustoTestSuite) TearDownSuite() { } func TestKustoTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(KustoTestSuite)) } diff --git a/sdk/resourcemanager/kusto/armkusto/utils_test.go b/sdk/resourcemanager/kusto/armkusto/utils_test.go new file mode 100644 index 000000000000..4625945576af --- /dev/null +++ b/sdk/resourcemanager/kusto/armkusto/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armkusto_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/kusto/armkusto/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/labservices/armlabservices/assets.json b/sdk/resourcemanager/labservices/armlabservices/assets.json index 8f7c1964a72e..54e6b7f77426 100644 --- a/sdk/resourcemanager/labservices/armlabservices/assets.json +++ b/sdk/resourcemanager/labservices/armlabservices/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/labservices/armlabservices", - "Tag": "go/resourcemanager/labservices/armlabservices_2925575eb3" + "Tag": "go/resourcemanager/labservices/armlabservices_6eec505036" } diff --git a/sdk/resourcemanager/labservices/armlabservices/ci.yml b/sdk/resourcemanager/labservices/armlabservices/ci.yml index 385c954f483d..2938e3d3bc2a 100644 --- a/sdk/resourcemanager/labservices/armlabservices/ci.yml +++ b/sdk/resourcemanager/labservices/armlabservices/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/labservices/armlabservices' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/labservices/armlabservices/go.mod b/sdk/resourcemanager/labservices/armlabservices/go.mod index b085b9f0f6e5..de3ba19284af 100644 --- a/sdk/resourcemanager/labservices/armlabservices/go.mod +++ b/sdk/resourcemanager/labservices/armlabservices/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/labservices/armlabservices/go.sum b/sdk/resourcemanager/labservices/armlabservices/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/labservices/armlabservices/go.sum +++ b/sdk/resourcemanager/labservices/armlabservices/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/labservices/armlabservices/images_live_test.go b/sdk/resourcemanager/labservices/armlabservices/images_live_test.go index dc21173b79a7..22c804a59631 100644 --- a/sdk/resourcemanager/labservices/armlabservices/images_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/images_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ImagesTestSuite struct { } func (testsuite *ImagesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *ImagesTestSuite) TearDownSuite() { } func TestImagesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ImagesTestSuite)) } diff --git a/sdk/resourcemanager/labservices/armlabservices/labplans_live_test.go b/sdk/resourcemanager/labservices/armlabservices/labplans_live_test.go index ed155ba8be6c..12049b7db763 100644 --- a/sdk/resourcemanager/labservices/armlabservices/labplans_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/labplans_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type LabPlansTestSuite struct { } func (testsuite *LabPlansTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -55,9 +55,6 @@ func (testsuite *LabPlansTestSuite) TearDownSuite() { } func TestLabPlansTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LabPlansTestSuite)) } diff --git a/sdk/resourcemanager/labservices/armlabservices/labs_live_test.go b/sdk/resourcemanager/labservices/armlabservices/labs_live_test.go index 481f198c8183..9f76bfd1fe72 100644 --- a/sdk/resourcemanager/labservices/armlabservices/labs_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/labs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type LabsTestSuite struct { } func (testsuite *LabsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *LabsTestSuite) TearDownSuite() { } func TestLabsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LabsTestSuite)) } diff --git a/sdk/resourcemanager/labservices/armlabservices/operation_live_test.go b/sdk/resourcemanager/labservices/armlabservices/operation_live_test.go index 0bbcf3e8b4e1..4c0a977a8943 100644 --- a/sdk/resourcemanager/labservices/armlabservices/operation_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/operation_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type OperationTestSuite struct { } func (testsuite *OperationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) diff --git a/sdk/resourcemanager/labservices/armlabservices/schedules_live_test.go b/sdk/resourcemanager/labservices/armlabservices/schedules_live_test.go index 45054a491f67..e7303e9cb57c 100644 --- a/sdk/resourcemanager/labservices/armlabservices/schedules_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/schedules_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type SchedulesTestSuite struct { } func (testsuite *SchedulesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -62,9 +62,6 @@ func (testsuite *SchedulesTestSuite) TearDownSuite() { } func TestSchedulesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SchedulesTestSuite)) } diff --git a/sdk/resourcemanager/labservices/armlabservices/users_live_test.go b/sdk/resourcemanager/labservices/armlabservices/users_live_test.go index 12a2bf740c8c..f248f537c297 100644 --- a/sdk/resourcemanager/labservices/armlabservices/users_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/users_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type UsersTestSuite struct { } func (testsuite *UsersTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *UsersTestSuite) TearDownSuite() { } func TestUsersTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(UsersTestSuite)) } diff --git a/sdk/resourcemanager/labservices/armlabservices/utils_test.go b/sdk/resourcemanager/labservices/armlabservices/utils_test.go new file mode 100644 index 000000000000..966f37e53983 --- /dev/null +++ b/sdk/resourcemanager/labservices/armlabservices/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armlabservices_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/labservices/armlabservices/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/labservices/armlabservices/virtualmachines_live_test.go b/sdk/resourcemanager/labservices/armlabservices/virtualmachines_live_test.go index 01abf8fb2dd0..22f083b2ad33 100644 --- a/sdk/resourcemanager/labservices/armlabservices/virtualmachines_live_test.go +++ b/sdk/resourcemanager/labservices/armlabservices/virtualmachines_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type VirtualMachinesTestSuite struct { } func (testsuite *VirtualMachinesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/labservices/armlabservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *VirtualMachinesTestSuite) TearDownSuite() { } func TestVirtualMachinesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualMachinesTestSuite)) } diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/assets.json b/sdk/resourcemanager/loadtesting/armloadtesting/assets.json index b1fdbd5886fc..f2a966b13076 100644 --- a/sdk/resourcemanager/loadtesting/armloadtesting/assets.json +++ b/sdk/resourcemanager/loadtesting/armloadtesting/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/loadtesting/armloadtesting", - "Tag": "go/resourcemanager/loadtesting/armloadtesting_8e87e8f6c0" + "Tag": "go/resourcemanager/loadtesting/armloadtesting_89d27d9b11" } diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/ci.yml b/sdk/resourcemanager/loadtesting/armloadtesting/ci.yml index 7c1132b92f93..01fe60c829f6 100644 --- a/sdk/resourcemanager/loadtesting/armloadtesting/ci.yml +++ b/sdk/resourcemanager/loadtesting/armloadtesting/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/loadtesting/armloadtesting' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/go.mod b/sdk/resourcemanager/loadtesting/armloadtesting/go.mod index 5d1d539b1498..077a0e2bd81d 100644 --- a/sdk/resourcemanager/loadtesting/armloadtesting/go.mod +++ b/sdk/resourcemanager/loadtesting/armloadtesting/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/go.sum b/sdk/resourcemanager/loadtesting/armloadtesting/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/loadtesting/armloadtesting/go.sum +++ b/sdk/resourcemanager/loadtesting/armloadtesting/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/loadtestservice_live_test.go b/sdk/resourcemanager/loadtesting/armloadtesting/loadtestservice_live_test.go index dd79bf3df069..a06633fd4629 100644 --- a/sdk/resourcemanager/loadtesting/armloadtesting/loadtestservice_live_test.go +++ b/sdk/resourcemanager/loadtesting/armloadtesting/loadtestservice_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/loadtesting/armloadtesting" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type LoadtestserviceTestSuite struct { } func (testsuite *LoadtestserviceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/loadtesting/armloadtesting/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -55,9 +55,6 @@ func (testsuite *LoadtestserviceTestSuite) TearDownSuite() { } func TestLoadtestserviceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LoadtestserviceTestSuite)) } diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/utils_test.go b/sdk/resourcemanager/loadtesting/armloadtesting/utils_test.go new file mode 100644 index 000000000000..b18aedf64352 --- /dev/null +++ b/sdk/resourcemanager/loadtesting/armloadtesting/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armloadtesting_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/loadtesting/armloadtesting/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/logic/armlogic/assets.json b/sdk/resourcemanager/logic/armlogic/assets.json index c9e3987c90e6..77b9fe2c652b 100644 --- a/sdk/resourcemanager/logic/armlogic/assets.json +++ b/sdk/resourcemanager/logic/armlogic/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/logic/armlogic", - "Tag": "go/resourcemanager/logic/armlogic_dcd9a8859d" + "Tag": "go/resourcemanager/logic/armlogic_d618178b9b" } diff --git a/sdk/resourcemanager/logic/armlogic/ci.yml b/sdk/resourcemanager/logic/armlogic/ci.yml index 380f1c7d6f41..a0e2776cbaf4 100644 --- a/sdk/resourcemanager/logic/armlogic/ci.yml +++ b/sdk/resourcemanager/logic/armlogic/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/logic/armlogic' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/logic/armlogic/go.mod b/sdk/resourcemanager/logic/armlogic/go.mod index 582c2bec8132..53236418d6bd 100644 --- a/sdk/resourcemanager/logic/armlogic/go.mod +++ b/sdk/resourcemanager/logic/armlogic/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/logic/armlogic/go.sum b/sdk/resourcemanager/logic/armlogic/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/logic/armlogic/go.sum +++ b/sdk/resourcemanager/logic/armlogic/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/logic/armlogic/integrationaccounts_live_test.go b/sdk/resourcemanager/logic/armlogic/integrationaccounts_live_test.go index 05020d626fed..890fa11eddd1 100644 --- a/sdk/resourcemanager/logic/armlogic/integrationaccounts_live_test.go +++ b/sdk/resourcemanager/logic/armlogic/integrationaccounts_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic" "github.com/stretchr/testify/suite" ) @@ -43,7 +43,7 @@ type IntegrationAccountsTestSuite struct { } func (testsuite *IntegrationAccountsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/logic/armlogic/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -75,9 +75,6 @@ func (testsuite *IntegrationAccountsTestSuite) TearDownSuite() { } func TestIntegrationAccountsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(IntegrationAccountsTestSuite)) } diff --git a/sdk/resourcemanager/logic/armlogic/operations_live_test.go b/sdk/resourcemanager/logic/armlogic/operations_live_test.go index c8f2f17d423b..bfb01f5d618f 100644 --- a/sdk/resourcemanager/logic/armlogic/operations_live_test.go +++ b/sdk/resourcemanager/logic/armlogic/operations_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type OperationsTestSuite struct { } func (testsuite *OperationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/logic/armlogic/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *OperationsTestSuite) TearDownSuite() { } func TestOperationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationsTestSuite)) } diff --git a/sdk/resourcemanager/logic/armlogic/utils_test.go b/sdk/resourcemanager/logic/armlogic/utils_test.go new file mode 100644 index 000000000000..1f91602e8184 --- /dev/null +++ b/sdk/resourcemanager/logic/armlogic/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armlogic_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/logic/armlogic/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/logic/armlogic/workflows_live_test.go b/sdk/resourcemanager/logic/armlogic/workflows_live_test.go index e176afc473c8..3335daf5de3c 100644 --- a/sdk/resourcemanager/logic/armlogic/workflows_live_test.go +++ b/sdk/resourcemanager/logic/armlogic/workflows_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type WorkflowsTestSuite struct { } func (testsuite *WorkflowsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/logic/armlogic/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *WorkflowsTestSuite) TearDownSuite() { } func TestWorkflowsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(WorkflowsTestSuite)) } diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/assets.json b/sdk/resourcemanager/managementgroups/armmanagementgroups/assets.json index b0665c39e9f1..cf0127085534 100644 --- a/sdk/resourcemanager/managementgroups/armmanagementgroups/assets.json +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/managementgroups/armmanagementgroups", - "Tag": "go/resourcemanager/managementgroups/armmanagementgroups_bc5829faf7" + "Tag": "go/resourcemanager/managementgroups/armmanagementgroups_957bf91588" } diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/ci.yml b/sdk/resourcemanager/managementgroups/armmanagementgroups/ci.yml index 6fe4c8137eb0..a9148cef67c1 100644 --- a/sdk/resourcemanager/managementgroups/armmanagementgroups/ci.yml +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/managementgroups/armmanagementgroups' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/go.mod b/sdk/resourcemanager/managementgroups/armmanagementgroups/go.mod index 50cfc193f527..1160eb3f76b4 100644 --- a/sdk/resourcemanager/managementgroups/armmanagementgroups/go.mod +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/go.sum b/sdk/resourcemanager/managementgroups/armmanagementgroups/go.sum index 79a52dc6596f..33b0ae7bd913 100644 --- a/sdk/resourcemanager/managementgroups/armmanagementgroups/go.sum +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/go.sum @@ -2,15 +2,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -19,7 +19,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/management_live_test.go b/sdk/resourcemanager/managementgroups/armmanagementgroups/management_live_test.go index f6f2acce2e39..77c956366598 100644 --- a/sdk/resourcemanager/managementgroups/armmanagementgroups/management_live_test.go +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/management_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ManagementTestSuite struct { } func (testsuite *ManagementTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/managementgroups/armmanagementgroups/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *ManagementTestSuite) TearDownSuite() { } func TestManagementTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ManagementTestSuite)) } diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/utils_test.go b/sdk/resourcemanager/managementgroups/armmanagementgroups/utils_test.go new file mode 100644 index 000000000000..1ffe28f7637c --- /dev/null +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmanagementgroups_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/managementgroups/armmanagementgroups/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/maps/armmaps/assets.json b/sdk/resourcemanager/maps/armmaps/assets.json index 2597e9adb9a1..79f0f374b4cb 100644 --- a/sdk/resourcemanager/maps/armmaps/assets.json +++ b/sdk/resourcemanager/maps/armmaps/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/maps/armmaps", - "Tag": "go/resourcemanager/maps/armmaps_45f7065040" + "Tag": "go/resourcemanager/maps/armmaps_6cdab16675" } diff --git a/sdk/resourcemanager/maps/armmaps/ci.yml b/sdk/resourcemanager/maps/armmaps/ci.yml index 353ab5214d93..fcd38f4e14cf 100644 --- a/sdk/resourcemanager/maps/armmaps/ci.yml +++ b/sdk/resourcemanager/maps/armmaps/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/maps/armmaps' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/maps/armmaps/go.mod b/sdk/resourcemanager/maps/armmaps/go.mod index 254381e98927..7d7bd55f8489 100644 --- a/sdk/resourcemanager/maps/armmaps/go.mod +++ b/sdk/resourcemanager/maps/armmaps/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/maps/armmaps/go.sum b/sdk/resourcemanager/maps/armmaps/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/maps/armmaps/go.sum +++ b/sdk/resourcemanager/maps/armmaps/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/maps/armmaps/maps_live_test.go b/sdk/resourcemanager/maps/armmaps/maps_live_test.go index bcb80d48adf9..04a34cbd9c88 100644 --- a/sdk/resourcemanager/maps/armmaps/maps_live_test.go +++ b/sdk/resourcemanager/maps/armmaps/maps_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maps/armmaps" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type MapsTestSuite struct { } func (testsuite *MapsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/maps/armmaps/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *MapsTestSuite) TearDownSuite() { } func TestMapsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MapsTestSuite)) } diff --git a/sdk/resourcemanager/maps/armmaps/utils_test.go b/sdk/resourcemanager/maps/armmaps/utils_test.go new file mode 100644 index 000000000000..818f51bce9dc --- /dev/null +++ b/sdk/resourcemanager/maps/armmaps/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmaps_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/maps/armmaps/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/mariadb/armmariadb/assets.json b/sdk/resourcemanager/mariadb/armmariadb/assets.json index ecbdbf5f8e39..d4b89010d0dd 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/assets.json +++ b/sdk/resourcemanager/mariadb/armmariadb/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/mariadb/armmariadb", - "Tag": "go/resourcemanager/mariadb/armmariadb_54b684234a" + "Tag": "go/resourcemanager/mariadb/armmariadb_5797e1766a" } diff --git a/sdk/resourcemanager/mariadb/armmariadb/ci.yml b/sdk/resourcemanager/mariadb/armmariadb/ci.yml index 63a7eea64df5..21960def7ab3 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/ci.yml +++ b/sdk/resourcemanager/mariadb/armmariadb/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/mariadb/armmariadb' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/mariadb/armmariadb/go.mod b/sdk/resourcemanager/mariadb/armmariadb/go.mod index 259a4e14d068..b2369515662c 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/go.mod +++ b/sdk/resourcemanager/mariadb/armmariadb/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/mariadb/armmariadb/go.sum b/sdk/resourcemanager/mariadb/armmariadb/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/go.sum +++ b/sdk/resourcemanager/mariadb/armmariadb/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/mariadb/armmariadb/mariadb_live_test.go b/sdk/resourcemanager/mariadb/armmariadb/mariadb_live_test.go index 5e5a7828d649..9306fc15696d 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/mariadb_live_test.go +++ b/sdk/resourcemanager/mariadb/armmariadb/mariadb_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -39,7 +39,7 @@ type MariadbTestSuite struct { } func (testsuite *MariadbTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mariadb/armmariadb/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -66,9 +66,6 @@ func (testsuite *MariadbTestSuite) TearDownSuite() { } func TestMariadbTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MariadbTestSuite)) } diff --git a/sdk/resourcemanager/mariadb/armmariadb/performancerecommendations_live_test.go b/sdk/resourcemanager/mariadb/armmariadb/performancerecommendations_live_test.go index b5348e14a283..d32735041f9c 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/performancerecommendations_live_test.go +++ b/sdk/resourcemanager/mariadb/armmariadb/performancerecommendations_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type PerformanceRecommendationsTestSuite struct { } func (testsuite *PerformanceRecommendationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mariadb/armmariadb/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *PerformanceRecommendationsTestSuite) TearDownSuite() { } func TestPerformanceRecommendationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PerformanceRecommendationsTestSuite)) } diff --git a/sdk/resourcemanager/mariadb/armmariadb/privateendpointconnections_live_test.go b/sdk/resourcemanager/mariadb/armmariadb/privateendpointconnections_live_test.go index d17b0ae33cd3..7377227cb125 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/privateendpointconnections_live_test.go +++ b/sdk/resourcemanager/mariadb/armmariadb/privateendpointconnections_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ type PrivateEndpointConnectionsTestSuite struct { } func (testsuite *PrivateEndpointConnectionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mariadb/armmariadb/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *PrivateEndpointConnectionsTestSuite) TearDownSuite() { } func TestPrivateEndpointConnectionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PrivateEndpointConnectionsTestSuite)) } diff --git a/sdk/resourcemanager/mariadb/armmariadb/serversecurityalertpolicies_live_test.go b/sdk/resourcemanager/mariadb/armmariadb/serversecurityalertpolicies_live_test.go index f459f98b52f7..8427b52a2e98 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/serversecurityalertpolicies_live_test.go +++ b/sdk/resourcemanager/mariadb/armmariadb/serversecurityalertpolicies_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type ServerSecurityAlertPoliciesTestSuite struct { } func (testsuite *ServerSecurityAlertPoliciesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mariadb/armmariadb/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *ServerSecurityAlertPoliciesTestSuite) TearDownSuite() { } func TestServerSecurityAlertPoliciesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServerSecurityAlertPoliciesTestSuite)) } diff --git a/sdk/resourcemanager/mariadb/armmariadb/utils_test.go b/sdk/resourcemanager/mariadb/armmariadb/utils_test.go new file mode 100644 index 000000000000..12c62749f0cc --- /dev/null +++ b/sdk/resourcemanager/mariadb/armmariadb/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmariadb_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/mariadb/armmariadb/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/accounts_live_test.go b/sdk/resourcemanager/mediaservices/armmediaservices/accounts_live_test.go index c37a4eac35e2..14534dfc5e5c 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/accounts_live_test.go +++ b/sdk/resourcemanager/mediaservices/armmediaservices/accounts_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices/v3" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type AccountsTestSuite struct { } func (testsuite *AccountsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mediaservices/armmediaservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *AccountsTestSuite) TearDownSuite() { } func TestAccountsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AccountsTestSuite)) } diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/assets.json b/sdk/resourcemanager/mediaservices/armmediaservices/assets.json index 33300417693c..d40b8711390a 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/assets.json +++ b/sdk/resourcemanager/mediaservices/armmediaservices/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/mediaservices/armmediaservices", - "Tag": "go/resourcemanager/mediaservices/armmediaservices_816a2c4d41" + "Tag": "go/resourcemanager/mediaservices/armmediaservices_b7bae5e7c0" } diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/ci.yml b/sdk/resourcemanager/mediaservices/armmediaservices/ci.yml index d5e9f39ff99d..5b1558d3117e 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/ci.yml +++ b/sdk/resourcemanager/mediaservices/armmediaservices/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/mediaservices/armmediaservices' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/encoding_live_test.go b/sdk/resourcemanager/mediaservices/armmediaservices/encoding_live_test.go index 9dcb5092068f..03a3769a079d 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/encoding_live_test.go +++ b/sdk/resourcemanager/mediaservices/armmediaservices/encoding_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices/v3" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -39,7 +39,7 @@ type EncodingTestSuite struct { } func (testsuite *EncodingTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mediaservices/armmediaservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -64,9 +64,6 @@ func (testsuite *EncodingTestSuite) TearDownSuite() { } func TestEncodingTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(EncodingTestSuite)) } diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/go.mod b/sdk/resourcemanager/mediaservices/armmediaservices/go.mod index b7efee2ca845..616a9898d8af 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/go.mod +++ b/sdk/resourcemanager/mediaservices/armmediaservices/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/go.sum b/sdk/resourcemanager/mediaservices/armmediaservices/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/go.sum +++ b/sdk/resourcemanager/mediaservices/armmediaservices/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/metadata_live_test.go b/sdk/resourcemanager/mediaservices/armmediaservices/metadata_live_test.go index a89c3e6f1439..dbcf745ba91a 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/metadata_live_test.go +++ b/sdk/resourcemanager/mediaservices/armmediaservices/metadata_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices/v3" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -44,7 +44,7 @@ type MetadataTestSuite struct { } func (testsuite *MetadataTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mediaservices/armmediaservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -72,9 +72,6 @@ func (testsuite *MetadataTestSuite) TearDownSuite() { } func TestMetadataTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MetadataTestSuite)) } diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/streamingservice_live_test.go b/sdk/resourcemanager/mediaservices/armmediaservices/streamingservice_live_test.go index a918b975c70a..e7c44bdbfac3 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/streamingservice_live_test.go +++ b/sdk/resourcemanager/mediaservices/armmediaservices/streamingservice_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices/v3" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -42,7 +42,7 @@ type StreamingserviceTestSuite struct { } func (testsuite *StreamingserviceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mediaservices/armmediaservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -68,9 +68,6 @@ func (testsuite *StreamingserviceTestSuite) TearDownSuite() { } func TestStreamingserviceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(StreamingserviceTestSuite)) } diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/utils_test.go b/sdk/resourcemanager/mediaservices/armmediaservices/utils_test.go new file mode 100644 index 000000000000..83b3c4995ba7 --- /dev/null +++ b/sdk/resourcemanager/mediaservices/armmediaservices/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmediaservices_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/mediaservices/armmediaservices/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/assets.json b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/assets.json index 4150c3510b77..e73f1ce804ef 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/assets.json +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/mobilenetwork/armmobilenetwork", - "Tag": "go/resourcemanager/mobilenetwork/armmobilenetwork_5b0981dc4e" + "Tag": "go/resourcemanager/mobilenetwork/armmobilenetwork_1f7e0cc9ac" } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/attacheddatanetwork_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/attacheddatanetwork_live_test.go index 42b0c0f914a1..5fb17534646a 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/attacheddatanetwork_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/attacheddatanetwork_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -39,7 +39,7 @@ type AttachedDataNetworkTestSuite struct { } func (testsuite *AttachedDataNetworkTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -65,9 +65,6 @@ func (testsuite *AttachedDataNetworkTestSuite) TearDownSuite() { } func TestAttachedDataNetworkTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AttachedDataNetworkTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/ci.yml b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/ci.yml index f23584029586..52d821b985f8 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/ci.yml +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/mobilenetwork/armmobilenetwork' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/datanetwork_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/datanetwork_live_test.go index 9675ee3f22a3..3b740cfadf1d 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/datanetwork_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/datanetwork_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type DataNetworkTestSuite struct { } func (testsuite *DataNetworkTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *DataNetworkTestSuite) TearDownSuite() { } func TestDataNetworkTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DataNetworkTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.mod b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.mod index 03eaaf71a66a..b52882987a94 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.mod +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.sum b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.sum +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/mobilenetwork_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/mobilenetwork_live_test.go index b0dde38c0eca..fd52d19b6791 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/mobilenetwork_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/mobilenetwork_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type MobileNetworkTestSuite struct { } func (testsuite *MobileNetworkTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -55,9 +55,6 @@ func (testsuite *MobileNetworkTestSuite) TearDownSuite() { } func TestMobileNetworkTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MobileNetworkTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/operation_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/operation_live_test.go index 7c8e2c377e92..3ab066e7b6b2 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/operation_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/operation_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type OperationTestSuite struct { } func (testsuite *OperationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -52,9 +52,6 @@ func (testsuite *OperationTestSuite) TearDownSuite() { } func TestOperationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcorecontrolplane_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcorecontrolplane_live_test.go index 4b1c76dab6b0..e7677d14668a 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcorecontrolplane_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcorecontrolplane_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type PacketCoreControlPlaneTestSuite struct { } func (testsuite *PacketCoreControlPlaneTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *PacketCoreControlPlaneTestSuite) TearDownSuite() { } func TestPacketCoreControlPlaneTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PacketCoreControlPlaneTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcoredataplane_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcoredataplane_live_test.go index 80578cf51f7a..69ffc0092dee 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcoredataplane_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/packetcoredataplane_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type PacketCoreDataPlaneTestSuite struct { } func (testsuite *PacketCoreDataPlaneTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -63,9 +63,6 @@ func (testsuite *PacketCoreDataPlaneTestSuite) TearDownSuite() { } func TestPacketCoreDataPlaneTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PacketCoreDataPlaneTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/service_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/service_live_test.go index 3f6c60ab1e34..3a5d85ad921f 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/service_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/service_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type ServiceTestSuite struct { } func (testsuite *ServiceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *ServiceTestSuite) TearDownSuite() { } func TestServiceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServiceTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/sim_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/sim_live_test.go index f22cf60c0b5e..6ea03a184a49 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/sim_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/sim_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type SimTestSuite struct { } func (testsuite *SimTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *SimTestSuite) TearDownSuite() { } func TestSimTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SimTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simgroup_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simgroup_live_test.go index 8eded3e90857..f17d796205b2 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simgroup_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simgroup_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type SimGroupTestSuite struct { } func (testsuite *SimGroupTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *SimGroupTestSuite) TearDownSuite() { } func TestSimGroupTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SimGroupTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simpolicy_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simpolicy_live_test.go index 5d53c9a695aa..399955173eff 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simpolicy_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/simpolicy_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -41,7 +41,7 @@ type SimPolicyTestSuite struct { } func (testsuite *SimPolicyTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -67,9 +67,6 @@ func (testsuite *SimPolicyTestSuite) TearDownSuite() { } func TestSimPolicyTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SimPolicyTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/site_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/site_live_test.go index 844b6fa16843..7702c9f461fc 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/site_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/site_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type SiteTestSuite struct { } func (testsuite *SiteTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *SiteTestSuite) TearDownSuite() { } func TestSiteTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SiteTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/slice_live_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/slice_live_test.go index 05da119ca933..7cf4bd1f6e74 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/slice_live_test.go +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/slice_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type SliceTestSuite struct { } func (testsuite *SliceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *SliceTestSuite) TearDownSuite() { } func TestSliceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SliceTestSuite)) } diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/utils_test.go b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/utils_test.go new file mode 100644 index 000000000000..f86d11b7d2d5 --- /dev/null +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmobilenetwork_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/mobilenetwork/armmobilenetwork/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go b/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go index 5955f2500fe6..5a8182f3894c 100644 --- a/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ActiongroupsTestSuite struct { } func (testsuite *ActiongroupsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.actionGroupName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "actiongroupna", 19, false) @@ -53,9 +53,6 @@ func (testsuite *ActiongroupsTestSuite) TearDownSuite() { } func TestActiongroupsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ActiongroupsTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go b/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go index 0df332fd0f5a..33d82669e62d 100644 --- a/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ActivitylogalertsTestSuite struct { } func (testsuite *ActivitylogalertsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.activityLogAlertName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "activitylogalertna", 24, false) @@ -53,9 +53,6 @@ func (testsuite *ActivitylogalertsTestSuite) TearDownSuite() { } func TestActivitylogalertsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ActivitylogalertsTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/assets.json b/sdk/resourcemanager/monitor/armmonitor/assets.json index 23aad853d29b..649b0f872544 100644 --- a/sdk/resourcemanager/monitor/armmonitor/assets.json +++ b/sdk/resourcemanager/monitor/armmonitor/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/monitor/armmonitor", - "Tag": "go/resourcemanager/monitor/armmonitor_9e08720799" + "Tag": "go/resourcemanager/monitor/armmonitor_fcce349396" } diff --git a/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go b/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go index 7adb94a0a15f..d26bd8412009 100644 --- a/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -39,7 +39,7 @@ type AutoscaleTestSuite struct { } func (testsuite *AutoscaleTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.autoscaleSettingName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "autoscalesettingna", 24, false) @@ -61,9 +61,6 @@ func (testsuite *AutoscaleTestSuite) TearDownSuite() { } func TestAutoscaleTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AutoscaleTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/ci.yml b/sdk/resourcemanager/monitor/armmonitor/ci.yml index 1aaffa7c1ca8..c49c982eb036 100644 --- a/sdk/resourcemanager/monitor/armmonitor/ci.yml +++ b/sdk/resourcemanager/monitor/armmonitor/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/monitor/armmonitor' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go b/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go index 5a841f86a797..4c273b211600 100644 --- a/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type DatacollectionendpointsTestSuite struct { } func (testsuite *DatacollectionendpointsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.dataCollectionEndpointName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "datacollectionendpointna", 30, false) @@ -53,9 +53,6 @@ func (testsuite *DatacollectionendpointsTestSuite) TearDownSuite() { } func TestDatacollectionendpointsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DatacollectionendpointsTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go b/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go index 1db63bc17b12..10fa0451fd16 100644 --- a/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -39,7 +39,7 @@ type DatacollectionrulesTestSuite struct { } func (testsuite *DatacollectionrulesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.dataCollectionRuleName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "datacollectionrulena", 26, false) @@ -63,9 +63,6 @@ func (testsuite *DatacollectionrulesTestSuite) TearDownSuite() { } func TestDatacollectionrulesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DatacollectionrulesTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/go.mod b/sdk/resourcemanager/monitor/armmonitor/go.mod index 911702db782e..ef7734cb9a28 100644 --- a/sdk/resourcemanager/monitor/armmonitor/go.mod +++ b/sdk/resourcemanager/monitor/armmonitor/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/monitor/armmonitor/go.sum b/sdk/resourcemanager/monitor/armmonitor/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/monitor/armmonitor/go.sum +++ b/sdk/resourcemanager/monitor/armmonitor/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go b/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go index b0f05ebec9cd..5166683ebee4 100644 --- a/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -35,7 +35,7 @@ type LogprofilesTestSuite struct { } func (testsuite *LogprofilesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.storageAccountName = "monitorsana" @@ -56,9 +56,6 @@ func (testsuite *LogprofilesTestSuite) TearDownSuite() { } func TestLogprofilesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LogprofilesTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go b/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go index d19ae7d3b1f8..ebb5377aa8f2 100644 --- a/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type MetricalertsTestSuite struct { } func (testsuite *MetricalertsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.ruleName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "metricalertna", 19, false) @@ -60,9 +60,6 @@ func (testsuite *MetricalertsTestSuite) TearDownSuite() { } func TestMetricalertsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MetricalertsTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go b/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go index de014580dd95..34922a04250e 100644 --- a/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go +++ b/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type PrivatelinkscopesTestSuite struct { } func (testsuite *PrivatelinkscopesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.scopeName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "linkscopena", 17, false) @@ -53,9 +53,6 @@ func (testsuite *PrivatelinkscopesTestSuite) TearDownSuite() { } func TestPrivatelinkscopesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PrivatelinkscopesTestSuite)) } diff --git a/sdk/resourcemanager/monitor/armmonitor/utils_test.go b/sdk/resourcemanager/monitor/armmonitor/utils_test.go new file mode 100644 index 000000000000..fa18c8a37a29 --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmonitor_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/monitor/armmonitor/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/msi/armmsi/assets.json b/sdk/resourcemanager/msi/armmsi/assets.json index c2dd32527e4e..c5110057c685 100644 --- a/sdk/resourcemanager/msi/armmsi/assets.json +++ b/sdk/resourcemanager/msi/armmsi/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/msi/armmsi", - "Tag": "go/resourcemanager/msi/armmsi_80e83a5723" + "Tag": "go/resourcemanager/msi/armmsi_9c237db2f0" } diff --git a/sdk/resourcemanager/msi/armmsi/ci.yml b/sdk/resourcemanager/msi/armmsi/ci.yml index 6269c9f0ba6b..da687bfa73a5 100644 --- a/sdk/resourcemanager/msi/armmsi/ci.yml +++ b/sdk/resourcemanager/msi/armmsi/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/msi/armmsi' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/msi/armmsi/go.mod b/sdk/resourcemanager/msi/armmsi/go.mod index 294102e0c3d2..a4dc94bb7b34 100644 --- a/sdk/resourcemanager/msi/armmsi/go.mod +++ b/sdk/resourcemanager/msi/armmsi/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/msi/armmsi/go.sum b/sdk/resourcemanager/msi/armmsi/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/msi/armmsi/go.sum +++ b/sdk/resourcemanager/msi/armmsi/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/msi/armmsi/managedidentity_live_test.go b/sdk/resourcemanager/msi/armmsi/managedidentity_live_test.go index 9d995107acac..4650dc422474 100644 --- a/sdk/resourcemanager/msi/armmsi/managedidentity_live_test.go +++ b/sdk/resourcemanager/msi/armmsi/managedidentity_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type ManagedIdentityTestSuite struct { } func (testsuite *ManagedIdentityTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/msi/armmsi/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *ManagedIdentityTestSuite) TearDownSuite() { } func TestManagedIdentityTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ManagedIdentityTestSuite)) } diff --git a/sdk/resourcemanager/msi/armmsi/utils_test.go b/sdk/resourcemanager/msi/armmsi/utils_test.go new file mode 100644 index 000000000000..98122392cd44 --- /dev/null +++ b/sdk/resourcemanager/msi/armmsi/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armmsi_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/msi/armmsi/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/network/armnetwork/applicationgatewaywafdynamicmanifests_live_test.go b/sdk/resourcemanager/network/armnetwork/applicationgatewaywafdynamicmanifests_live_test.go index de50a50c9ed7..8c3a8e0ca88e 100644 --- a/sdk/resourcemanager/network/armnetwork/applicationgatewaywafdynamicmanifests_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/applicationgatewaywafdynamicmanifests_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type ApplicationGatewayWafDynamicManifestsTestSuite struct { } func (testsuite *ApplicationGatewayWafDynamicManifestsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *ApplicationGatewayWafDynamicManifestsTestSuite) TearDownSuite() } func TestApplicationGatewayWafDynamicManifestsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApplicationGatewayWafDynamicManifestsTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/applicationsecuritygroup_live_test.go b/sdk/resourcemanager/network/armnetwork/applicationsecuritygroup_live_test.go index 3a975e2227a0..6708167101b3 100644 --- a/sdk/resourcemanager/network/armnetwork/applicationsecuritygroup_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/applicationsecuritygroup_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ApplicationSecurityGroupTestSuite struct { } func (testsuite *ApplicationSecurityGroupTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *ApplicationSecurityGroupTestSuite) TearDownSuite() { } func TestApplicationSecurityGroupTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ApplicationSecurityGroupTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/assets.json b/sdk/resourcemanager/network/armnetwork/assets.json index 379c7c58940d..55cce42be5b4 100644 --- a/sdk/resourcemanager/network/armnetwork/assets.json +++ b/sdk/resourcemanager/network/armnetwork/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/network/armnetwork", - "Tag": "go/resourcemanager/network/armnetwork_215ad4bcdc" + "Tag": "go/resourcemanager/network/armnetwork_3a05da8398" } diff --git a/sdk/resourcemanager/network/armnetwork/availabledelegations_live_test.go b/sdk/resourcemanager/network/armnetwork/availabledelegations_live_test.go index 3215842822f4..bc09cc5405ba 100644 --- a/sdk/resourcemanager/network/armnetwork/availabledelegations_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/availabledelegations_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type AvailableDelegationsTestSuite struct { } func (testsuite *AvailableDelegationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *AvailableDelegationsTestSuite) TearDownSuite() { } func TestAvailableDelegationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AvailableDelegationsTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/availableservicealiases_live_test.go b/sdk/resourcemanager/network/armnetwork/availableservicealiases_live_test.go index 1bf7e1e65072..3c5ca5458bf3 100644 --- a/sdk/resourcemanager/network/armnetwork/availableservicealiases_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/availableservicealiases_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type AvailableServiceAliasesTestSuite struct { } func (testsuite *AvailableServiceAliasesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *AvailableServiceAliasesTestSuite) TearDownSuite() { } func TestAvailableServiceAliasesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AvailableServiceAliasesTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/azurefirewallfqdntag_live_test.go b/sdk/resourcemanager/network/armnetwork/azurefirewallfqdntag_live_test.go index 69022f3b392b..bd94811f5045 100644 --- a/sdk/resourcemanager/network/armnetwork/azurefirewallfqdntag_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/azurefirewallfqdntag_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type AzureFirewallFqdnTagTestSuite struct { } func (testsuite *AzureFirewallFqdnTagTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *AzureFirewallFqdnTagTestSuite) TearDownSuite() { } func TestAzureFirewallFqdnTagTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AzureFirewallFqdnTagTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/azurewebcategory_live_test.go b/sdk/resourcemanager/network/armnetwork/azurewebcategory_live_test.go index 4b07f30e1939..12ceef95e9d4 100644 --- a/sdk/resourcemanager/network/armnetwork/azurewebcategory_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/azurewebcategory_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type AzureWebCategoryTestSuite struct { } func (testsuite *AzureWebCategoryTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *AzureWebCategoryTestSuite) TearDownSuite() { } func TestAzureWebCategoryTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AzureWebCategoryTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/bastionhost_live_test.go b/sdk/resourcemanager/network/armnetwork/bastionhost_live_test.go index 872106752dd2..7a1c26dc0ae3 100644 --- a/sdk/resourcemanager/network/armnetwork/bastionhost_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/bastionhost_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type BastionHostTestSuite struct { } func (testsuite *BastionHostTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *BastionHostTestSuite) TearDownSuite() { } func TestBastionHostTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(BastionHostTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/checkdnsavailability_live_test.go b/sdk/resourcemanager/network/armnetwork/checkdnsavailability_live_test.go index 12f07a0bdc5a..29d563b11c9a 100644 --- a/sdk/resourcemanager/network/armnetwork/checkdnsavailability_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/checkdnsavailability_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type CheckDnsAvailabilityTestSuite struct { } func (testsuite *CheckDnsAvailabilityTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *CheckDnsAvailabilityTestSuite) TearDownSuite() { } func TestCheckDnsAvailabilityTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CheckDnsAvailabilityTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/ci.yml b/sdk/resourcemanager/network/armnetwork/ci.yml index 3277d1bbcebf..358b9309315f 100644 --- a/sdk/resourcemanager/network/armnetwork/ci.yml +++ b/sdk/resourcemanager/network/armnetwork/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/network/armnetwork' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/network/armnetwork/customipprefix_live_test.go b/sdk/resourcemanager/network/armnetwork/customipprefix_live_test.go index 3e6c2774bbb6..cf6817419cad 100644 --- a/sdk/resourcemanager/network/armnetwork/customipprefix_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/customipprefix_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type CustomIpPrefixTestSuite struct { } func (testsuite *CustomIpPrefixTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *CustomIpPrefixTestSuite) TearDownSuite() { } func TestCustomIpPrefixTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(CustomIpPrefixTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/ddosprotectionplan_live_test.go b/sdk/resourcemanager/network/armnetwork/ddosprotectionplan_live_test.go index 710e5170988d..2f0313919547 100644 --- a/sdk/resourcemanager/network/armnetwork/ddosprotectionplan_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/ddosprotectionplan_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type DdosProtectionPlanTestSuite struct { } func (testsuite *DdosProtectionPlanTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *DdosProtectionPlanTestSuite) TearDownSuite() { } func TestDdosProtectionPlanTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DdosProtectionPlanTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/endpointservice_live_test.go b/sdk/resourcemanager/network/armnetwork/endpointservice_live_test.go index 1a6fded0ecf6..9ffacae5a249 100644 --- a/sdk/resourcemanager/network/armnetwork/endpointservice_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/endpointservice_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type EndpointServiceTestSuite struct { } func (testsuite *EndpointServiceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *EndpointServiceTestSuite) TearDownSuite() { } func TestEndpointServiceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(EndpointServiceTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/expressroutecircuit_live_test.go b/sdk/resourcemanager/network/armnetwork/expressroutecircuit_live_test.go index 512e2c59fa1a..5b9a271873e1 100644 --- a/sdk/resourcemanager/network/armnetwork/expressroutecircuit_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/expressroutecircuit_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type ExpressRouteCircuitTestSuite struct { } func (testsuite *ExpressRouteCircuitTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *ExpressRouteCircuitTestSuite) TearDownSuite() { } func TestExpressRouteCircuitTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ExpressRouteCircuitTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/firewallpolicy_live_test.go b/sdk/resourcemanager/network/armnetwork/firewallpolicy_live_test.go index b668a36a889a..aca5f405d564 100644 --- a/sdk/resourcemanager/network/armnetwork/firewallpolicy_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/firewallpolicy_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type FirewallPolicyTestSuite struct { } func (testsuite *FirewallPolicyTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *FirewallPolicyTestSuite) TearDownSuite() { } func TestFirewallPolicyTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(FirewallPolicyTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/go.mod b/sdk/resourcemanager/network/armnetwork/go.mod index 727db9fc7ffe..c3d18ec96a7e 100644 --- a/sdk/resourcemanager/network/armnetwork/go.mod +++ b/sdk/resourcemanager/network/armnetwork/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/network/armnetwork/go.sum b/sdk/resourcemanager/network/armnetwork/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/network/armnetwork/go.sum +++ b/sdk/resourcemanager/network/armnetwork/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/network/armnetwork/ipgroups_live_test.go b/sdk/resourcemanager/network/armnetwork/ipgroups_live_test.go index 856daa6b11cd..ae150862aabe 100644 --- a/sdk/resourcemanager/network/armnetwork/ipgroups_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/ipgroups_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type IpGroupsTestSuite struct { } func (testsuite *IpGroupsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *IpGroupsTestSuite) TearDownSuite() { } func TestIpGroupsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(IpGroupsTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/loadbalancer_live_test.go b/sdk/resourcemanager/network/armnetwork/loadbalancer_live_test.go index 36823afc16c4..9782e0b903c8 100644 --- a/sdk/resourcemanager/network/armnetwork/loadbalancer_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/loadbalancer_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type LoadBalancerTestSuite struct { } func (testsuite *LoadBalancerTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *LoadBalancerTestSuite) TearDownSuite() { } func TestLoadBalancerTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LoadBalancerTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/natgateway_live_test.go b/sdk/resourcemanager/network/armnetwork/natgateway_live_test.go index c9561d49e173..c26fcb4050ae 100644 --- a/sdk/resourcemanager/network/armnetwork/natgateway_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/natgateway_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type NatGatewayTestSuite struct { } func (testsuite *NatGatewayTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *NatGatewayTestSuite) TearDownSuite() { } func TestNatGatewayTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NatGatewayTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkinterface_live_test.go b/sdk/resourcemanager/network/armnetwork/networkinterface_live_test.go index 77155d55cd4c..92706da7e148 100644 --- a/sdk/resourcemanager/network/armnetwork/networkinterface_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkinterface_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type NetworkInterfaceTestSuite struct { } func (testsuite *NetworkInterfaceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *NetworkInterfaceTestSuite) TearDownSuite() { } func TestNetworkInterfaceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkInterfaceTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkmanager_live_test.go b/sdk/resourcemanager/network/armnetwork/networkmanager_live_test.go index 0756ec0aec0f..31adefcf7a7e 100644 --- a/sdk/resourcemanager/network/armnetwork/networkmanager_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkmanager_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type NetworkManagerTestSuite struct { } func (testsuite *NetworkManagerTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *NetworkManagerTestSuite) TearDownSuite() { } func TestNetworkManagerTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkManagerTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkmanagerconnection_live_test.go b/sdk/resourcemanager/network/armnetwork/networkmanagerconnection_live_test.go index d071dbf0bba8..883c13b27467 100644 --- a/sdk/resourcemanager/network/armnetwork/networkmanagerconnection_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkmanagerconnection_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type NetworkManagerConnectionTestSuite struct { } func (testsuite *NetworkManagerConnectionTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *NetworkManagerConnectionTestSuite) TearDownSuite() { } func TestNetworkManagerConnectionTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkManagerConnectionTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkmanagerconnectivityconfiguration_live_test.go b/sdk/resourcemanager/network/armnetwork/networkmanagerconnectivityconfiguration_live_test.go index 799aac33bc02..d99444466c6b 100644 --- a/sdk/resourcemanager/network/armnetwork/networkmanagerconnectivityconfiguration_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkmanagerconnectivityconfiguration_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type NetworkManagerConnectivityConfigurationTestSuite struct { } func (testsuite *NetworkManagerConnectivityConfigurationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *NetworkManagerConnectivityConfigurationTestSuite) TearDownSuite } func TestNetworkManagerConnectivityConfigurationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkManagerConnectivityConfigurationTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkmanagergroup_live_test.go b/sdk/resourcemanager/network/armnetwork/networkmanagergroup_live_test.go index 4ee2722724b4..706a31e2e62c 100644 --- a/sdk/resourcemanager/network/armnetwork/networkmanagergroup_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkmanagergroup_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type NetworkManagerGroupTestSuite struct { } func (testsuite *NetworkManagerGroupTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *NetworkManagerGroupTestSuite) TearDownSuite() { } func TestNetworkManagerGroupTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkManagerGroupTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkmanagersecurityadminconfiguration_live_test.go b/sdk/resourcemanager/network/armnetwork/networkmanagersecurityadminconfiguration_live_test.go index ccd4b9c5ad4c..43f811fbf9cc 100644 --- a/sdk/resourcemanager/network/armnetwork/networkmanagersecurityadminconfiguration_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkmanagersecurityadminconfiguration_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type NetworkManagerSecurityAdminConfigurationTestSuite struct { } func (testsuite *NetworkManagerSecurityAdminConfigurationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -64,9 +64,6 @@ func (testsuite *NetworkManagerSecurityAdminConfigurationTestSuite) TearDownSuit } func TestNetworkManagerSecurityAdminConfigurationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkManagerSecurityAdminConfigurationTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkprofile_live_test.go b/sdk/resourcemanager/network/armnetwork/networkprofile_live_test.go index 0bf4201e73d8..a595bac99195 100644 --- a/sdk/resourcemanager/network/armnetwork/networkprofile_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkprofile_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type NetworkProfileTestSuite struct { } func (testsuite *NetworkProfileTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *NetworkProfileTestSuite) TearDownSuite() { } func TestNetworkProfileTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkProfileTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networksecuritygroup_live_test.go b/sdk/resourcemanager/network/armnetwork/networksecuritygroup_live_test.go index d81d762e48c9..94f5d7a03051 100644 --- a/sdk/resourcemanager/network/armnetwork/networksecuritygroup_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networksecuritygroup_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type NetworkSecurityGroupTestSuite struct { } func (testsuite *NetworkSecurityGroupTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *NetworkSecurityGroupTestSuite) TearDownSuite() { } func TestNetworkSecurityGroupTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkSecurityGroupTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/networkwatcher_live_test.go b/sdk/resourcemanager/network/armnetwork/networkwatcher_live_test.go index 607f072c707e..331af0613a1f 100644 --- a/sdk/resourcemanager/network/armnetwork/networkwatcher_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/networkwatcher_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type NetworkWatcherTestSuite struct { } func (testsuite *NetworkWatcherTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *NetworkWatcherTestSuite) TearDownSuite() { } func TestNetworkWatcherTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NetworkWatcherTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/operation_live_test.go b/sdk/resourcemanager/network/armnetwork/operation_live_test.go index 8f02607c4011..b4ac0f261bdb 100644 --- a/sdk/resourcemanager/network/armnetwork/operation_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/operation_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type OperationTestSuite struct { } func (testsuite *OperationTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *OperationTestSuite) TearDownSuite() { } func TestOperationTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/publicipaddress_live_test.go b/sdk/resourcemanager/network/armnetwork/publicipaddress_live_test.go index 5042712faeed..736354f669d8 100644 --- a/sdk/resourcemanager/network/armnetwork/publicipaddress_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/publicipaddress_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type PublicIpAddressTestSuite struct { } func (testsuite *PublicIpAddressTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *PublicIpAddressTestSuite) TearDownSuite() { } func TestPublicIpAddressTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PublicIpAddressTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/publicipprefix_live_test.go b/sdk/resourcemanager/network/armnetwork/publicipprefix_live_test.go index a7b003d7a9d8..71d41ad9a16c 100644 --- a/sdk/resourcemanager/network/armnetwork/publicipprefix_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/publicipprefix_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type PublicIpPrefixTestSuite struct { } func (testsuite *PublicIpPrefixTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *PublicIpPrefixTestSuite) TearDownSuite() { } func TestPublicIpPrefixTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PublicIpPrefixTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/routetable_live_test.go b/sdk/resourcemanager/network/armnetwork/routetable_live_test.go index af8d15786112..47051c27515e 100644 --- a/sdk/resourcemanager/network/armnetwork/routetable_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/routetable_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type RouteTableTestSuite struct { } func (testsuite *RouteTableTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *RouteTableTestSuite) TearDownSuite() { } func TestRouteTableTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RouteTableTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/servicecommunity_live_test.go b/sdk/resourcemanager/network/armnetwork/servicecommunity_live_test.go index cc302e71845b..64488afeec39 100644 --- a/sdk/resourcemanager/network/armnetwork/servicecommunity_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/servicecommunity_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type ServiceCommunityTestSuite struct { } func (testsuite *ServiceCommunityTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *ServiceCommunityTestSuite) TearDownSuite() { } func TestServiceCommunityTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServiceCommunityTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/serviceendpointpolicy_live_test.go b/sdk/resourcemanager/network/armnetwork/serviceendpointpolicy_live_test.go index b8a331a00784..5f0b3f8592e8 100644 --- a/sdk/resourcemanager/network/armnetwork/serviceendpointpolicy_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/serviceendpointpolicy_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ServiceEndpointPolicyTestSuite struct { } func (testsuite *ServiceEndpointPolicyTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *ServiceEndpointPolicyTestSuite) TearDownSuite() { } func TestServiceEndpointPolicyTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServiceEndpointPolicyTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/servicetags_live_test.go b/sdk/resourcemanager/network/armnetwork/servicetags_live_test.go index 8f18b707d5bc..bed7ff6b46cf 100644 --- a/sdk/resourcemanager/network/armnetwork/servicetags_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/servicetags_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type ServiceTagsTestSuite struct { } func (testsuite *ServiceTagsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *ServiceTagsTestSuite) TearDownSuite() { } func TestServiceTagsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServiceTagsTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/usage_live_test.go b/sdk/resourcemanager/network/armnetwork/usage_live_test.go index 2e92b8333735..21a16641ff39 100644 --- a/sdk/resourcemanager/network/armnetwork/usage_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/usage_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type UsageTestSuite struct { } func (testsuite *UsageTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *UsageTestSuite) TearDownSuite() { } func TestUsageTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(UsageTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/utils_test.go b/sdk/resourcemanager/network/armnetwork/utils_test.go new file mode 100644 index 000000000000..dda4eaf00275 --- /dev/null +++ b/sdk/resourcemanager/network/armnetwork/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armnetwork_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/network/armnetwork/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/network/armnetwork/virtualnetwork_live_test.go b/sdk/resourcemanager/network/armnetwork/virtualnetwork_live_test.go index 3fa0dfe37339..3bdc592353b4 100644 --- a/sdk/resourcemanager/network/armnetwork/virtualnetwork_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/virtualnetwork_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type VirtualNetworkTestSuite struct { } func (testsuite *VirtualNetworkTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *VirtualNetworkTestSuite) TearDownSuite() { } func TestVirtualNetworkTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualNetworkTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/virtualnetworkgateway_live_test.go b/sdk/resourcemanager/network/armnetwork/virtualnetworkgateway_live_test.go index 8fc04da673c9..7feb33f7ea83 100644 --- a/sdk/resourcemanager/network/armnetwork/virtualnetworkgateway_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/virtualnetworkgateway_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type VirtualNetworkGatewayTestSuite struct { } func (testsuite *VirtualNetworkGatewayTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -62,9 +62,6 @@ func (testsuite *VirtualNetworkGatewayTestSuite) TearDownSuite() { } func TestVirtualNetworkGatewayTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualNetworkGatewayTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/virtualwan_live_test.go b/sdk/resourcemanager/network/armnetwork/virtualwan_live_test.go index 03cca2a9a37d..8303a1c4186f 100644 --- a/sdk/resourcemanager/network/armnetwork/virtualwan_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/virtualwan_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -40,7 +40,7 @@ type VirtualWanTestSuite struct { } func (testsuite *VirtualWanTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -67,9 +67,6 @@ func (testsuite *VirtualWanTestSuite) TearDownSuite() { } func TestVirtualWanTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(VirtualWanTestSuite)) } diff --git a/sdk/resourcemanager/network/armnetwork/webapplicationfirewall_live_test.go b/sdk/resourcemanager/network/armnetwork/webapplicationfirewall_live_test.go index f8e64d08290f..a254945da6e7 100644 --- a/sdk/resourcemanager/network/armnetwork/webapplicationfirewall_live_test.go +++ b/sdk/resourcemanager/network/armnetwork/webapplicationfirewall_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type WebapplicationfirewallTestSuite struct { } func (testsuite *WebapplicationfirewallTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/network/armnetwork/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *WebapplicationfirewallTestSuite) TearDownSuite() { } func TestWebapplicationfirewallTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(WebapplicationfirewallTestSuite)) } diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/assets.json b/sdk/resourcemanager/notificationhubs/armnotificationhubs/assets.json index 68c3d781c9cc..958b3b36d058 100644 --- a/sdk/resourcemanager/notificationhubs/armnotificationhubs/assets.json +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/notificationhubs/armnotificationhubs", - "Tag": "go/resourcemanager/notificationhubs/armnotificationhubs_afeff7bea4" + "Tag": "go/resourcemanager/notificationhubs/armnotificationhubs_f0dd4a6803" } diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/ci.yml b/sdk/resourcemanager/notificationhubs/armnotificationhubs/ci.yml index 5d246e8f0ee7..6930bf280f8a 100644 --- a/sdk/resourcemanager/notificationhubs/armnotificationhubs/ci.yml +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/notificationhubs/armnotificationhubs' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.mod b/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.mod index d08186b221fc..dfdaa561e75d 100644 --- a/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.mod +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.sum b/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.sum +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/notificationhubs_live_test.go b/sdk/resourcemanager/notificationhubs/armnotificationhubs/notificationhubs_live_test.go index 8d2229b8505d..13e80d4a924e 100644 --- a/sdk/resourcemanager/notificationhubs/armnotificationhubs/notificationhubs_live_test.go +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/notificationhubs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/notificationhubs/armnotificationhubs/v2" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type NotificationhubsTestSuite struct { } func (testsuite *NotificationhubsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/notificationhubs/armnotificationhubs/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -63,9 +63,6 @@ func (testsuite *NotificationhubsTestSuite) TearDownSuite() { } func TestNotificationhubsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NotificationhubsTestSuite)) } diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/utils_test.go b/sdk/resourcemanager/notificationhubs/armnotificationhubs/utils_test.go new file mode 100644 index 000000000000..ac4ece2c5b64 --- /dev/null +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armnotificationhubs_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/notificationhubs/armnotificationhubs/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json index 74146a7c9c2c..e4a9a4db80fe 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/operationalinsights/armoperationalinsights", - "Tag": "go/resourcemanager/operationalinsights/armoperationalinsights_13213d36f9" + "Tag": "go/resourcemanager/operationalinsights/armoperationalinsights_02f242b5fb" } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/ci.yml b/sdk/resourcemanager/operationalinsights/armoperationalinsights/ci.yml index 12d64e6799f9..fd6864cd7f7f 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/ci.yml +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/operationalinsights/armoperationalinsights' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/clusters_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/clusters_live_test.go index f8f90dd17b62..2a8c3988fc86 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/clusters_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/clusters_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type ClustersTestSuite struct { } func (testsuite *ClustersTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *ClustersTestSuite) TearDownSuite() { } func TestClustersTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ClustersTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/dataexports_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/dataexports_live_test.go index d96babd29f7c..91d1dec63659 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/dataexports_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/dataexports_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type DataExportsTestSuite struct { } func (testsuite *DataExportsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *DataExportsTestSuite) TearDownSuite() { } func TestDataExportsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DataExportsTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/datasources_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/datasources_live_test.go index ed8a72ccfb91..2b893b2c40a9 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/datasources_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/datasources_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ type DataSourcesTestSuite struct { } func (testsuite *DataSourcesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *DataSourcesTestSuite) TearDownSuite() { } func TestDataSourcesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DataSourcesTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod index be3ae71a32cf..e2f45619e551 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/intelligencepacks_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/intelligencepacks_live_test.go index 2ef69aef1167..0fe67bb9e8da 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/intelligencepacks_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/intelligencepacks_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type IntelligencePacksTestSuite struct { } func (testsuite *IntelligencePacksTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *IntelligencePacksTestSuite) TearDownSuite() { } func TestIntelligencePacksTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(IntelligencePacksTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedservices_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedservices_live_test.go index 94f2545e559c..0e77afbe6fb6 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedservices_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedservices_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type LinkedServicesTestSuite struct { } func (testsuite *LinkedServicesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *LinkedServicesTestSuite) TearDownSuite() { } func TestLinkedServicesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LinkedServicesTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedstorageaccounts_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedstorageaccounts_live_test.go index 576488ecd7be..e54db4e8ea06 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedstorageaccounts_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/linkedstorageaccounts_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type LinkedStorageAccountsTestSuite struct { } func (testsuite *LinkedStorageAccountsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *LinkedStorageAccountsTestSuite) TearDownSuite() { } func TestLinkedStorageAccountsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(LinkedStorageAccountsTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/savedsearches_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/savedsearches_live_test.go index 229346140cb1..d3be07a31c9d 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/savedsearches_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/savedsearches_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type SavedSearchesTestSuite struct { } func (testsuite *SavedSearchesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *SavedSearchesTestSuite) TearDownSuite() { } func TestSavedSearchesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SavedSearchesTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/storageinsightconfigs_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/storageinsightconfigs_live_test.go index 426db7f9e34d..12770843fc2d 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/storageinsightconfigs_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/storageinsightconfigs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type StorageInsightConfigsTestSuite struct { } func (testsuite *StorageInsightConfigsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *StorageInsightConfigsTestSuite) TearDownSuite() { } func TestStorageInsightConfigsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(StorageInsightConfigsTestSuite)) } diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/utils_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/utils_test.go new file mode 100644 index 000000000000..5998eab737f4 --- /dev/null +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armoperationalinsights_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go index 4aca38865f79..2678e82fb8f7 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type WorkspacesTestSuite struct { } func (testsuite *WorkspacesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *WorkspacesTestSuite) TearDownSuite() { } func TestWorkspacesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(WorkspacesTestSuite)) } diff --git a/sdk/resourcemanager/postgresql/armpostgresql/assets.json b/sdk/resourcemanager/postgresql/armpostgresql/assets.json index c7e1e87d6349..7d2c85bfdcfa 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/assets.json +++ b/sdk/resourcemanager/postgresql/armpostgresql/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/postgresql/armpostgresql", - "Tag": "go/resourcemanager/postgresql/armpostgresql_2a306718c0" + "Tag": "go/resourcemanager/postgresql/armpostgresql_80c0d22515" } diff --git a/sdk/resourcemanager/postgresql/armpostgresql/ci.yml b/sdk/resourcemanager/postgresql/armpostgresql/ci.yml index 0c86ad7f3c29..79b3f9afa49c 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/ci.yml +++ b/sdk/resourcemanager/postgresql/armpostgresql/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/postgresql/armpostgresql' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/postgresql/armpostgresql/go.mod b/sdk/resourcemanager/postgresql/armpostgresql/go.mod index 94ba4627d2a8..724c21d47ab9 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/go.mod +++ b/sdk/resourcemanager/postgresql/armpostgresql/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/postgresql/armpostgresql/go.sum b/sdk/resourcemanager/postgresql/armpostgresql/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/go.sum +++ b/sdk/resourcemanager/postgresql/armpostgresql/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/postgresql/armpostgresql/postgresql_live_test.go b/sdk/resourcemanager/postgresql/armpostgresql/postgresql_live_test.go index a412b4d08fe8..37dd5e9f0843 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/postgresql_live_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresql/postgresql_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -35,7 +35,7 @@ type PostgresqlTestSuite struct { } func (testsuite *PostgresqlTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/postgresql/armpostgresql/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *PostgresqlTestSuite) TearDownSuite() { } func TestPostgresqlTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PostgresqlTestSuite)) } diff --git a/sdk/resourcemanager/postgresql/armpostgresql/privateendpointconnections_live_test.go b/sdk/resourcemanager/postgresql/armpostgresql/privateendpointconnections_live_test.go index 1c30111e7e84..0e51885874dc 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/privateendpointconnections_live_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresql/privateendpointconnections_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type PrivateEndpointConnectionsTestSuite struct { } func (testsuite *PrivateEndpointConnectionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/postgresql/armpostgresql/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *PrivateEndpointConnectionsTestSuite) TearDownSuite() { } func TestPrivateEndpointConnectionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PrivateEndpointConnectionsTestSuite)) } diff --git a/sdk/resourcemanager/postgresql/armpostgresql/serversecurityalertpolicies_live_test.go b/sdk/resourcemanager/postgresql/armpostgresql/serversecurityalertpolicies_live_test.go index 786203b04d93..f8336381242e 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/serversecurityalertpolicies_live_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresql/serversecurityalertpolicies_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ServerSecurityAlertPoliciesTestSuite struct { } func (testsuite *ServerSecurityAlertPoliciesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/postgresql/armpostgresql/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *ServerSecurityAlertPoliciesTestSuite) TearDownSuite() { } func TestServerSecurityAlertPoliciesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServerSecurityAlertPoliciesTestSuite)) } diff --git a/sdk/resourcemanager/postgresql/armpostgresql/utils_test.go b/sdk/resourcemanager/postgresql/armpostgresql/utils_test.go new file mode 100644 index 000000000000..7cbc0ee8bcb4 --- /dev/null +++ b/sdk/resourcemanager/postgresql/armpostgresql/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armpostgresql_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/postgresql/armpostgresql/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/privatedns/armprivatedns/assets.json b/sdk/resourcemanager/privatedns/armprivatedns/assets.json index df1ba6bf8518..448f9e0aac84 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/assets.json +++ b/sdk/resourcemanager/privatedns/armprivatedns/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/privatedns/armprivatedns", - "Tag": "go/resourcemanager/privatedns/armprivatedns_329737d335" + "Tag": "go/resourcemanager/privatedns/armprivatedns_4c34500e8c" } diff --git a/sdk/resourcemanager/privatedns/armprivatedns/ci.yml b/sdk/resourcemanager/privatedns/armprivatedns/ci.yml index e4a92fd442de..c5396df247ef 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/ci.yml +++ b/sdk/resourcemanager/privatedns/armprivatedns/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/privatedns/armprivatedns' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/privatedns/armprivatedns/go.mod b/sdk/resourcemanager/privatedns/armprivatedns/go.mod index 10e156ca20c8..b7cc6e319a08 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/go.mod +++ b/sdk/resourcemanager/privatedns/armprivatedns/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/privatedns/armprivatedns/go.sum b/sdk/resourcemanager/privatedns/armprivatedns/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/go.sum +++ b/sdk/resourcemanager/privatedns/armprivatedns/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/privatedns/armprivatedns/privatedns_live_test.go b/sdk/resourcemanager/privatedns/armprivatedns/privatedns_live_test.go index b7b3424336fa..db66ab75460d 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/privatedns_live_test.go +++ b/sdk/resourcemanager/privatedns/armprivatedns/privatedns_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -43,7 +43,7 @@ func (testsuite *PrivatednsTestSuite) SetupSuite() { testsuite.resourceGroupName = recording.GetEnvVariable("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") testsuite.subscriptionId = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/privatedns/armprivatedns/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -57,9 +57,6 @@ func (testsuite *PrivatednsTestSuite) TearDownSuite() { } func TestPrivatednsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PrivatednsTestSuite)) } diff --git a/sdk/resourcemanager/privatedns/armprivatedns/utils_test.go b/sdk/resourcemanager/privatedns/armprivatedns/utils_test.go new file mode 100644 index 000000000000..027484720004 --- /dev/null +++ b/sdk/resourcemanager/privatedns/armprivatedns/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armprivatedns_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/privatedns/armprivatedns/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/quota/armquota/assets.json b/sdk/resourcemanager/quota/armquota/assets.json index 7c1f1e3ca51e..ba8a26cde667 100644 --- a/sdk/resourcemanager/quota/armquota/assets.json +++ b/sdk/resourcemanager/quota/armquota/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/quota/armquota", - "Tag": "go/resourcemanager/quota/armquota_97d0481777" + "Tag": "go/resourcemanager/quota/armquota_8b5e62691b" } diff --git a/sdk/resourcemanager/quota/armquota/ci.yml b/sdk/resourcemanager/quota/armquota/ci.yml index eaba25c31d42..3b4913027f8a 100644 --- a/sdk/resourcemanager/quota/armquota/ci.yml +++ b/sdk/resourcemanager/quota/armquota/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/quota/armquota' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/quota/armquota/go.mod b/sdk/resourcemanager/quota/armquota/go.mod index 6d5cb306fcf2..0d5a4dd50cf4 100644 --- a/sdk/resourcemanager/quota/armquota/go.mod +++ b/sdk/resourcemanager/quota/armquota/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/quota/armquota/go.sum b/sdk/resourcemanager/quota/armquota/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/quota/armquota/go.sum +++ b/sdk/resourcemanager/quota/armquota/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/quota/armquota/quota_live_test.go b/sdk/resourcemanager/quota/armquota/quota_live_test.go index 11b7e91d489e..461564bcc9be 100644 --- a/sdk/resourcemanager/quota/armquota/quota_live_test.go +++ b/sdk/resourcemanager/quota/armquota/quota_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota" "github.com/stretchr/testify/suite" ) @@ -32,7 +32,7 @@ type QuotaTestSuite struct { } func (testsuite *QuotaTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/quota/armquota/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -52,9 +52,6 @@ func (testsuite *QuotaTestSuite) TearDownSuite() { } func TestQuotaTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(QuotaTestSuite)) } diff --git a/sdk/resourcemanager/quota/armquota/utils_test.go b/sdk/resourcemanager/quota/armquota/utils_test.go new file mode 100644 index 000000000000..4ac277c5c851 --- /dev/null +++ b/sdk/resourcemanager/quota/armquota/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armquota_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/quota/armquota/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json b/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json index c8ee4894b808..5f189158f8e2 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/recoveryservices/armrecoveryservices", - "Tag": "go/resourcemanager/recoveryservices/armrecoveryservices_24ac6fc894" + "Tag": "go/resourcemanager/recoveryservices/armrecoveryservices_d6e5132f50" } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/ci.yml b/sdk/resourcemanager/recoveryservices/armrecoveryservices/ci.yml index d2f1c9489691..4c1cdee562ab 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/ci.yml +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/recoveryservices/armrecoveryservices' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod index 57a1938cc987..66a98e0dac9d 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_live_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_live_test.go index e6a10ed2568d..43504aeaf5f7 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_live_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices/v2" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type RecoveryservicesTestSuite struct { } func (testsuite *RecoveryservicesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/recoveryservices/armrecoveryservices/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *RecoveryservicesTestSuite) TearDownSuite() { } func TestRecoveryservicesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RecoveryservicesTestSuite)) } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/utils_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/utils_test.go new file mode 100644 index 000000000000..31a3743c87dc --- /dev/null +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armrecoveryservices_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/recoveryservices/armrecoveryservices/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/redis/armredis/assets.json b/sdk/resourcemanager/redis/armredis/assets.json index 735e75f93912..b6014c5b51e0 100644 --- a/sdk/resourcemanager/redis/armredis/assets.json +++ b/sdk/resourcemanager/redis/armredis/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/redis/armredis", - "Tag": "go/resourcemanager/redis/armredis_6f803a64a3" + "Tag": "go/resourcemanager/redis/armredis_5f67be8249" } diff --git a/sdk/resourcemanager/redis/armredis/ci.yml b/sdk/resourcemanager/redis/armredis/ci.yml index 13569d855446..d05ad036a821 100644 --- a/sdk/resourcemanager/redis/armredis/ci.yml +++ b/sdk/resourcemanager/redis/armredis/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/redis/armredis' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/redis/armredis/go.mod b/sdk/resourcemanager/redis/armredis/go.mod index 54d1b4615b3d..e7db24523f9f 100644 --- a/sdk/resourcemanager/redis/armredis/go.mod +++ b/sdk/resourcemanager/redis/armredis/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/redis/armredis/go.sum b/sdk/resourcemanager/redis/armredis/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/redis/armredis/go.sum +++ b/sdk/resourcemanager/redis/armredis/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/redis/armredis/redis_live_test.go b/sdk/resourcemanager/redis/armredis/redis_live_test.go index 351f2a1194c1..022e9efa6964 100644 --- a/sdk/resourcemanager/redis/armredis/redis_live_test.go +++ b/sdk/resourcemanager/redis/armredis/redis_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v3" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ type RedisTestSuite struct { } func (testsuite *RedisTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/redis/armredis/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *RedisTestSuite) TearDownSuite() { } func TestRedisTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RedisTestSuite)) } diff --git a/sdk/resourcemanager/redis/armredis/utils_test.go b/sdk/resourcemanager/redis/armredis/utils_test.go new file mode 100644 index 000000000000..611d861c5bad --- /dev/null +++ b/sdk/resourcemanager/redis/armredis/utils_test.go @@ -0,0 +1,32 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armredis_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/redis/armredis/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/assets.json b/sdk/resourcemanager/redisenterprise/armredisenterprise/assets.json index 9153af3da17a..8b6f521b3b2c 100644 --- a/sdk/resourcemanager/redisenterprise/armredisenterprise/assets.json +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/redisenterprise/armredisenterprise", - "Tag": "go/resourcemanager/redisenterprise/armredisenterprise_cd80a420e3" + "Tag": "go/resourcemanager/redisenterprise/armredisenterprise_3df7c6e096" } diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/ci.yml b/sdk/resourcemanager/redisenterprise/armredisenterprise/ci.yml index 6afb013dae8c..d5a12303f542 100644 --- a/sdk/resourcemanager/redisenterprise/armredisenterprise/ci.yml +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/redisenterprise/armredisenterprise' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/go.mod b/sdk/resourcemanager/redisenterprise/armredisenterprise/go.mod index 6efca24c8905..c9cbd6cc9c2c 100644 --- a/sdk/resourcemanager/redisenterprise/armredisenterprise/go.mod +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/go.sum b/sdk/resourcemanager/redisenterprise/armredisenterprise/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/redisenterprise/armredisenterprise/go.sum +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/redisenterprise_live_test.go b/sdk/resourcemanager/redisenterprise/armredisenterprise/redisenterprise_live_test.go index 8e8e08b8ae85..5d3bd7a3232c 100644 --- a/sdk/resourcemanager/redisenterprise/armredisenterprise/redisenterprise_live_test.go +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/redisenterprise_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redisenterprise/armredisenterprise/v2" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type RedisenterpriseTestSuite struct { } func (testsuite *RedisenterpriseTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/redisenterprise/armredisenterprise/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -62,9 +62,6 @@ func (testsuite *RedisenterpriseTestSuite) TearDownSuite() { } func TestRedisenterpriseTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RedisenterpriseTestSuite)) } diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/utils_test.go b/sdk/resourcemanager/redisenterprise/armredisenterprise/utils_test.go new file mode 100644 index 000000000000..6354bd836ce0 --- /dev/null +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armredisenterprise_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/redisenterprise/armredisenterprise/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/relay/armrelay/assets.json b/sdk/resourcemanager/relay/armrelay/assets.json index b97db5079db1..538f43b4b62a 100644 --- a/sdk/resourcemanager/relay/armrelay/assets.json +++ b/sdk/resourcemanager/relay/armrelay/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/relay/armrelay", - "Tag": "go/resourcemanager/relay/armrelay_012dcfb040" + "Tag": "go/resourcemanager/relay/armrelay_fcbbdd146d" } diff --git a/sdk/resourcemanager/relay/armrelay/ci.yml b/sdk/resourcemanager/relay/armrelay/ci.yml index 54f866cb361e..6c6a6473b6f9 100644 --- a/sdk/resourcemanager/relay/armrelay/ci.yml +++ b/sdk/resourcemanager/relay/armrelay/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/relay/armrelay' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/relay/armrelay/go.mod b/sdk/resourcemanager/relay/armrelay/go.mod index 715f3e4f1466..39705b96f2be 100644 --- a/sdk/resourcemanager/relay/armrelay/go.mod +++ b/sdk/resourcemanager/relay/armrelay/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/relay/armrelay/go.sum b/sdk/resourcemanager/relay/armrelay/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/relay/armrelay/go.sum +++ b/sdk/resourcemanager/relay/armrelay/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/relay/armrelay/hybridconnections_live_test.go b/sdk/resourcemanager/relay/armrelay/hybridconnections_live_test.go index d7a6607a0ea6..37594565c02b 100644 --- a/sdk/resourcemanager/relay/armrelay/hybridconnections_live_test.go +++ b/sdk/resourcemanager/relay/armrelay/hybridconnections_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type HybridConnectionsTestSuite struct { } func (testsuite *HybridConnectionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/relay/armrelay/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *HybridConnectionsTestSuite) TearDownSuite() { } func TestHybridConnectionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(HybridConnectionsTestSuite)) } diff --git a/sdk/resourcemanager/relay/armrelay/namespaces_live_test.go b/sdk/resourcemanager/relay/armrelay/namespaces_live_test.go index c1a4d7d242dc..36e322696597 100644 --- a/sdk/resourcemanager/relay/armrelay/namespaces_live_test.go +++ b/sdk/resourcemanager/relay/armrelay/namespaces_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type NamespacesTestSuite struct { } func (testsuite *NamespacesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/relay/armrelay/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *NamespacesTestSuite) TearDownSuite() { } func TestNamespacesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NamespacesTestSuite)) } diff --git a/sdk/resourcemanager/relay/armrelay/operations_live_test.go b/sdk/resourcemanager/relay/armrelay/operations_live_test.go index fda8e017d2f3..c6c73ffd60ca 100644 --- a/sdk/resourcemanager/relay/armrelay/operations_live_test.go +++ b/sdk/resourcemanager/relay/armrelay/operations_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type OperationsTestSuite struct { } func (testsuite *OperationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/relay/armrelay/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *OperationsTestSuite) TearDownSuite() { } func TestOperationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationsTestSuite)) } diff --git a/sdk/resourcemanager/relay/armrelay/utils_test.go b/sdk/resourcemanager/relay/armrelay/utils_test.go new file mode 100644 index 000000000000..aa962ed11997 --- /dev/null +++ b/sdk/resourcemanager/relay/armrelay/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armrelay_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/relay/armrelay/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/relay/armrelay/wcfrelays_live_test.go b/sdk/resourcemanager/relay/armrelay/wcfrelays_live_test.go index 97fb8069f114..3f9e75ff09fa 100644 --- a/sdk/resourcemanager/relay/armrelay/wcfrelays_live_test.go +++ b/sdk/resourcemanager/relay/armrelay/wcfrelays_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type WcfRelaysTestSuite struct { } func (testsuite *WcfRelaysTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/relay/armrelay/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *WcfRelaysTestSuite) TearDownSuite() { } func TestWcfRelaysTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(WcfRelaysTestSuite)) } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/assets.json b/sdk/resourcemanager/resources/armdeploymentscripts/assets.json index 0025276a09ce..3edd03eab4b8 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/assets.json +++ b/sdk/resourcemanager/resources/armdeploymentscripts/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armdeploymentscripts", - "Tag": "go/resourcemanager/resources/armdeploymentscripts_aa387434cd" + "Tag": "go/resourcemanager/resources/armdeploymentscripts_30e5ae8c17" } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/ci.yml b/sdk/resourcemanager/resources/armdeploymentscripts/ci.yml index 7b9edea15643..a4fe4be94390 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/ci.yml +++ b/sdk/resourcemanager/resources/armdeploymentscripts/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/resources/armdeploymentscripts' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/deploymentscripts_client_live_test.go b/sdk/resourcemanager/resources/armdeploymentscripts/deploymentscripts_client_live_test.go index 769097a15217..c9fe874185d7 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/deploymentscripts_client_live_test.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/deploymentscripts_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ func (testsuite *DeploymentScriptsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armdeploymentscripts/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *DeploymentScriptsClientTestSuite) TearDownSuite() { } func TestDeploymentScriptsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DeploymentScriptsClientTestSuite)) } @@ -71,7 +68,6 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(identityName, *identityResp.Name) // create deployment script fmt.Println("Call operation: DeploymentScripts_Create") @@ -102,31 +98,27 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { nil, ) testsuite.Require().NoError(err) - dsResp, err := testutil.PollForTest(testsuite.ctx, dsPollerResp) + _, err = testutil.PollForTest(testsuite.ctx, dsPollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(scriptName, *dsResp.GetDeploymentScript().Name) // get deployment scripts fmt.Println("Call operation: DeploymentScripts_Get") - getResp, err := deploymentScriptsClient.Get(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) + _, err = deploymentScriptsClient.Get(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(scriptName, *getResp.GetDeploymentScript().Name) // get log fmt.Println("Call operation: DeploymentScripts_GetLogs") - getLogResp, err := deploymentScriptsClient.GetLogs(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) + _, err = deploymentScriptsClient.GetLogs(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(1, len(getLogResp.Value)) // getLogsDefault fmt.Println("Call operation: DeploymentScripts_GetLogsDefault") - getLogDefaultResp, err := deploymentScriptsClient.GetLogsDefault(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) + _, err = deploymentScriptsClient.GetLogsDefault(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal("default", *getLogDefaultResp.Name) // update deployment script fmt.Println("Call operation: DeploymentScripts_Update") - updateResp, err := deploymentScriptsClient.Update( + _, err = deploymentScriptsClient.Update( testsuite.ctx, testsuite.resourceGroupName, scriptName, @@ -139,7 +131,6 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { }, ) testsuite.Require().NoError(err) - testsuite.Require().Equal("live", *updateResp.GetDeploymentScript().Tags["test"]) // list deployment script by subscription fmt.Println("Call operation: DeploymentScripts_ListBySubscription") diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/go.mod b/sdk/resourcemanager/resources/armdeploymentscripts/go.mod index 0963c8764496..f6e47143a5cb 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/go.mod +++ b/sdk/resourcemanager/resources/armdeploymentscripts/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.6.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts v1.0.0 github.com/stretchr/testify v1.9.0 @@ -18,7 +18,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/go.sum b/sdk/resourcemanager/resources/armdeploymentscripts/go.sum index cc0ea41fff0b..a581b2cc8ac2 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/go.sum +++ b/sdk/resourcemanager/resources/armdeploymentscripts/go.sum @@ -2,11 +2,12 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.6.0 h1:zSHpZY39hfFpVNixDoFOUeLwBBX0SIRe32HaWg03R8k= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.6.0/go.mod h1:Yu9z4VU4VeNRoZQMjAKwzXJpNAZ8SlyVg+yHyDVqvi8= @@ -16,7 +17,6 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1. github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -25,7 +25,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/utils_test.go b/sdk/resourcemanager/resources/armdeploymentscripts/utils_test.go new file mode 100644 index 000000000000..c1f4735b8c91 --- /dev/null +++ b/sdk/resourcemanager/resources/armdeploymentscripts/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armdeploymentscripts_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/resources/armdeploymentscripts/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/resources/armfeatures/assets.json b/sdk/resourcemanager/resources/armfeatures/assets.json index 0c8400cedf3f..0417eda1cacd 100644 --- a/sdk/resourcemanager/resources/armfeatures/assets.json +++ b/sdk/resourcemanager/resources/armfeatures/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armfeatures", - "Tag": "go/resourcemanager/resources/armfeatures_314d60e072" + "Tag": "go/resourcemanager/resources/armfeatures_f9ac0b1129" } diff --git a/sdk/resourcemanager/resources/armfeatures/ci.yml b/sdk/resourcemanager/resources/armfeatures/ci.yml index 6f6857dcbb71..b373252bee2e 100644 --- a/sdk/resourcemanager/resources/armfeatures/ci.yml +++ b/sdk/resourcemanager/resources/armfeatures/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/resources/armfeatures' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/resources/armfeatures/features_client_live_test.go b/sdk/resourcemanager/resources/armfeatures/features_client_live_test.go index 127e6457a385..3391a1eec717 100644 --- a/sdk/resourcemanager/resources/armfeatures/features_client_live_test.go +++ b/sdk/resourcemanager/resources/armfeatures/features_client_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ func (testsuite *FeaturesClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armfeatures/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -48,9 +48,6 @@ func (testsuite *FeaturesClientTestSuite) TearDownSuite() { } func TestFeaturesClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(FeaturesClientTestSuite)) } diff --git a/sdk/resourcemanager/resources/armfeatures/go.mod b/sdk/resourcemanager/resources/armfeatures/go.mod index d42635b23460..6c4f21395192 100644 --- a/sdk/resourcemanager/resources/armfeatures/go.mod +++ b/sdk/resourcemanager/resources/armfeatures/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/resources/armfeatures/go.sum b/sdk/resourcemanager/resources/armfeatures/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/resources/armfeatures/go.sum +++ b/sdk/resourcemanager/resources/armfeatures/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/resources/armfeatures/utils_test.go b/sdk/resourcemanager/resources/armfeatures/utils_test.go new file mode 100644 index 000000000000..1bde50c1a0ed --- /dev/null +++ b/sdk/resourcemanager/resources/armfeatures/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armfeatures_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/resources/armfeatures/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/resources/armpolicy/assets.json b/sdk/resourcemanager/resources/armpolicy/assets.json index 296ec8353934..e885d269cbb4 100644 --- a/sdk/resourcemanager/resources/armpolicy/assets.json +++ b/sdk/resourcemanager/resources/armpolicy/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armpolicy", - "Tag": "go/resourcemanager/resources/armpolicy_66f769ab98" + "Tag": "go/resourcemanager/resources/armpolicy_9e91e8d4d3" } diff --git a/sdk/resourcemanager/resources/armpolicy/ci.yml b/sdk/resourcemanager/resources/armpolicy/ci.yml index 0a33d2c9e2ff..9b3b7a9f3017 100644 --- a/sdk/resourcemanager/resources/armpolicy/ci.yml +++ b/sdk/resourcemanager/resources/armpolicy/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/resources/armpolicy' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/resources/armpolicy/go.mod b/sdk/resourcemanager/resources/armpolicy/go.mod index a2e36dca5917..9c17fdc79e95 100644 --- a/sdk/resourcemanager/resources/armpolicy/go.mod +++ b/sdk/resourcemanager/resources/armpolicy/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/resources/armpolicy/go.sum b/sdk/resourcemanager/resources/armpolicy/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/resources/armpolicy/go.sum +++ b/sdk/resourcemanager/resources/armpolicy/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/resources/armpolicy/policydefinitions_client_live_test.go b/sdk/resourcemanager/resources/armpolicy/policydefinitions_client_live_test.go index 9f304a2a7c66..dbe872ca8043 100644 --- a/sdk/resourcemanager/resources/armpolicy/policydefinitions_client_live_test.go +++ b/sdk/resourcemanager/resources/armpolicy/policydefinitions_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ func (testsuite *PolicyDefinitionsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armpolicy/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *PolicyDefinitionsClientTestSuite) TearDownSuite() { } func TestPolicyDefinitionsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(PolicyDefinitionsClientTestSuite)) } @@ -62,7 +59,7 @@ func (testsuite *PolicyDefinitionsClientTestSuite) TestPolicyDefinitionsCRUD() { policyDefinitionName := "go-test-definition" policyDefinitionsClient, err := armpolicy.NewDefinitionsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - cResp, err := policyDefinitionsClient.CreateOrUpdate( + _, err = policyDefinitionsClient.CreateOrUpdate( testsuite.ctx, policyDefinitionName, armpolicy.Definition{ @@ -101,13 +98,11 @@ func (testsuite *PolicyDefinitionsClientTestSuite) TestPolicyDefinitionsCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(policyDefinitionName, *cResp.Name) // get policy definition fmt.Println("Call operation: PolicyDefinitions_Get") - getResp, err := policyDefinitionsClient.Get(testsuite.ctx, policyDefinitionName, nil) + _, err = policyDefinitionsClient.Get(testsuite.ctx, policyDefinitionName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(policyDefinitionName, *getResp.Name) // list policy definition fmt.Println("Call operation: PolicyDefinitions_List") diff --git a/sdk/resourcemanager/resources/armpolicy/utils_test.go b/sdk/resourcemanager/resources/armpolicy/utils_test.go new file mode 100644 index 000000000000..e0477e82e635 --- /dev/null +++ b/sdk/resourcemanager/resources/armpolicy/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armpolicy_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/resources/armpolicy/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/resources/armresources/assets.json b/sdk/resourcemanager/resources/armresources/assets.json index cd6e594324fa..2565884a0e29 100644 --- a/sdk/resourcemanager/resources/armresources/assets.json +++ b/sdk/resourcemanager/resources/armresources/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armresources", - "Tag": "go/resourcemanager/resources/armresources_ab8e63cc21" + "Tag": "go/resourcemanager/resources/armresources_89eac9c070" } diff --git a/sdk/resourcemanager/resources/armresources/ci.yml b/sdk/resourcemanager/resources/armresources/ci.yml index 9a8af8b4498a..f8299f05bbd2 100644 --- a/sdk/resourcemanager/resources/armresources/ci.yml +++ b/sdk/resourcemanager/resources/armresources/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/resources/armresources' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/resources/armresources/deployments_client_live_test.go b/sdk/resourcemanager/resources/armresources/deployments_client_live_test.go index 1a594bcedc6d..1f2bd3dd5c00 100644 --- a/sdk/resourcemanager/resources/armresources/deployments_client_live_test.go +++ b/sdk/resourcemanager/resources/armresources/deployments_client_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ func (testsuite *DeploymentsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -52,9 +52,6 @@ func (testsuite *DeploymentsClientTestSuite) TearDownSuite() { } func TestDeploymentsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DeploymentsClientTestSuite)) } @@ -138,15 +135,13 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsCRUD() { nil, ) testsuite.Require().NoError(err) - resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + _, err = testutil.PollForTest(testsuite.ctx, pollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *resp.Name) // get fmt.Println("Call operation: Deployments_Get") - getResp, err := deploymentsClient.Get(testsuite.ctx, testsuite.resourceGroupName, deploymentName, nil) + _, err = deploymentsClient.Get(testsuite.ctx, testsuite.resourceGroupName, deploymentName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *getResp.Name) // list by resource group fmt.Println("Call operation: Deployments_ListByResourceGroup") @@ -168,9 +163,8 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsCRUD() { nil, ) testsuite.Require().NoError(err) - whatResp, err := testutil.PollForTest(testsuite.ctx, whatPoller) + _, err = testutil.PollForTest(testsuite.ctx, whatPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal("InvalidTemplate", *whatResp.Error.Code) // validate fmt.Println("Call operation: Deployments_Validate") @@ -192,9 +186,8 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsCRUD() { nil, ) testsuite.Require().NoError(err) - vResp, err := testutil.PollForTest(testsuite.ctx, vPoller) + _, err = testutil.PollForTest(testsuite.ctx, vPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal(to.Ptr(armresources.DeploymentModeIncremental), vResp.Properties.Mode) // export template fmt.Println("Call operation: Deployments_ExportTemplate") @@ -244,15 +237,13 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtScope() { nil, ) testsuite.Require().NoError(err) - resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + _, err = testutil.PollForTest(testsuite.ctx, pollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *resp.Name) // get deployment at scope fmt.Println("Call operation: Deployments_GetAtScope") - getResp, err := deploymentsClient.GetAtScope(testsuite.ctx, scopeResource, deploymentName, nil) + _, err = deploymentsClient.GetAtScope(testsuite.ctx, scopeResource, deploymentName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *getResp.Name) // list deployment at scope fmt.Println("Call operation: Deployments_ListAtScope") @@ -278,9 +269,8 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtScope() { nil, ) testsuite.Require().NoError(err) - vResp, err := testutil.PollForTest(testsuite.ctx, vPoller) + _, err = testutil.PollForTest(testsuite.ctx, vPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal(armresources.DeploymentModeIncremental, *vResp.Properties.Mode) // export template fmt.Println("Call operation: Deployments_ExportTemplateAtScope") @@ -310,9 +300,8 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtManagementGroupSco nil, ) testsuite.Require().NoError(err) - mgResp, err := testutil.PollForTest(testsuite.ctx, mgPoller) + _, err = testutil.PollForTest(testsuite.ctx, mgPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal(groupName, *mgResp.Name) // create deployment fmt.Println("Call operation: Deployments_CreateOrUpdateAtManagementGroupScope") @@ -338,9 +327,8 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtManagementGroupSco nil, ) testsuite.Require().NoError(err) - resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + _, err = testutil.PollForTest(testsuite.ctx, pollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *resp.Name) // check fmt.Println("Call operation: Deployments_CheckExistenceAtManagementGroupScope") @@ -350,9 +338,8 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtManagementGroupSco // get deployment fmt.Println("Call operation: Deployments_GetAtManagementGroupScope") - getResp, err := deploymentsClient.GetAtManagementGroupScope(testsuite.ctx, groupName, deploymentName, nil) + _, err = deploymentsClient.GetAtManagementGroupScope(testsuite.ctx, groupName, deploymentName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *getResp.Name) // list deployment fmt.Println("Call operation: Deployments_ListAtManagementGroupScope") @@ -435,15 +422,13 @@ func (testsuite *DeploymentsClientTestSuite) TestDeploymentsAtSubscriptionScope( nil, ) testsuite.Require().NoError(err) - resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + _, err = testutil.PollForTest(testsuite.ctx, pollerResp) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *resp.Name) // get deployment fmt.Println("Call operation: Deployments_GetAtSubscriptionScope") - getResp, err := deploymentsClient.GetAtSubscriptionScope(testsuite.ctx, deploymentName, nil) + _, err = deploymentsClient.GetAtSubscriptionScope(testsuite.ctx, deploymentName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(deploymentName, *getResp.Name) // list deployment fmt.Println("Call operation: Deployments_ListAtSubscriptionScope") diff --git a/sdk/resourcemanager/resources/armresources/go.mod b/sdk/resourcemanager/resources/armresources/go.mod index 5bb2194d0e34..383983991163 100644 --- a/sdk/resourcemanager/resources/armresources/go.mod +++ b/sdk/resourcemanager/resources/armresources/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/resources/armresources/go.sum b/sdk/resourcemanager/resources/armresources/go.sum index d6de5b4094fe..de5737132f3a 100644 --- a/sdk/resourcemanager/resources/armresources/go.sum +++ b/sdk/resourcemanager/resources/armresources/go.sum @@ -2,15 +2,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.2.0 h1:akP6VpxJGgQRpDR1P462piz/8OhYLRCreDj48AyNabc= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.2.0/go.mod h1:8wzvopPfyZYPaQUoKW87Zfdul7jmJMDfp/k7YY3oJyA= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -19,7 +19,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/resources/armresources/resourcegroups_client_live_test.go b/sdk/resourcemanager/resources/armresources/resourcegroups_client_live_test.go index 9eb0808084d6..d5f778c14c66 100644 --- a/sdk/resourcemanager/resources/armresources/resourcegroups_client_live_test.go +++ b/sdk/resourcemanager/resources/armresources/resourcegroups_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ func (testsuite *ResourceGroupsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *ResourceGroupsClientTestSuite) TearDownSuite() { } func TestResourceGroupsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ResourceGroupsClientTestSuite)) } @@ -62,11 +59,10 @@ func (testsuite *ResourceGroupsClientTestSuite) TestResourceGroupsCRUD() { rgName := "go-test-rg" rgClient, err := armresources.NewResourceGroupsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - rg, err := rgClient.CreateOrUpdate(context.Background(), rgName, armresources.ResourceGroup{ + _, err = rgClient.CreateOrUpdate(context.Background(), rgName, armresources.ResourceGroup{ Location: to.Ptr("eastus"), }, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(rgName, *rg.Name) // check existence resource group fmt.Println("Call operation: ResourceGroups_CheckExistence") @@ -76,9 +72,8 @@ func (testsuite *ResourceGroupsClientTestSuite) TestResourceGroupsCRUD() { // get resource group fmt.Println("Call operation: RResourceGroups_Get") - getResp, err := rgClient.Get(context.Background(), rgName, nil) + _, err = rgClient.Get(context.Background(), rgName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(rgName, *getResp.Name) // list resource group fmt.Println("Call operation: ResourceGroups_List") @@ -87,13 +82,12 @@ func (testsuite *ResourceGroupsClientTestSuite) TestResourceGroupsCRUD() { // update resource group fmt.Println("Call operation: ResourceGroups_Update") - updateResp, err := rgClient.Update(context.Background(), rgName, armresources.ResourceGroupPatchable{ + _, err = rgClient.Update(context.Background(), rgName, armresources.ResourceGroupPatchable{ Tags: map[string]*string{ "key": to.Ptr("value"), }, }, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal("value", *updateResp.Tags["key"]) // export template resource group fmt.Println("Call operation: ResourceGroups_ExportTemplate") diff --git a/sdk/resourcemanager/resources/armresources/resources_client_live_test.go b/sdk/resourcemanager/resources/armresources/resources_client_live_test.go index 43a7037c6825..8170fd2f4d7e 100644 --- a/sdk/resourcemanager/resources/armresources/resources_client_live_test.go +++ b/sdk/resourcemanager/resources/armresources/resources_client_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ func (testsuite *ResourcesClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -51,9 +51,6 @@ func (testsuite *ResourcesClientTestSuite) TearDownSuite() { } func TestResourcesClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ResourcesClientTestSuite)) } @@ -104,9 +101,8 @@ func (testsuite *ResourcesClientTestSuite) TestResourcesCRUD() { nil, ) testsuite.Require().NoError(err) - resp, err := testutil.PollForTest(testsuite.ctx, createPoller) + _, err = testutil.PollForTest(testsuite.ctx, createPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal(resourceName, *resp.Name) // create resource by id fmt.Println("Call operation: Resources_CreateOrUpdateByID") @@ -120,9 +116,8 @@ func (testsuite *ResourcesClientTestSuite) TestResourcesCRUD() { nil, ) testsuite.Require().NoError(err) - createByIDResp, err := testutil.PollForTest(testsuite.ctx, createByIDPoller) + _, err = testutil.PollForTest(testsuite.ctx, createByIDPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal(resourceName, *createByIDResp.Name) // update resources fmt.Println("Call operation: Resources_Update") @@ -142,9 +137,8 @@ func (testsuite *ResourcesClientTestSuite) TestResourcesCRUD() { nil, ) testsuite.Require().NoError(err) - updateResp, err := testutil.PollForTest(testsuite.ctx, updatePoller) + _, err = testutil.PollForTest(testsuite.ctx, updatePoller) testsuite.Require().NoError(err) - testsuite.Require().Equal("value1", *updateResp.Tags["tag1"]) // update resource by id fmt.Println("Call operation: Resources_UpdateByID") @@ -160,13 +154,12 @@ func (testsuite *ResourcesClientTestSuite) TestResourcesCRUD() { nil, ) testsuite.Require().NoError(err) - updateByIDResp, err := testutil.PollForTest(testsuite.ctx, updateByIDPoller) + _, err = testutil.PollForTest(testsuite.ctx, updateByIDPoller) testsuite.Require().NoError(err) - testsuite.Require().Equal("value2", *updateByIDResp.Tags["key2"]) // get resource fmt.Println("Call operation: Resources_Get") - getResp, err := resourcesClient.Get( + _, err = resourcesClient.Get( testsuite.ctx, testsuite.resourceGroupName, "Microsoft.Compute", @@ -177,18 +170,16 @@ func (testsuite *ResourcesClientTestSuite) TestResourcesCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(resourceName, *getResp.Name) // get resource by id fmt.Println("Call operation: Resources_GetByID") - getByIDResp, err := resourcesClient.GetByID( + _, err = resourcesClient.GetByID( testsuite.ctx, resourceID, "2019-07-01", nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(resourceName, *getByIDResp.Name) // list resource fmt.Println("Call operation: Resources_List") diff --git a/sdk/resourcemanager/resources/armresources/tags_client_live_test.go b/sdk/resourcemanager/resources/armresources/tags_client_live_test.go index f60ded9e378e..1851e0cab77d 100644 --- a/sdk/resourcemanager/resources/armresources/tags_client_live_test.go +++ b/sdk/resourcemanager/resources/armresources/tags_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ func (testsuite *TagsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armresources/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *TagsClientTestSuite) TearDownSuite() { } func TestTagsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TagsClientTestSuite)) } @@ -62,16 +59,14 @@ func (testsuite *TagsClientTestSuite) TestTagsCRUD() { tagsClient, err := armresources.NewTagsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) tagName := "go-test-tags" - resp, err := tagsClient.CreateOrUpdate(testsuite.ctx, tagName, &armresources.TagsClientCreateOrUpdateOptions{}) + _, err = tagsClient.CreateOrUpdate(testsuite.ctx, tagName, &armresources.TagsClientCreateOrUpdateOptions{}) testsuite.Require().NoError(err) - testsuite.Require().Equal(tagName, *resp.TagName) // create tag value fmt.Println("Call operation: Tags_CreateOrUpdateValue") valueName := "go-test-value" - valueResp, err := tagsClient.CreateOrUpdateValue(testsuite.ctx, tagName, valueName, nil) + _, err = tagsClient.CreateOrUpdateValue(testsuite.ctx, tagName, valueName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(valueName, *valueResp.TagValue.TagValue) // list fmt.Println("Call operation: Tags_List") @@ -95,7 +90,7 @@ func (testsuite *TagsClientTestSuite) TestTagsCRUDAtScope() { tagsClient, err := armresources.NewTagsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) scopeName := fmt.Sprintf("/subscriptions/%v/resourceGroups/%v", testsuite.subscriptionID, testsuite.resourceGroupName) - resp, err := tagsClient.CreateOrUpdateAtScope( + _, err = tagsClient.CreateOrUpdateAtScope( testsuite.ctx, scopeName, armresources.TagsResource{ @@ -109,11 +104,10 @@ func (testsuite *TagsClientTestSuite) TestTagsCRUDAtScope() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal("default", *resp.Name) // update at scope fmt.Println("Call operation: Tags_UpdateAtScope") - updateResp, err := tagsClient.UpdateAtScope( + _, err = tagsClient.UpdateAtScope( testsuite.ctx, scopeName, armresources.TagsPatchResource{ @@ -127,13 +121,11 @@ func (testsuite *TagsClientTestSuite) TestTagsCRUDAtScope() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal("default", *updateResp.Name) // get at scopes fmt.Println("Call operation: Tags_GetAtScope") - getResp, err := tagsClient.GetAtScope(testsuite.ctx, scopeName, nil) + _, err = tagsClient.GetAtScope(testsuite.ctx, scopeName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal("default", *getResp.Name) // delete at scope fmt.Println("Call operation: Tags_DeleteAtScope") diff --git a/sdk/resourcemanager/resources/armresources/utils_test.go b/sdk/resourcemanager/resources/armresources/utils_test.go new file mode 100644 index 000000000000..ef10e623957e --- /dev/null +++ b/sdk/resourcemanager/resources/armresources/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armresources_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/resources/armresources/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/resources/armsubscriptions/assets.json b/sdk/resourcemanager/resources/armsubscriptions/assets.json index 2cec2d9e366a..e7ed8a817a5d 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/assets.json +++ b/sdk/resourcemanager/resources/armsubscriptions/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armsubscriptions", - "Tag": "go/resourcemanager/resources/armsubscriptions_bda5929f0e" + "Tag": "go/resourcemanager/resources/armsubscriptions_140dc038cb" } diff --git a/sdk/resourcemanager/resources/armsubscriptions/ci.yml b/sdk/resourcemanager/resources/armsubscriptions/ci.yml index 52d5b233c7c7..b750ee92c59c 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/ci.yml +++ b/sdk/resourcemanager/resources/armsubscriptions/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/resources/armsubscriptions' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/resources/armsubscriptions/go.mod b/sdk/resourcemanager/resources/armsubscriptions/go.mod index 2dd3bfbc4a43..767be6d7c38e 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/go.mod +++ b/sdk/resourcemanager/resources/armsubscriptions/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/resources/armsubscriptions/go.sum b/sdk/resourcemanager/resources/armsubscriptions/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/go.sum +++ b/sdk/resourcemanager/resources/armsubscriptions/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/resources/armsubscriptions/subscriptions_client_live_test.go b/sdk/resourcemanager/resources/armsubscriptions/subscriptions_client_live_test.go index 1f65991965f8..2821f51cb5bd 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/subscriptions_client_live_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/subscriptions_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ func (testsuite *SubscriptionsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armsubscriptions/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *SubscriptionsClientTestSuite) TearDownSuite() { } func TestSubscriptionsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SubscriptionsClientTestSuite)) } diff --git a/sdk/resourcemanager/resources/armsubscriptions/tenants_client_live_test.go b/sdk/resourcemanager/resources/armsubscriptions/tenants_client_live_test.go index 5ac46c12bf40..8ba6490f8d18 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/tenants_client_live_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/tenants_client_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ func (testsuite *TenantsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armsubscriptions/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -49,9 +49,6 @@ func (testsuite *TenantsClientTestSuite) TearDownSuite() { } func TestTenantsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TenantsClientTestSuite)) } diff --git a/sdk/resourcemanager/resources/armsubscriptions/utils_test.go b/sdk/resourcemanager/resources/armsubscriptions/utils_test.go new file mode 100644 index 000000000000..dc1bc318f625 --- /dev/null +++ b/sdk/resourcemanager/resources/armsubscriptions/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armsubscriptions_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/resources/armsubscriptions/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/assets.json b/sdk/resourcemanager/resources/armtemplatespecs/assets.json index bf00b07418c6..3524dd421ee6 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/assets.json +++ b/sdk/resourcemanager/resources/armtemplatespecs/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/resources/armtemplatespecs", - "Tag": "go/resourcemanager/resources/armtemplatespecs_9ab1992c31" + "Tag": "go/resourcemanager/resources/armtemplatespecs_8dcb9c0012" } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/ci.yml b/sdk/resourcemanager/resources/armtemplatespecs/ci.yml index e99c299f580b..a7339f3d5fdf 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/ci.yml +++ b/sdk/resourcemanager/resources/armtemplatespecs/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/resources/armtemplatespecs' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/resources/armtemplatespecs/go.mod b/sdk/resourcemanager/resources/armtemplatespecs/go.mod index 21d5b52fa51b..fce34ae05201 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/go.mod +++ b/sdk/resourcemanager/resources/armtemplatespecs/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/resources/armtemplatespecs/go.sum b/sdk/resourcemanager/resources/armtemplatespecs/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/go.sum +++ b/sdk/resourcemanager/resources/armtemplatespecs/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/resources/armtemplatespecs/templatespecs_client_live_test.go b/sdk/resourcemanager/resources/armtemplatespecs/templatespecs_client_live_test.go index 5baadd9d3113..5c4db3a1eec5 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/templatespecs_client_live_test.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/templatespecs_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ func (testsuite *TemplateSpecsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armtemplatespecs/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *TemplateSpecsClientTestSuite) TearDownSuite() { } func TestTemplateSpecsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TemplateSpecsClientTestSuite)) } @@ -62,7 +59,7 @@ func (testsuite *TemplateSpecsClientTestSuite) TestTemplateSpecsCRUD() { templateSpecName := "go-test-template" templateSpecsClient, err := armtemplatespecs.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - resp, err := templateSpecsClient.CreateOrUpdate( + _, err = templateSpecsClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, templateSpecName, @@ -78,11 +75,10 @@ func (testsuite *TemplateSpecsClientTestSuite) TestTemplateSpecsCRUD() { nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(templateSpecName, *resp.Name) // update template spec fmt.Println("Call operation: TemplateSpecs_Update") - updateResp, err := templateSpecsClient.Update(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, &armtemplatespecs.ClientUpdateOptions{ + _, err = templateSpecsClient.Update(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, &armtemplatespecs.ClientUpdateOptions{ TemplateSpec: &armtemplatespecs.TemplateSpecUpdateModel{ Tags: map[string]*string{ "test": to.Ptr("live"), @@ -90,13 +86,11 @@ func (testsuite *TemplateSpecsClientTestSuite) TestTemplateSpecsCRUD() { }, }) testsuite.Require().NoError(err) - testsuite.Require().Equal("live", *updateResp.Tags["test"]) // get template spec fmt.Println("Call operation: TemplateSpecs_Get") - getResp, err := templateSpecsClient.Get(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, nil) + _, err = templateSpecsClient.Get(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(templateSpecName, *getResp.Name) // list template spec by resource group fmt.Println("Call operation: TemplateSpecs_ListByResourceGroup") diff --git a/sdk/resourcemanager/resources/armtemplatespecs/templatespecversions_client_live_test.go b/sdk/resourcemanager/resources/armtemplatespecs/templatespecversions_client_live_test.go index a0ce7ec51095..e22f61f9b7db 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/templatespecversions_client_live_test.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/templatespecversions_client_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) SetupSuite() { testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armtemplatespecs/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) testsuite.resourceGroupName = *resourceGroup.Name @@ -50,9 +50,6 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TearDownSuite() { } func TestTemplateSpecVersionsClient(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TemplateSpecVersionsClientTestSuite)) } @@ -62,7 +59,7 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR templateSpecName := "go-test-template" templateSpecsClient, err := armtemplatespecs.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - resp, err := templateSpecsClient.CreateOrUpdate( + _, err = templateSpecsClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, templateSpecName, @@ -78,7 +75,6 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR nil, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(templateSpecName, *resp.Name) // create template version fmt.Println("Call operation: TemplateSpecVersions_CreateOrUpdate") @@ -115,7 +111,7 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR // update fmt.Println("Call operation: TemplateSpecVersions_Update") - updateResp, err := templateSpecVersionsClient.Update(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, &armtemplatespecs.TemplateSpecVersionsClientUpdateOptions{ + _, err = templateSpecVersionsClient.Update(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, &armtemplatespecs.TemplateSpecVersionsClientUpdateOptions{ TemplateSpecVersionUpdateModel: &armtemplatespecs.TemplateSpecVersionUpdateModel{ Tags: map[string]*string{ "test": to.Ptr("live"), @@ -123,13 +119,11 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR }, }) testsuite.Require().NoError(err) - testsuite.Require().Equal("live", *updateResp.Tags["test"]) // get fmt.Println("Call operation: TemplateSpecVersions_Get") - getResp, err := templateSpecVersionsClient.Get(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, nil) + _, err = templateSpecVersionsClient.Get(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(templateSpecVersion, *getResp.Name) // list fmt.Println("Call operation: TemplateSpecVersions_List") diff --git a/sdk/resourcemanager/resources/armtemplatespecs/utils_test.go b/sdk/resourcemanager/resources/armtemplatespecs/utils_test.go new file mode 100644 index 000000000000..4df6dd6bc08e --- /dev/null +++ b/sdk/resourcemanager/resources/armtemplatespecs/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armtemplatespecs_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/resources/armtemplatespecs/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/search/armsearch/assets.json b/sdk/resourcemanager/search/armsearch/assets.json index a0439efbdffa..0cce01a3aaa8 100644 --- a/sdk/resourcemanager/search/armsearch/assets.json +++ b/sdk/resourcemanager/search/armsearch/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/search/armsearch", - "Tag": "go/resourcemanager/search/armsearch_c01924fe6f" + "Tag": "go/resourcemanager/search/armsearch_5ec2f2b0b0" } diff --git a/sdk/resourcemanager/search/armsearch/ci.yml b/sdk/resourcemanager/search/armsearch/ci.yml index d3da9ab51942..e6ddc7605fbd 100644 --- a/sdk/resourcemanager/search/armsearch/ci.yml +++ b/sdk/resourcemanager/search/armsearch/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/search/armsearch' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/search/armsearch/go.mod b/sdk/resourcemanager/search/armsearch/go.mod index 383bc7a66173..57e5ec179d2f 100644 --- a/sdk/resourcemanager/search/armsearch/go.mod +++ b/sdk/resourcemanager/search/armsearch/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/search/armsearch/go.sum b/sdk/resourcemanager/search/armsearch/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/search/armsearch/go.sum +++ b/sdk/resourcemanager/search/armsearch/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/search/armsearch/search_live_test.go b/sdk/resourcemanager/search/armsearch/search_live_test.go index 8f32db7033f2..536f68ab9cae 100644 --- a/sdk/resourcemanager/search/armsearch/search_live_test.go +++ b/sdk/resourcemanager/search/armsearch/search_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ type SearchTestSuite struct { } func (testsuite *SearchTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/search/armsearch/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *SearchTestSuite) TearDownSuite() { } func TestSearchTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SearchTestSuite)) } diff --git a/sdk/resourcemanager/search/armsearch/utils_test.go b/sdk/resourcemanager/search/armsearch/utils_test.go new file mode 100644 index 000000000000..19a550f94dbc --- /dev/null +++ b/sdk/resourcemanager/search/armsearch/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armsearch_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/search/armsearch/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/assets.json b/sdk/resourcemanager/selfhelp/armselfhelp/assets.json index 2f904a3aab44..a10b98751128 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/assets.json +++ b/sdk/resourcemanager/selfhelp/armselfhelp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/selfhelp/armselfhelp", - "Tag": "go/resourcemanager/selfhelp/armselfhelp_284b1859d5" + "Tag": "go/resourcemanager/selfhelp/armselfhelp_4698e35d39" } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/ci.yml b/sdk/resourcemanager/selfhelp/armselfhelp/ci.yml index 39d0ce289e6c..79d717a7b3d1 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/ci.yml +++ b/sdk/resourcemanager/selfhelp/armselfhelp/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/selfhelp/armselfhelp' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/go.mod b/sdk/resourcemanager/selfhelp/armselfhelp/go.mod index a0a259e39c7b..4d60b17bbefc 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/go.mod +++ b/sdk/resourcemanager/selfhelp/armselfhelp/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/go.sum b/sdk/resourcemanager/selfhelp/armselfhelp/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/go.sum +++ b/sdk/resourcemanager/selfhelp/armselfhelp/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/help_live_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/help_live_test.go index 017862a1c4cc..fce7a67ba37d 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/help_live_test.go +++ b/sdk/resourcemanager/selfhelp/armselfhelp/help_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2" "github.com/stretchr/testify/suite" @@ -34,7 +34,7 @@ type HelpTestSuite struct { } func (testsuite *HelpTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/selfhelp/armselfhelp/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *HelpTestSuite) TearDownSuite() { } func TestHelpTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(HelpTestSuite)) } diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/utils_test.go b/sdk/resourcemanager/selfhelp/armselfhelp/utils_test.go new file mode 100644 index 000000000000..e6ee7977a0b1 --- /dev/null +++ b/sdk/resourcemanager/selfhelp/armselfhelp/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armselfhelp_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/selfhelp/armselfhelp/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/assets.json b/sdk/resourcemanager/servicebus/armservicebus/assets.json index b69ebd236eec..d41f14e42ed3 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/assets.json +++ b/sdk/resourcemanager/servicebus/armservicebus/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/servicebus/armservicebus", - "Tag": "go/resourcemanager/servicebus/armservicebus_232ad50803" + "Tag": "go/resourcemanager/servicebus/armservicebus_4e9fe9c3d5" } diff --git a/sdk/resourcemanager/servicebus/armservicebus/ci.yml b/sdk/resourcemanager/servicebus/armservicebus/ci.yml index 54abde770093..cc32931808fc 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ci.yml +++ b/sdk/resourcemanager/servicebus/armservicebus/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/servicebus/armservicebus' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfig_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfig_live_test.go index 571aa37923dd..8f92d70c98ab 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfig_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfig_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -37,7 +37,7 @@ type DisasterRecoveryConfigTestSuite struct { } func (testsuite *DisasterRecoveryConfigTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *DisasterRecoveryConfigTestSuite) TearDownSuite() { } func TestDisasterRecoveryConfigTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(DisasterRecoveryConfigTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.mod b/sdk/resourcemanager/servicebus/armservicebus/go.mod index 36f21aa5426e..87fce552f16b 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.mod +++ b/sdk/resourcemanager/servicebus/armservicebus/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.sum b/sdk/resourcemanager/servicebus/armservicebus/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.sum +++ b/sdk/resourcemanager/servicebus/armservicebus/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go index 4847fe648277..7e919427e445 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type MigrationconfigsTestSuite struct { } func (testsuite *MigrationconfigsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *MigrationconfigsTestSuite) TearDownSuite() { } func TestMigrationconfigsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(MigrationconfigsTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/namespace_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/namespace_live_test.go index 2f5ead8555e9..ba687e15838f 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/namespace_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/namespace_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ type NamespaceTestSuite struct { } func (testsuite *NamespaceTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *NamespaceTestSuite) TearDownSuite() { } func TestNamespaceTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(NamespaceTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/operations_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/operations_live_test.go index 08d012308198..2a817f0f0883 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/operations_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/operations_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type OperationsTestSuite struct { } func (testsuite *OperationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *OperationsTestSuite) TearDownSuite() { } func TestOperationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OperationsTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/queue_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/queue_live_test.go index fa878ff61766..26bbbd1a75c1 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/queue_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/queue_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type QueueTestSuite struct { } func (testsuite *QueueTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *QueueTestSuite) TearDownSuite() { } func TestQueueTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(QueueTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/rules_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/rules_live_test.go index b6654db76c36..8853139d5e0c 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/rules_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/rules_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type RulesTestSuite struct { } func (testsuite *RulesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *RulesTestSuite) TearDownSuite() { } func TestRulesTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(RulesTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/subscriptions_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/subscriptions_live_test.go index 0553bd567cd9..e5d7fd9b150e 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/subscriptions_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/subscriptions_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type SubscriptionsTestSuite struct { } func (testsuite *SubscriptionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *SubscriptionsTestSuite) TearDownSuite() { } func TestSubscriptionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SubscriptionsTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go index 27c031387009..c4e2be17c0c3 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" "github.com/stretchr/testify/suite" ) @@ -35,7 +35,7 @@ type TopicsTestSuite struct { } func (testsuite *TopicsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -59,9 +59,6 @@ func (testsuite *TopicsTestSuite) TearDownSuite() { } func TestTopicsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TopicsTestSuite)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/utils_test.go b/sdk/resourcemanager/servicebus/armservicebus/utils_test.go new file mode 100644 index 000000000000..df8e9c23fcdd --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armservicebus_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/servicebus/armservicebus/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/assets.json b/sdk/resourcemanager/servicefabric/armservicefabric/assets.json index 231056d20655..c9fa505053c0 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/assets.json +++ b/sdk/resourcemanager/servicefabric/armservicefabric/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/servicefabric/armservicefabric", - "Tag": "go/resourcemanager/servicefabric/armservicefabric_6095f8310d" + "Tag": "go/resourcemanager/servicefabric/armservicefabric_11b55de58e" } diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/ci.yml b/sdk/resourcemanager/servicefabric/armservicefabric/ci.yml index 305e96a43544..cc032999adfe 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/ci.yml +++ b/sdk/resourcemanager/servicefabric/armservicefabric/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/servicefabric/armservicefabric' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/go.mod b/sdk/resourcemanager/servicefabric/armservicefabric/go.mod index 0311268080f2..c59e68d0846f 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/go.mod +++ b/sdk/resourcemanager/servicefabric/armservicefabric/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/go.sum b/sdk/resourcemanager/servicefabric/armservicefabric/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/go.sum +++ b/sdk/resourcemanager/servicefabric/armservicefabric/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/servicefabric_live_test.go b/sdk/resourcemanager/servicefabric/armservicefabric/servicefabric_live_test.go index 6d5573f05bc6..8c81bdd28347 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/servicefabric_live_test.go +++ b/sdk/resourcemanager/servicefabric/armservicefabric/servicefabric_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabric/armservicefabric/v2" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type ServicefabricTestSuite struct { } func (testsuite *ServicefabricTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicefabric/armservicefabric/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -57,9 +57,6 @@ func (testsuite *ServicefabricTestSuite) TearDownSuite() { } func TestServicefabricTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ServicefabricTestSuite)) } diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/utils_test.go b/sdk/resourcemanager/servicefabric/armservicefabric/utils_test.go new file mode 100644 index 000000000000..c3c3aaa92cd4 --- /dev/null +++ b/sdk/resourcemanager/servicefabric/armservicefabric/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armservicefabric_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/servicefabric/armservicefabric/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/signalr/armsignalr/assets.json b/sdk/resourcemanager/signalr/armsignalr/assets.json index 11a82b814298..ee271fd3da79 100644 --- a/sdk/resourcemanager/signalr/armsignalr/assets.json +++ b/sdk/resourcemanager/signalr/armsignalr/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/signalr/armsignalr", - "Tag": "go/resourcemanager/signalr/armsignalr_d43ddfe6a5" + "Tag": "go/resourcemanager/signalr/armsignalr_b51d208d6b" } diff --git a/sdk/resourcemanager/signalr/armsignalr/ci.yml b/sdk/resourcemanager/signalr/armsignalr/ci.yml index 4710f8f9daec..27860d050ce3 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ci.yml +++ b/sdk/resourcemanager/signalr/armsignalr/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/signalr/armsignalr' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/signalr/armsignalr/go.mod b/sdk/resourcemanager/signalr/armsignalr/go.mod index 8b866e7f0aa7..f3a7a2eca3f9 100644 --- a/sdk/resourcemanager/signalr/armsignalr/go.mod +++ b/sdk/resourcemanager/signalr/armsignalr/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/signalr/armsignalr/go.sum b/sdk/resourcemanager/signalr/armsignalr/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/signalr/armsignalr/go.sum +++ b/sdk/resourcemanager/signalr/armsignalr/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/signalr/armsignalr/signalr_live_test.go b/sdk/resourcemanager/signalr/armsignalr/signalr_live_test.go index 75373a046745..b09314ae4daf 100644 --- a/sdk/resourcemanager/signalr/armsignalr/signalr_live_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/signalr_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/signalr/armsignalr" "github.com/stretchr/testify/suite" @@ -40,7 +40,7 @@ type SignalrTestSuite struct { } func (testsuite *SignalrTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/signalr/armsignalr/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -67,9 +67,6 @@ func (testsuite *SignalrTestSuite) TearDownSuite() { } func TestSignalrTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SignalrTestSuite)) } diff --git a/sdk/resourcemanager/signalr/armsignalr/utils_test.go b/sdk/resourcemanager/signalr/armsignalr/utils_test.go new file mode 100644 index 000000000000..530477401043 --- /dev/null +++ b/sdk/resourcemanager/signalr/armsignalr/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armsignalr_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/signalr/armsignalr/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/storage/armstorage/assets.json b/sdk/resourcemanager/storage/armstorage/assets.json index 799f7afd7fe4..c2d703672183 100644 --- a/sdk/resourcemanager/storage/armstorage/assets.json +++ b/sdk/resourcemanager/storage/armstorage/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/storage/armstorage", - "Tag": "go/resourcemanager/storage/armstorage_c9d59e874d" + "Tag": "go/resourcemanager/storage/armstorage_a540308934" } diff --git a/sdk/resourcemanager/storage/armstorage/blob_live_test.go b/sdk/resourcemanager/storage/armstorage/blob_live_test.go index 36c83254a9ac..547bf4f7b530 100644 --- a/sdk/resourcemanager/storage/armstorage/blob_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/blob_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type BlobTestSuite struct { } func (testsuite *BlobTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storage/armstorage/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *BlobTestSuite) TearDownSuite() { } func TestBlobTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(BlobTestSuite)) } diff --git a/sdk/resourcemanager/storage/armstorage/ci.yml b/sdk/resourcemanager/storage/armstorage/ci.yml index d45072ec1edf..674a186be8af 100644 --- a/sdk/resourcemanager/storage/armstorage/ci.yml +++ b/sdk/resourcemanager/storage/armstorage/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/storage/armstorage' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/storage/armstorage/file_live_test.go b/sdk/resourcemanager/storage/armstorage/file_live_test.go index 2b8f2f90b07f..54366289a656 100644 --- a/sdk/resourcemanager/storage/armstorage/file_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/file_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type FileTestSuite struct { } func (testsuite *FileTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storage/armstorage/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *FileTestSuite) TearDownSuite() { } func TestFileTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(FileTestSuite)) } diff --git a/sdk/resourcemanager/storage/armstorage/go.mod b/sdk/resourcemanager/storage/armstorage/go.mod index 95836434db0a..f49f108530ed 100644 --- a/sdk/resourcemanager/storage/armstorage/go.mod +++ b/sdk/resourcemanager/storage/armstorage/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/storage/armstorage/go.sum b/sdk/resourcemanager/storage/armstorage/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/storage/armstorage/go.sum +++ b/sdk/resourcemanager/storage/armstorage/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/storage/armstorage/queue_live_test.go b/sdk/resourcemanager/storage/armstorage/queue_live_test.go index f1e42bd97244..bfab2f322fa4 100644 --- a/sdk/resourcemanager/storage/armstorage/queue_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/queue_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type QueueTestSuite struct { } func (testsuite *QueueTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storage/armstorage/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *QueueTestSuite) TearDownSuite() { } func TestQueueTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(QueueTestSuite)) } diff --git a/sdk/resourcemanager/storage/armstorage/storage_live_test.go b/sdk/resourcemanager/storage/armstorage/storage_live_test.go index b767e704b17e..2f8c07fd215d 100644 --- a/sdk/resourcemanager/storage/armstorage/storage_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/storage_live_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type StorageTestSuite struct { } func (testsuite *StorageTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storage/armstorage/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *StorageTestSuite) TearDownSuite() { } func TestStorageTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(StorageTestSuite)) } diff --git a/sdk/resourcemanager/storage/armstorage/table_live_test.go b/sdk/resourcemanager/storage/armstorage/table_live_test.go index 6fb4a90db05c..4ef237590864 100644 --- a/sdk/resourcemanager/storage/armstorage/table_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/table_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type TableTestSuite struct { } func (testsuite *TableTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storage/armstorage/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -54,9 +54,6 @@ func (testsuite *TableTestSuite) TearDownSuite() { } func TestTableTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TableTestSuite)) } diff --git a/sdk/resourcemanager/storage/armstorage/utils_test.go b/sdk/resourcemanager/storage/armstorage/utils_test.go new file mode 100644 index 000000000000..64103c4de1b9 --- /dev/null +++ b/sdk/resourcemanager/storage/armstorage/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armstorage_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/storage/armstorage/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/storagecache/armstoragecache/amlfilesystem_live_test.go b/sdk/resourcemanager/storagecache/armstoragecache/amlfilesystem_live_test.go index 7031b1fd474d..c642b832c426 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/amlfilesystem_live_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/amlfilesystem_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v4" "github.com/stretchr/testify/suite" @@ -36,7 +36,7 @@ type AmlfilesystemTestSuite struct { } func (testsuite *AmlfilesystemTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storagecache/armstoragecache/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -58,9 +58,6 @@ func (testsuite *AmlfilesystemTestSuite) TearDownSuite() { } func TestAmlfilesystemTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AmlfilesystemTestSuite)) } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/assets.json b/sdk/resourcemanager/storagecache/armstoragecache/assets.json index c0e3615a8d37..7cf3faf92411 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/assets.json +++ b/sdk/resourcemanager/storagecache/armstoragecache/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/storagecache/armstoragecache", - "Tag": "go/resourcemanager/storagecache/armstoragecache_2fee547926" + "Tag": "go/resourcemanager/storagecache/armstoragecache_e4934615fc" } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/ci.yml b/sdk/resourcemanager/storagecache/armstoragecache/ci.yml index 75b63b028272..b9d4fbcb3ba1 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/ci.yml +++ b/sdk/resourcemanager/storagecache/armstoragecache/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/storagecache/armstoragecache' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/storagecache/armstoragecache/go.mod b/sdk/resourcemanager/storagecache/armstoragecache/go.mod index fcb3f3d6346f..7b722526b100 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/go.mod +++ b/sdk/resourcemanager/storagecache/armstoragecache/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/storagecache/armstoragecache/go.sum b/sdk/resourcemanager/storagecache/armstoragecache/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/go.sum +++ b/sdk/resourcemanager/storagecache/armstoragecache/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/storagecache/armstoragecache/storagecache_live_test.go b/sdk/resourcemanager/storagecache/armstoragecache/storagecache_live_test.go index b23cf28e4cbf..2d586c457683 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/storagecache_live_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/storagecache_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v4" "github.com/stretchr/testify/suite" @@ -37,7 +37,7 @@ type StoragecacheTestSuite struct { } func (testsuite *StoragecacheTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storagecache/armstoragecache/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *StoragecacheTestSuite) TearDownSuite() { } func TestStoragecacheTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(StoragecacheTestSuite)) } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/utils_test.go b/sdk/resourcemanager/storagecache/armstoragecache/utils_test.go new file mode 100644 index 000000000000..6dc6f3d5a4b0 --- /dev/null +++ b/sdk/resourcemanager/storagecache/armstoragecache/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armstoragecache_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/storagecache/armstoragecache/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/agent_live_test.go b/sdk/resourcemanager/storagemover/armstoragemover/agent_live_test.go index c7cefbee988b..37e8bb503984 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/agent_live_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/agent_live_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/internal/uuid" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover/v2" "github.com/stretchr/testify/suite" ) @@ -36,7 +36,7 @@ type AgentTestSuite struct { } func (testsuite *AgentTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storagemover/armstoragemover/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -60,9 +60,6 @@ func (testsuite *AgentTestSuite) TearDownSuite() { } func TestAgentTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(AgentTestSuite)) } diff --git a/sdk/resourcemanager/storagemover/armstoragemover/assets.json b/sdk/resourcemanager/storagemover/armstoragemover/assets.json index 0169f90df088..bb444a23bdf8 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/assets.json +++ b/sdk/resourcemanager/storagemover/armstoragemover/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/storagemover/armstoragemover", - "Tag": "go/resourcemanager/storagemover/armstoragemover_1734d1d534" + "Tag": "go/resourcemanager/storagemover/armstoragemover_a15eaf55d8" } diff --git a/sdk/resourcemanager/storagemover/armstoragemover/ci.yml b/sdk/resourcemanager/storagemover/armstoragemover/ci.yml index abd5c9a126c3..396d488f5e93 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/ci.yml +++ b/sdk/resourcemanager/storagemover/armstoragemover/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/storagemover/armstoragemover' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/storagemover/armstoragemover/go.mod b/sdk/resourcemanager/storagemover/armstoragemover/go.mod index 24e31af064d2..d700665bcea8 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/go.mod +++ b/sdk/resourcemanager/storagemover/armstoragemover/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/storagemover/armstoragemover/go.sum b/sdk/resourcemanager/storagemover/armstoragemover/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/go.sum +++ b/sdk/resourcemanager/storagemover/armstoragemover/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/storagemover/armstoragemover/storagemover_live_test.go b/sdk/resourcemanager/storagemover/armstoragemover/storagemover_live_test.go index 66ebcb4cb37f..6dbc4b3ac0ce 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/storagemover_live_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/storagemover_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover/v2" "github.com/stretchr/testify/suite" ) @@ -38,7 +38,7 @@ type StoragemoverTestSuite struct { } func (testsuite *StoragemoverTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/storagemover/armstoragemover/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -65,9 +65,6 @@ func (testsuite *StoragemoverTestSuite) TearDownSuite() { } func TestStoragemoverTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(StoragemoverTestSuite)) } diff --git a/sdk/resourcemanager/storagemover/armstoragemover/utils_test.go b/sdk/resourcemanager/storagemover/armstoragemover/utils_test.go new file mode 100644 index 000000000000..c74609200c37 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armstoragemover_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/storagemover/armstoragemover/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/assets.json b/sdk/resourcemanager/streamanalytics/armstreamanalytics/assets.json index 9530769dfd5f..c4ccd3e4f218 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/assets.json +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/streamanalytics/armstreamanalytics", - "Tag": "go/resourcemanager/streamanalytics/armstreamanalytics_b685cb22bc" + "Tag": "go/resourcemanager/streamanalytics/armstreamanalytics_ae642adaf7" } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/ci.yml b/sdk/resourcemanager/streamanalytics/armstreamanalytics/ci.yml index f6f4e46bf3ed..90ac33bd0835 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/ci.yml +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/streamanalytics/armstreamanalytics' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/clusters_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/clusters_live_test.go index 8d34f7d57e5f..35f1714ab8b4 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/clusters_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/clusters_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type ClustersTestSuite struct { } func (testsuite *ClustersTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *ClustersTestSuite) TearDownSuite() { } func TestClustersTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(ClustersTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/functions_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/functions_live_test.go index 83ed126c8a3a..b3dcbb92f506 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/functions_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/functions_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type FunctionsTestSuite struct { } func (testsuite *FunctionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *FunctionsTestSuite) TearDownSuite() { } func TestFunctionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(FunctionsTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.mod b/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.mod index cfb0fe86bded..2d5ae70c5513 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.mod +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.sum b/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.sum +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/inputs_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/inputs_live_test.go index 90a24e183408..ec68bea8ac19 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/inputs_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/inputs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type InputsTestSuite struct { } func (testsuite *InputsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *InputsTestSuite) TearDownSuite() { } func TestInputsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(InputsTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/outputs_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/outputs_live_test.go index baa83a1d139f..076c3d0a4ab4 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/outputs_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/outputs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" @@ -38,7 +38,7 @@ type OutputsTestSuite struct { } func (testsuite *OutputsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -61,9 +61,6 @@ func (testsuite *OutputsTestSuite) TearDownSuite() { } func TestOutputsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(OutputsTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/streamingjobs_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/streamingjobs_live_test.go index bf0b9e6a9863..dc97943f84f5 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/streamingjobs_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/streamingjobs_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" ) @@ -33,7 +33,7 @@ type StreamingjobsTestSuite struct { } func (testsuite *StreamingjobsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -53,9 +53,6 @@ func (testsuite *StreamingjobsTestSuite) TearDownSuite() { } func TestStreamingjobsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(StreamingjobsTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/subscriptions_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/subscriptions_live_test.go index 96436a66a7f9..0eaf87b39527 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/subscriptions_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/subscriptions_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" ) @@ -31,7 +31,7 @@ type SubscriptionsTestSuite struct { } func (testsuite *SubscriptionsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -50,9 +50,6 @@ func (testsuite *SubscriptionsTestSuite) TearDownSuite() { } func TestSubscriptionsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(SubscriptionsTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/transformations_live_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/transformations_live_test.go index b2565a944922..df355a9cfc79 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/transformations_live_test.go +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/transformations_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2" "github.com/stretchr/testify/suite" ) @@ -34,7 +34,7 @@ type TransformationsTestSuite struct { } func (testsuite *TransformationsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -56,9 +56,6 @@ func (testsuite *TransformationsTestSuite) TearDownSuite() { } func TestTransformationsTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(TransformationsTestSuite)) } diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/utils_test.go b/sdk/resourcemanager/streamanalytics/armstreamanalytics/utils_test.go new file mode 100644 index 000000000000..46aa064ec47f --- /dev/null +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armstreamanalytics_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/streamanalytics/armstreamanalytics/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/assets.json b/sdk/resourcemanager/webpubsub/armwebpubsub/assets.json index a4d5505a52c4..469b11a8a8a3 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/assets.json +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/resourcemanager/webpubsub/armwebpubsub", - "Tag": "go/resourcemanager/webpubsub/armwebpubsub_b9f481d511" + "Tag": "go/resourcemanager/webpubsub/armwebpubsub_b381e8b4a9" } diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/ci.yml b/sdk/resourcemanager/webpubsub/armwebpubsub/ci.yml index 39a64c5cbb30..258b3953a66c 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ci.yml +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/webpubsub/armwebpubsub' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/go.mod b/sdk/resourcemanager/webpubsub/armwebpubsub/go.mod index d47a00ac6b1e..d9f15989649e 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/go.mod +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 github.com/stretchr/testify v1.9.0 ) @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/go.sum b/sdk/resourcemanager/webpubsub/armwebpubsub/go.sum index 613a87987df6..2ec1d952dc42 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/go.sum +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/go.sum @@ -2,16 +2,16 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0 h1:Kb8eVvjdP6kZqYnER5w/PiGCFp91yVgaxve3d7kCEpY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.0.0/go.mod h1:lYq15QkJyEsNegz5EhI/0SXQ6spvGfgwBH/Qyzkoc/s= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -20,7 +20,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/utils_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/utils_test.go new file mode 100644 index 000000000000..f28edf85bd88 --- /dev/null +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/utils_test.go @@ -0,0 +1,29 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package armwebpubsub_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/webpubsub/armwebpubsub/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/webpubsub_live_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/webpubsub_live_test.go index 777a29a421d3..1a2576781cd3 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/webpubsub_live_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/webpubsub_live_test.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/webpubsub/armwebpubsub" "github.com/stretchr/testify/suite" @@ -42,7 +42,7 @@ type WebpubsubTestSuite struct { } func (testsuite *WebpubsubTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/webpubsub/armwebpubsub/testdata") + testutil.StartRecording(testsuite.T(), pathToPackage) testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) @@ -71,9 +71,6 @@ func (testsuite *WebpubsubTestSuite) TearDownSuite() { } func TestWebpubsubTestSuite(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } suite.Run(t, new(WebpubsubTestSuite)) } diff --git a/sdk/security/keyvault/azadmin/assets.json b/sdk/security/keyvault/azadmin/assets.json index e09bf568b292..d3e952015614 100644 --- a/sdk/security/keyvault/azadmin/assets.json +++ b/sdk/security/keyvault/azadmin/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/security/keyvault/azadmin", - "Tag": "go/security/keyvault/azadmin_71b7c99818" + "Tag": "go/security/keyvault/azadmin_634a3b12f7" } diff --git a/sdk/security/keyvault/azadmin/go.mod b/sdk/security/keyvault/azadmin/go.mod index d4fe60b31009..1be2e13ea5a5 100644 --- a/sdk/security/keyvault/azadmin/go.mod +++ b/sdk/security/keyvault/azadmin/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 github.com/google/uuid v1.6.0 @@ -20,9 +20,9 @@ require ( github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/crypto v0.23.0 // indirect - golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.20.0 // indirect - golang.org/x/text v0.15.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/security/keyvault/azadmin/go.sum b/sdk/security/keyvault/azadmin/go.sum index 9066d1dcadef..e8a0ce645727 100644 --- a/sdk/security/keyvault/azadmin/go.sum +++ b/sdk/security/keyvault/azadmin/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0 h1:DRiANoJTiW6obBQe3SqZizkuV1PEgfiiGivmVocDy64= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0/go.mod h1:qLIye2hwb/ZouqhpSD9Zn3SJipvpEnz1Ywl3VUk9Y0s= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= @@ -29,15 +29,15 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= -golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= -golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azadmin/rbac/client_test.go b/sdk/security/keyvault/azadmin/rbac/client_test.go index fac79560b100..a5b1b2bf4703 100644 --- a/sdk/security/keyvault/azadmin/rbac/client_test.go +++ b/sdk/security/keyvault/azadmin/rbac/client_test.go @@ -20,9 +20,6 @@ import ( ) func TestRoleDefinition(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startAccessControlTest(t) var name, roleName string @@ -139,9 +136,6 @@ func TestDeleteRoleDefinition_FailureInvalidRole(t *testing.T) { } func TestRoleAssignment(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startAccessControlTest(t) var name, principalID, roleDefinitionID string @@ -167,9 +161,14 @@ func TestRoleAssignment(t *testing.T) { require.NoError(t, err) require.Equal(t, name, *createdAssignment.Name) require.Equal(t, scope, *createdAssignment.Properties.Scope) - require.Equal(t, principalID, *createdAssignment.Properties.PrincipalID) require.Equal(t, roleDefinitionID, *createdAssignment.Properties.RoleDefinitionID) + if recording.GetRecordMode() == recording.PlaybackMode { + require.Equal(t, "00000000-0000-0000-0000-000000000000", *createdAssignment.Properties.PrincipalID) + } else { + require.Equal(t, principalID, *createdAssignment.Properties.PrincipalID) + } + // test if able to get role assignment gotAssignment, err := client.GetRoleAssignment(context.Background(), scope, name, nil) require.NoError(t, err) diff --git a/sdk/security/keyvault/azadmin/rbac/utils_test.go b/sdk/security/keyvault/azadmin/rbac/utils_test.go index 989276452b89..13d8fe27c474 100644 --- a/sdk/security/keyvault/azadmin/rbac/utils_test.go +++ b/sdk/security/keyvault/azadmin/rbac/utils_test.go @@ -66,6 +66,16 @@ func run(m *testing.M) int { hsmURL = getEnvVar("AZURE_MANAGEDHSM_URL", fakeHsmURL) + if recording.GetRecordMode() != recording.LiveMode { + err := recording.RemoveRegisteredSanitizers([]string{ + "AZSDK3493", // name in body + "AZSDK3430", // ID in body + }, nil) + if err != nil { + panic(err) + } + } + return m.Run() } diff --git a/sdk/security/keyvault/azadmin/settings/client_test.go b/sdk/security/keyvault/azadmin/settings/client_test.go index 1b44bde8a3f4..d0fdac8b5c9d 100644 --- a/sdk/security/keyvault/azadmin/settings/client_test.go +++ b/sdk/security/keyvault/azadmin/settings/client_test.go @@ -20,17 +20,15 @@ import ( ) func TestGetSetting(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startSettingsTest(t) + settingName := "AllowKeyManagementOperationsThroughARM" res, err := client.GetSetting(context.Background(), settingName, nil) require.NoError(t, err) require.NotNil(t, res) - require.Equal(t, *res.Name, settingName) - require.Equal(t, *res.Type, settings.SettingTypeBoolean) + require.Equal(t, settingName, *res.Name) + require.Equal(t, settings.SettingTypeBoolean, *res.Type) require.NotNil(t, res.Value) testSerde(t, &res) } @@ -71,10 +69,8 @@ func TestGetSettings(t *testing.T) { } func TestUpdateSetting(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startSettingsTest(t) + settingName := "AllowKeyManagementOperationsThroughARM" var updatedBool string diff --git a/sdk/security/keyvault/azadmin/settings/utils_test.go b/sdk/security/keyvault/azadmin/settings/utils_test.go index b92f6651f7bc..dd41249135f7 100644 --- a/sdk/security/keyvault/azadmin/settings/utils_test.go +++ b/sdk/security/keyvault/azadmin/settings/utils_test.go @@ -9,7 +9,6 @@ package settings_test import ( "context" "encoding/json" - "fmt" "os" "regexp" "testing" @@ -54,9 +53,9 @@ func run(m *testing.M) int { if recording.GetRecordMode() == recording.PlaybackMode { credential = &FakeCredential{} } else { - tenantID := lookupEnvVar("AZADMIN_TENANT_ID") - clientID := lookupEnvVar("AZADMIN_CLIENT_ID") - secret := lookupEnvVar("AZADMIN_CLIENT_SECRET") + tenantID := getEnvVar("AZADMIN_TENANT_ID", "") + clientID := getEnvVar("AZADMIN_CLIENT_ID", "") + secret := getEnvVar("AZADMIN_CLIENT_SECRET", "") var err error credential, err = azidentity.NewClientSecretCredential(tenantID, clientID, secret, nil) if err != nil { @@ -66,6 +65,15 @@ func run(m *testing.M) int { hsmURL = getEnvVar("AZURE_MANAGEDHSM_URL", fakeHsmURL) + if recording.GetRecordMode() != recording.LiveMode { + err := recording.RemoveRegisteredSanitizers([]string{ + "AZSDK3493", // name in body + }, nil) + if err != nil { + panic(err) + } + } + return m.Run() } @@ -88,26 +96,25 @@ func startSettingsTest(t *testing.T) *settings.Client { return client } -func getEnvVar(lookupValue string, fakeValue string) string { - envVar := fakeValue - if recording.GetRecordMode() != recording.PlaybackMode { - envVar = lookupEnvVar(lookupValue) +func getEnvVar(envVar string, fakeValue string) string { + // get value + value := fakeValue + if recording.GetRecordMode() == recording.LiveMode || recording.GetRecordMode() == recording.RecordingMode { + value = os.Getenv(envVar) + if value == "" { + panic("no value for " + envVar) + } } - if recording.GetRecordMode() == recording.RecordingMode { - err := recording.AddGeneralRegexSanitizer(fakeValue, envVar, nil) + + // sanitize value + if fakeValue != "" && recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeValue, value, nil) if err != nil { panic(err) } } - return envVar -} -func lookupEnvVar(s string) string { - v := os.Getenv(s) - if v == "" { - panic(fmt.Sprintf("Could not find env var: '%s'", s)) - } - return v + return value } type FakeCredential struct{} diff --git a/sdk/security/keyvault/azcertificates/assets.json b/sdk/security/keyvault/azcertificates/assets.json index 4d0cbbc37dfe..e3fb01a266c1 100644 --- a/sdk/security/keyvault/azcertificates/assets.json +++ b/sdk/security/keyvault/azcertificates/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/security/keyvault/azcertificates", - "Tag": "go/security/keyvault/azcertificates_d675d8f502" + "Tag": "go/security/keyvault/azcertificates_0978442583" } diff --git a/sdk/security/keyvault/azcertificates/client_test.go b/sdk/security/keyvault/azcertificates/client_test.go index 31493ce19872..330660a15b5d 100644 --- a/sdk/security/keyvault/azcertificates/client_test.go +++ b/sdk/security/keyvault/azcertificates/client_test.go @@ -138,9 +138,6 @@ func TestBackupRestore(t *testing.T) { } func TestContactsCRUD(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) contacts := azcertificates.Contacts{ContactList: []*azcertificates.Contact{ @@ -160,9 +157,6 @@ func TestContactsCRUD(t *testing.T) { } func TestCRUD(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) certName := getName(t, "") @@ -225,9 +219,6 @@ func TestCRUD(t *testing.T) { } func TestDeleteRecover(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) certName := getName(t, "") createParams := azcertificates.CreateCertificateParameters{CertificatePolicy: &selfSignedPolicy} @@ -322,9 +313,6 @@ func TestID(t *testing.T) { } func TestImportCertificate(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) certName := getName(t, "") importParams := azcertificates.ImportCertificateParameters{ @@ -411,9 +399,6 @@ func TestIssuerCRUD(t *testing.T) { } func TestListCertificates(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) tag := getName(t, "") @@ -479,9 +464,6 @@ func TestListCertificates(t *testing.T) { } func TestListCertificateVersions(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) name := getName(t, "") @@ -617,9 +599,6 @@ func TestOperationCRUD(t *testing.T) { } func TestUpdateCertificatePolicy(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) certName := getName(t, "") diff --git a/sdk/security/keyvault/azcertificates/go.mod b/sdk/security/keyvault/azcertificates/go.mod index 8527447c7486..7d94481509f4 100644 --- a/sdk/security/keyvault/azcertificates/go.mod +++ b/sdk/security/keyvault/azcertificates/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 github.com/stretchr/testify v1.9.0 ) @@ -19,9 +19,9 @@ require ( github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/security/keyvault/azcertificates/go.sum b/sdk/security/keyvault/azcertificates/go.sum index 27c34b1956aa..e9319a0c9b52 100644 --- a/sdk/security/keyvault/azcertificates/go.sum +++ b/sdk/security/keyvault/azcertificates/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1/go.mod h1:f+OaoSg0VQYPMqB0Jp2D54j1VHzITYcJaCNwV+k00ts= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= @@ -27,15 +27,15 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azcertificates/testdata/perf/go.mod b/sdk/security/keyvault/azcertificates/testdata/perf/go.mod index 8f1254836300..93c6bf37c420 100644 --- a/sdk/security/keyvault/azcertificates/testdata/perf/go.mod +++ b/sdk/security/keyvault/azcertificates/testdata/perf/go.mod @@ -7,7 +7,7 @@ replace github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azcertificates = require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azcertificates v1.1.0 ) @@ -18,8 +18,8 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect ) diff --git a/sdk/security/keyvault/azcertificates/testdata/perf/go.sum b/sdk/security/keyvault/azcertificates/testdata/perf/go.sum index 65e283bb3be1..ef2f68e57ae8 100644 --- a/sdk/security/keyvault/azcertificates/testdata/perf/go.sum +++ b/sdk/security/keyvault/azcertificates/testdata/perf/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1/go.mod h1:f+OaoSg0VQYPMqB0Jp2D54j1VHzITYcJaCNwV+k00ts= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= @@ -19,13 +19,13 @@ github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmd github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azcertificates/utils_test.go b/sdk/security/keyvault/azcertificates/utils_test.go index 3d4b9fc528c4..dda5fa05a792 100644 --- a/sdk/security/keyvault/azcertificates/utils_test.go +++ b/sdk/security/keyvault/azcertificates/utils_test.go @@ -11,7 +11,6 @@ import ( "fmt" "hash/fnv" "os" - "strings" "sync" "testing" "time" @@ -25,7 +24,8 @@ import ( ) const recordingDirectory = "sdk/security/keyvault/azcertificates/testdata" -const fakeVaultURL = "https://fakevault.local" + +const fakeVaultURL = "https://test.vault.azure.net/" var ( certsToPurge = struct { @@ -59,45 +59,31 @@ func run(m *testing.M) int { }() } - vaultURL = strings.TrimSuffix(recording.GetEnvVariable("AZURE_KEYVAULT_URL", fakeVaultURL), "/") - if vaultURL == "" { - if recording.GetRecordMode() != recording.PlaybackMode { - panic("no value for AZURE_KEYVAULT_URL") - } - vaultURL = fakeVaultURL - } if recording.GetRecordMode() == recording.PlaybackMode { credential = &FakeCredential{} } else { - tenantId := lookupEnvVar("AZCERTIFICATES_TENANT_ID") - clientId := lookupEnvVar("AZCERTIFICATES_CLIENT_ID") - secret := lookupEnvVar("AZCERTIFICATES_CLIENT_SECRET") + tenantId := getEnvVar("AZCERTIFICATES_TENANT_ID", "") + clientId := getEnvVar("AZCERTIFICATES_CLIENT_ID", "") + secret := getEnvVar("AZCERTIFICATES_CLIENT_SECRET", "") var err error credential, err = azidentity.NewClientSecretCredential(tenantId, clientId, secret, nil) if err != nil { panic(err) } } - if recording.GetRecordMode() == recording.RecordingMode { - err := recording.AddURISanitizer(fakeVaultURL, vaultURL, nil) - if err != nil { - panic(err) - } - opts := proxy.Options - opts.GroupForReplace = "1" - err = recording.AddHeaderRegexSanitizer("WWW-Authenticate", "https://local", `resource="(.*)"`, opts) - if err != nil { - panic(err) - } - err = recording.AddBodyRegexSanitizer(fakeVaultURL, vaultURL, nil) - if err != nil { - panic(err) - } - err = recording.AddHeaderRegexSanitizer("Location", fakeVaultURL, vaultURL, nil) + + vaultURL = getEnvVar("AZURE_KEYVAULT_URL", fakeVaultURL) + + if recording.GetRecordMode() != recording.LiveMode { + err := recording.RemoveRegisteredSanitizers([]string{ + "AZSDK3430", // id in body + "AZSDK3493", // name in body + }, nil) if err != nil { panic(err) } } + code := m.Run() if recording.GetRecordMode() != recording.PlaybackMode { // Purge test certs using a client whose requests aren't recorded. This @@ -150,12 +136,25 @@ func getName(t *testing.T, prefix string) string { return prefix + fmt.Sprint(h.Sum32()) } -func lookupEnvVar(s string) string { - ret, ok := os.LookupEnv(s) - if !ok { - panic(fmt.Sprintf("Could not find env var: '%s'", s)) +func getEnvVar(envVar string, fakeValue string) string { + // get value + value := fakeValue + if recording.GetRecordMode() == recording.LiveMode || recording.GetRecordMode() == recording.RecordingMode { + value = os.Getenv(envVar) + if value == "" { + panic("no value for " + envVar) + } } - return ret + + // sanitize value + if fakeValue != "" && recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeValue, value, nil) + if err != nil { + panic(err) + } + } + + return value } type FakeCredential struct{} diff --git a/sdk/security/keyvault/azkeys/assets.json b/sdk/security/keyvault/azkeys/assets.json index 00d485deb1d2..85d06e4f0567 100644 --- a/sdk/security/keyvault/azkeys/assets.json +++ b/sdk/security/keyvault/azkeys/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/security/keyvault/azkeys", - "Tag": "go/security/keyvault/azkeys_2d421aec6c" + "Tag": "go/security/keyvault/azkeys_7fbf8d3336" } diff --git a/sdk/security/keyvault/azkeys/client_test.go b/sdk/security/keyvault/azkeys/client_test.go index e0dad89fb855..53daf1a9ac36 100644 --- a/sdk/security/keyvault/azkeys/client_test.go +++ b/sdk/security/keyvault/azkeys/client_test.go @@ -537,9 +537,6 @@ func TestRecoverDeletedKey(t *testing.T) { } func TestReleaseKey(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } for _, mhsm := range []bool{false, true} { name := "KV" if mhsm { @@ -583,7 +580,7 @@ func TestReleaseKey(t *testing.T) { require.NoError(t, err) resp, err := attestationClient.Do(req) require.NoError(t, err) - require.Equal(t, resp.StatusCode, http.StatusOK) + require.Equal(t, http.StatusOK, resp.StatusCode) defer resp.Body.Close() var tR struct { diff --git a/sdk/security/keyvault/azkeys/go.mod b/sdk/security/keyvault/azkeys/go.mod index 2762ce1d3758..68c86007a9f3 100644 --- a/sdk/security/keyvault/azkeys/go.mod +++ b/sdk/security/keyvault/azkeys/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 github.com/stretchr/testify v1.9.0 ) @@ -19,9 +19,9 @@ require ( github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/security/keyvault/azkeys/go.sum b/sdk/security/keyvault/azkeys/go.sum index 27c34b1956aa..e9319a0c9b52 100644 --- a/sdk/security/keyvault/azkeys/go.sum +++ b/sdk/security/keyvault/azkeys/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1/go.mod h1:f+OaoSg0VQYPMqB0Jp2D54j1VHzITYcJaCNwV+k00ts= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= @@ -27,15 +27,15 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azkeys/testdata/perf/go.mod b/sdk/security/keyvault/azkeys/testdata/perf/go.mod index 80a2b3e0882f..807e312a8931 100644 --- a/sdk/security/keyvault/azkeys/testdata/perf/go.mod +++ b/sdk/security/keyvault/azkeys/testdata/perf/go.mod @@ -7,7 +7,7 @@ replace github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys => ../.. require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.1.0 ) @@ -18,8 +18,8 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect ) diff --git a/sdk/security/keyvault/azkeys/testdata/perf/go.sum b/sdk/security/keyvault/azkeys/testdata/perf/go.sum index 65e283bb3be1..ef2f68e57ae8 100644 --- a/sdk/security/keyvault/azkeys/testdata/perf/go.sum +++ b/sdk/security/keyvault/azkeys/testdata/perf/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1/go.mod h1:f+OaoSg0VQYPMqB0Jp2D54j1VHzITYcJaCNwV+k00ts= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= @@ -19,13 +19,13 @@ github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmd github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azkeys/utils_test.go b/sdk/security/keyvault/azkeys/utils_test.go index f6b7bcebe1f3..a147217972f9 100644 --- a/sdk/security/keyvault/azkeys/utils_test.go +++ b/sdk/security/keyvault/azkeys/utils_test.go @@ -15,7 +15,6 @@ import ( "hash/fnv" "os" "regexp" - "strings" "sync" "testing" "time" @@ -30,9 +29,9 @@ import ( ) const recordingDirectory = "sdk/security/keyvault/azkeys/testdata" -const fakeAttestationUrl = "https://fakeattestation" -const fakeMHSMURL = "https://fakemhsm.local" -const fakeVaultURL = "https://fakevault.local" +const fakeAttestationUrl = "https://test.azurewebsites.net/" +const fakeMHSMURL = "https://test.managedhsm.azure.net/" +const fakeVaultURL = "https://test.vault.azure.net/" var ( keysToPurge = struct { @@ -69,49 +68,25 @@ func run(m *testing.M) int { }() } - attestationURL = strings.TrimSuffix(recording.GetEnvVariable("AZURE_KEYVAULT_ATTESTATION_URL", fakeAttestationUrl), "/") - mhsmURL = strings.TrimSuffix(recording.GetEnvVariable("AZURE_MANAGEDHSM_URL", fakeMHSMURL), "/") - vaultURL = strings.TrimSuffix(recording.GetEnvVariable("AZURE_KEYVAULT_URL", fakeVaultURL), "/") - if vaultURL == "" { - if recording.GetRecordMode() != recording.PlaybackMode { - panic("no value for AZURE_KEYVAULT_URL") - } - vaultURL = fakeVaultURL - } - enableHSM = mhsmURL != fakeMHSMURL if recording.GetRecordMode() == recording.PlaybackMode { credential = &FakeCredential{} } else { - tenantId := lookupEnvVar("AZKEYS_TENANT_ID") - clientId := lookupEnvVar("AZKEYS_CLIENT_ID") - secret := lookupEnvVar("AZKEYS_CLIENT_SECRET") + tenantId := getEnvVar("AZKEYS_TENANT_ID", "") + clientId := getEnvVar("AZKEYS_CLIENT_ID", "") + secret := getEnvVar("AZKEYS_CLIENT_SECRET", "") var err error credential, err = azidentity.NewClientSecretCredential(tenantId, clientId, secret, nil) if err != nil { panic(err) } } + + attestationURL = getEnvVar("AZURE_KEYVAULT_ATTESTATION_URL", fakeAttestationUrl) + mhsmURL = getEnvVar("AZURE_MANAGEDHSM_URL", fakeMHSMURL) + vaultURL = getEnvVar("AZURE_KEYVAULT_URL", fakeVaultURL) + enableHSM = mhsmURL != fakeMHSMURL + if recording.GetRecordMode() == recording.RecordingMode { - for _, URI := range []struct{ real, fake string }{ - {attestationURL, fakeAttestationUrl}, - {mhsmURL, fakeMHSMURL}, - {vaultURL, fakeVaultURL}, - } { - err := recording.AddURISanitizer(URI.fake, URI.real, nil) - if err != nil { - panic(err) - } - opts := proxy.Options - opts.GroupForReplace = "1" - err = recording.AddHeaderRegexSanitizer("WWW-Authenticate", "https://local", `resource="(.*)"`, opts) - if err != nil { - panic(err) - } - err = recording.AddBodyRegexSanitizer(URI.fake, URI.real, nil) - if err != nil { - panic(err) - } - } for _, path := range []string{"$.error.message", "$.key.kid", "$.recoveryId"} { err := recording.AddBodyKeySanitizer(path, fakeVaultURL, vaultURL, nil) if err != nil { @@ -125,7 +100,7 @@ func run(m *testing.M) int { // these values aren't secret but we redact them anyway to avoid // alerts from automation scanning for JWTs or "token" values for _, attestation := range []string{"$.target", "$.token"} { - err := recording.AddBodyKeySanitizer(attestation, "redacted", "", nil) + err := recording.AddBodyKeySanitizer(attestation, recording.SanitizedValue, "", nil) if err != nil { panic(err) } @@ -203,12 +178,25 @@ func createRandomName(t *testing.T, prefix string) string { return prefix + fmt.Sprint(h.Sum32()) } -func lookupEnvVar(s string) string { - ret, ok := os.LookupEnv(s) - if !ok { - panic(fmt.Sprintf("Could not find env var: '%s'", s)) +func getEnvVar(envVar string, fakeValue string) string { + // get value + value := fakeValue + if recording.GetRecordMode() == recording.LiveMode || recording.GetRecordMode() == recording.RecordingMode { + value = os.Getenv(envVar) + if value == "" { + panic("no value for " + envVar) + } } - return ret + + // sanitize value + if fakeValue != "" && recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeValue, value, nil) + if err != nil { + panic(err) + } + } + + return value } func cleanUpKey(t *testing.T, client *azkeys.Client, ID *azkeys.ID) { diff --git a/sdk/security/keyvault/azsecrets/assets.json b/sdk/security/keyvault/azsecrets/assets.json index a6769e311c5d..c09924af10f0 100644 --- a/sdk/security/keyvault/azsecrets/assets.json +++ b/sdk/security/keyvault/azsecrets/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/security/keyvault/azsecrets", - "Tag": "go/security/keyvault/azsecrets_46bc7ae56f" + "Tag": "go/security/keyvault/azsecrets_5408da8531" } diff --git a/sdk/security/keyvault/azsecrets/client_test.go b/sdk/security/keyvault/azsecrets/client_test.go index 56ab20166ccd..e2016d5b1055 100644 --- a/sdk/security/keyvault/azsecrets/client_test.go +++ b/sdk/security/keyvault/azsecrets/client_test.go @@ -16,15 +16,11 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/mock" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets" "github.com/stretchr/testify/require" ) func TestBackupRestore(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) name := createRandomName(t, "testbackupsecret") @@ -61,9 +57,6 @@ func TestBackupRestore(t *testing.T) { } func TestCRUD(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) name := createRandomName(t, "secret") @@ -212,9 +205,6 @@ func TestID(t *testing.T) { } func TestListDeletedSecrets(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) secret1 := createRandomName(t, "secret1") @@ -264,9 +254,6 @@ func TestListDeletedSecrets(t *testing.T) { } func TestListSecrets(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) count := 4 @@ -294,9 +281,6 @@ func TestListSecrets(t *testing.T) { } func TestListSecretVersions(t *testing.T) { - if recording.GetRecordMode() == recording.PlaybackMode { - t.Skip("https://github.com/Azure/azure-sdk-for-go/issues/22869") - } client := startTest(t) name := createRandomName(t, "listversions") diff --git a/sdk/security/keyvault/azsecrets/go.mod b/sdk/security/keyvault/azsecrets/go.mod index b793382c00c7..5a6f1edce63d 100644 --- a/sdk/security/keyvault/azsecrets/go.mod +++ b/sdk/security/keyvault/azsecrets/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 github.com/stretchr/testify v1.9.0 ) @@ -19,9 +19,9 @@ require ( github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/security/keyvault/azsecrets/go.sum b/sdk/security/keyvault/azsecrets/go.sum index 27c34b1956aa..e9319a0c9b52 100644 --- a/sdk/security/keyvault/azsecrets/go.sum +++ b/sdk/security/keyvault/azsecrets/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1/go.mod h1:f+OaoSg0VQYPMqB0Jp2D54j1VHzITYcJaCNwV+k00ts= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= @@ -27,15 +27,15 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azsecrets/testdata/perf/go.mod b/sdk/security/keyvault/azsecrets/testdata/perf/go.mod index 73d66d76844e..d9aaeb530a0d 100644 --- a/sdk/security/keyvault/azsecrets/testdata/perf/go.mod +++ b/sdk/security/keyvault/azsecrets/testdata/perf/go.mod @@ -7,7 +7,7 @@ replace github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets => ../ require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.1.0 ) @@ -18,8 +18,8 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - golang.org/x/crypto v0.22.0 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect ) diff --git a/sdk/security/keyvault/azsecrets/testdata/perf/go.sum b/sdk/security/keyvault/azsecrets/testdata/perf/go.sum index 65e283bb3be1..ef2f68e57ae8 100644 --- a/sdk/security/keyvault/azsecrets/testdata/perf/go.sum +++ b/sdk/security/keyvault/azsecrets/testdata/perf/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqb github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0 h1:rTfKOCZGy5ViVrlA74ZPE99a+SgoEE2K/yg3RyW9dFA= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.7.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1 h1:9fXQS/0TtQmKXp8SureKouF+idbQvp7cPUxykiohnBs= github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.0.1/go.mod h1:f+OaoSg0VQYPMqB0Jp2D54j1VHzITYcJaCNwV+k00ts= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= @@ -19,13 +19,13 @@ github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmd github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/security/keyvault/azsecrets/utils_test.go b/sdk/security/keyvault/azsecrets/utils_test.go index 5fc6acda86f7..e3750cd781a1 100644 --- a/sdk/security/keyvault/azsecrets/utils_test.go +++ b/sdk/security/keyvault/azsecrets/utils_test.go @@ -14,7 +14,6 @@ import ( "hash/fnv" "os" "regexp" - "strings" "sync" "testing" "time" @@ -28,7 +27,7 @@ import ( ) const recordingDirectory = "sdk/security/keyvault/azsecrets/testdata" -const fakeVaultURL = "https://fakevault.local" +const fakeVaultURL = "https://test.vault.azure.net/" var ( secretsToPurge = struct { @@ -62,42 +61,29 @@ func run(m *testing.M) int { }() } - vaultURL = fakeVaultURL - if recording.GetRecordMode() != recording.PlaybackMode { - if u, ok := os.LookupEnv("AZURE_KEYVAULT_URL"); ok && u != "" { - vaultURL = strings.TrimSuffix(u, "/") - } else { - panic("no value for AZURE_KEYVAULT_URL") - } - } if recording.GetRecordMode() == recording.PlaybackMode { credential = &FakeCredential{} } else { - tenantID := lookupEnvVar("AZSECRETS_TENANT_ID") - clientID := lookupEnvVar("AZSECRETS_CLIENT_ID") - secret := lookupEnvVar("AZSECRETS_CLIENT_SECRET") + tenantID := getEnvVar("AZSECRETS_TENANT_ID", "") + clientID := getEnvVar("AZSECRETS_CLIENT_ID", "") + secret := getEnvVar("AZSECRETS_CLIENT_SECRET", "") var err error credential, err = azidentity.NewClientSecretCredential(tenantID, clientID, secret, nil) if err != nil { panic(err) } } - if recording.GetRecordMode() == recording.RecordingMode { - err := recording.AddURISanitizer(fakeVaultURL, vaultURL, nil) - if err != nil { - panic(err) - } - opts := proxy.Options - opts.GroupForReplace = "1" - err = recording.AddHeaderRegexSanitizer("WWW-Authenticate", "https://local", `resource="(.*)"`, opts) - if err != nil { - panic(err) - } - err = recording.AddBodyRegexSanitizer(fakeVaultURL, vaultURL, nil) + vaultURL = getEnvVar("AZURE_KEYVAULT_URL", fakeVaultURL) + + if recording.GetRecordMode() != recording.LiveMode { + err := recording.RemoveRegisteredSanitizers([]string{ + "AZSDK3430", // id in body + }, nil) if err != nil { panic(err) } } + code := m.Run() if recording.GetRecordMode() != recording.PlaybackMode { // Purge test secrets using a client whose requests aren't recorded. This @@ -150,12 +136,25 @@ func createRandomName(t *testing.T, prefix string) string { return prefix + fmt.Sprint(h.Sum32()) } -func lookupEnvVar(s string) string { - ret, ok := os.LookupEnv(s) - if !ok { - panic(fmt.Sprintf("Could not find env var: '%s'", s)) +func getEnvVar(envVar string, fakeValue string) string { + // get value + value := fakeValue + if recording.GetRecordMode() == recording.LiveMode || recording.GetRecordMode() == recording.RecordingMode { + value = os.Getenv(envVar) + if value == "" { + panic("no value for " + envVar) + } } - return ret + + // sanitize value + if fakeValue != "" && recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeValue, value, nil) + if err != nil { + panic(err) + } + } + + return value } func cleanUpSecret(t *testing.T, client *azsecrets.Client, name string) {