Граф коммитов

49 Коммитов

Автор SHA1 Сообщение Дата
Wes Haggard ac22295fff
Switch to TME test subscription (#23570) 2024-10-14 16:54:41 -07:00
Ben Broderick Phillips 5df372ce81
Use common OIDC token env vars in post scripts (#23549)
* Use common OIDC token env vars in post scripts

* Pass cloud into azcontainerregistry test config
2024-10-10 21:11:30 +00:00
Azure SDK Bot bad83edf9d
Increment package version after release of containers/azcontainerregistry (#23465) 2024-09-19 11:14:03 -07:00
Charles Lowell da19e4fdf2
Prepare azcontainerregistry v0.2.2 for release (#23463) 2024-09-19 00:15:10 +00:00
Charles Lowell 5d36e38548
azcontainerregistry tests build images instead of importing them (#23329) 2024-08-20 10:17:38 -07:00
Rick Winter e8defc7736
Update CHANGELOG.md (#23299) 2024-08-08 10:17:58 -07:00
Steve Kuznetsov 865621363f
azcontainerregistry: expose authentication client, options (#23285)
* .gitignore: ignore autorest installation

Global installation via NPM is not recommended, local installation
requires that we ignore the Node manifests.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

* azcontainerregistry: expose authentication client, options

The ACR authentication API is a public-facing API. Consumers would like
to use the well-tested code in the SDK to interface with this API
instead of having to roll their own. This commit simply exposes all of
the structs, functions and constants that are necessary to consume this
API.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

* models: add documentation for refresh, access tokens

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

---------

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2024-08-08 13:52:15 +08:00
Steve Kuznetsov ea67e9c718
azcontainerregistry: move method to function (#23270)
The Go documentation strongly discourages structs from having methods
with both pointer recievers and non-pointer recievers. For the auth
policy, `getChallengeRequest` presumably did not have a pointer reciever
since it did not make use of the struct at all. We can simply move this
to a function.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2024-08-06 20:42:36 +08:00
Charles Lowell fe87e2d52c Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
Charles Lowell 997700eb1f Upgrade dependencies [azp skip] 2024-07-03 14:11:16 -04:00
Charles Lowell d765680c38
azcontainerregistry tests use internal credential factory (#23077)
* azcontainerregistry tests use internal credential factory

* upgrade
2024-06-25 10:45:09 -07:00
Azure SDK Bot d6b7b7c79c
Sync eng/common directory with azure-sdk-tools for PR 8475 (#23096)
* update the target version of the proxy

* unskip the tests so they fail properly

* fix the skips

* update the assets.json

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-06-21 10:59:55 -07:00
Charles Lowell f4a7dc6c0d Upgrade dependencies [azp skip] 2024-06-17 14:01:12 -04:00
Charles Lowell 7180009382
azcontainerregistry linting (#23020) 2024-06-07 23:25:48 +00:00
Charles Lowell 8ff82b5b6d
Use smaller image in ACR test (#22952) 2024-05-28 10:53:49 -07:00
Charles Lowell 8151115b32
Avoid throttling in azcontainerregistry live tests (#22943) 2024-05-22 17:08:42 -07:00
Charles Lowell 22e4240568
Fix cloud config for azcontainerregistry tests (#22936) 2024-05-21 21:04:30 -07:00
Charles Lowell 5e0be89dc3
Update azcontainerregistry for new test proxy (#22920) 2024-05-21 11:14:16 -07:00
Charles Lowell c99558aa66 Upgrade test proxy, broken tests run only in live and recording modes
[azp skip]
2024-05-08 17:24:07 -07:00
Charles Lowell c23d0097f9
Upgrade all dependencies (#22835) 2024-05-03 11:52:51 -07:00
Joel Hendrix 61e6efca7e
Update dependencies for container registry and tracing (#22816) 2024-05-01 10:02:05 -07:00
Charles Lowell 98dfe3495d
Upgrade modules to sdk/internal v1.6.0 (#22752) 2024-04-16 17:05:34 -07:00
Scott Beddall (from Dev Box) 88d8a7ebb5 * update ci.yml for azcosmos to _pass_ the injected stage rather than calling it directly
* touch every ci.yml to swap them from stages to extends. ***NO_CI***
2024-03-15 11:17:06 -07:00
Charles Lowell e3b93574fc
Add copyright header to bicep files (#22576) 2024-03-12 08:36:51 -07:00
Rick Winter 0d4ed40405
Package updates (#22431) 2024-02-21 12:28:07 -08:00
Azure SDK Bot ae70cacdb2
Increment package version after release of containers/azcontainerregistry (#22295) 2024-01-25 08:17:29 -08:00
Chenjie Shi 01fa694402
fix acr test failure (#22290) 2024-01-25 08:33:06 +00:00
Chenjie Shi 750d8afc2c
update changelog (#22289) 2024-01-24 11:41:18 +08:00
Chenjie Shi e274f37709
Refresh azcontainerregistry module (#22161)
* upgrade to latest codegen

* merge resolver

* enable span and add changelog

* update module name
2024-01-10 09:30:49 +08:00
Chenjie Shi f2a3ea9cbf
Fix ACR (#22056)
* fix customer issue

* update changelog
2023-11-28 10:30:06 +08:00
Ben Broderick Phillips 6da3b752a2
Update data plane libraries to use latest recording framework (#21874) 2023-11-03 14:42:12 -04:00
Joel Hendrix bf033de248
Remove autorest core version from build scripts (#20995)
The code generator MUST be the ONLY source of this value.
2023-06-08 17:11:17 -07:00
Chenjie Shi fab98b02c8
refine some logics and comments according to ACR service team's review (#20981) 2023-06-08 09:57:14 +08:00
Azure SDK Bot a182cd6c93
Increment package version after release of containers/azcontainerregistry (#20956) 2023-06-05 14:00:58 +08:00
Chenjie Shi be636a8e83
add changelog for acr new version (#20939)
* add changelog for acr new version

* fix version
2023-06-02 13:32:45 +08:00
Chenjie Shi 2e91823cbd
add digest validation utils and examples (#20887)
* add digest validation utils and examples

* update recording assets

* ci fix

* update upload chunk example and test

* refine with review

* update examples

* fix lint

* update example
2023-05-31 17:37:13 +08:00
Chenjie Shi b96c5c0118
add TSG for azcontainerregistry (#20895) 2023-05-25 09:11:24 +08:00
Chenjie Shi 1ff7c6f7dc
do not re-calculate digest when retry (#20872)
* do not re-calculate digest when retry

* fix
2023-05-23 10:56:25 +08:00
Chenjie Shi c5a5371354
change default audience value for ACR (#20838)
* change default audience value and remove live test for China cloud as it always has network issue

* add changelog
2023-05-17 12:41:35 +08:00
Chenjie Shi e1bbe45ad9
increase acr test coverage over 90% (#20762)
* increase acr test coverage over 90%

* fix lint
2023-05-12 06:52:30 -07:00
Chenjie Shi 7a33e6c14c
add fail over for blob digest calculator (#20645)
* add fail over for blob digest calculator

* update record

* refine the error handling

* refine the error handling

* Update blob_custom_client.go

* Update blob_custom_client.go

* move error swallow into calculator

* add changelog
2023-04-19 07:46:59 +00:00
Rick Winter 2077f5e3b6
Update dependencies (#20416)
* Update dependencies
* Fix dependencies and update perf test
* Fixup azkeys tests
2023-03-15 16:48:07 -07:00
Azure SDK Bot c0c5082e38
Increment version for containers/azcontainerregistry releases (#20345)
Increment package version after release of containers/azcontainerregistry
2023-03-08 17:53:58 +00:00
Chenjie Shi d772b7c167
Fix test failure because of "CONTENT_LEN_INVALID" (#20034)
* fix test failure because of "CONTENT_LEN_INVALID"

* fix lint

* no need to redo challenge request when do retry request

* rewrite auth policy to reduce auth requests time for each request

* add changelog item

* set test run time to 30m as ACR service is too slow sometimes

* refine with code review

* fix lint

* prepare release

* add synchronization
2023-03-03 07:49:47 +08:00
Chenjie Shi 1155bce7b3
fix wrong order of require.Equal arguments (#19977)
* fix wrong order of require.Equal arguments

* use require.True/False instead
2023-02-09 02:28:35 +00:00
Azure SDK Bot 2ef60abc40
Increment version for containers/azcontainerregistry releases (#19975)
Increment package version after release of containers/azcontainerregistry
2023-02-08 07:02:03 +00:00
Chenjie Shi 4b0d1c3ef8
upgrade core lib version for ACR preview (#19950)
* upgrade core lib version

* add basic config for live test

* update test and recording to support live test

* use mgmt. package to import images for test

* fix live test env problem

* fix env bug and run go mod tidy

* add new line
2023-02-08 01:00:17 +00:00
Chenjie Shi 51550d2a63
restore all url with pkg.go.dev for ACR readme (#19920)
* restore all url with pkg.go.dev as the package has already been indexed

* refine create client refer
2023-02-03 13:39:32 +08:00
Chenjie Shi 3a39031c46
ACR data plane module (#19554)
* very early version of azacr

* update ci

* init blob client

* do not export jwtOnlyWithExp

* fix lint

* change to use CGC as much as possible

* move operation

* rename module path

* change back to public autorest/go version

* finalize auth policy

* add and refine example

* add test

* finish test, example and docs

* loose test coverage criteria temporarily

* update recording

* make authenticationPolicy private

* remove readAll from example and change digest calculation to buffered method

* add blob related examples

* remove endpoint schema check logic

* remove unreferenced types

* fix pageable could not get next page problem and add related tests

* rollback some directives

* refine with review

* change coverage config

* refine some naming

* refine some naming

* refine some naming

* refine with latest review

* add BlobDigestCalculator and refine samples and examples

* update Audience value to consolidate with azcore

* refine test and doc

* add test of upload chunk by chunk

* add test recording file

* update autorest/go version and add some error path test case

* refine readme.md

* update uploadChunk API

* update uploadChunk API

* change options of chunk upload

* upgrade core lib version

* move recording file to remote

* refine model name

* fix lint and doc problem

* remove package link for ci check

* update changelog after running pre-release script

* remove pkg link from url validation
2023-02-01 20:07:33 +08:00