Skip to content

Commit

Permalink
fix autorest pipeline issue for test generator after go generator upg…
Browse files Browse the repository at this point in the history
…rade (#911)

* fix autorest pipeline issue after go generator upgrade

* release @autorest/gotest_v4.5.2
  • Loading branch information
tadelesh authored Jan 30, 2023
1 parent 6410712 commit 0e44cb9
Show file tree
Hide file tree
Showing 25 changed files with 151,097 additions and 290,744 deletions.
12 changes: 12 additions & 0 deletions packages/autorest.gotest/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@autorest/gotest",
"entries": [
{
"version": "4.5.2",
"tag": "@autorest/gotest_v4.5.2",
"date": "Mon, 30 Jan 2023 08:26:19 GMT",
"comments": {
"patch": [
{
"comment": "Fix autorest pipeline issue after go generator upgrade."
}
]
}
},
{
"version": "4.5.1",
"tag": "@autorest/gotest_v4.5.1",
Expand Down
9 changes: 8 additions & 1 deletion packages/autorest.gotest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @autorest/gotest

This log was last generated on Tue, 17 Jan 2023 05:21:21 GMT and should not be manually modified.
This log was last generated on Mon, 30 Jan 2023 08:26:19 GMT and should not be manually modified.

## 4.5.2
Mon, 30 Jan 2023 08:26:19 GMT

### Patches

- Fix autorest pipeline issue after go generator upgrade.

## 4.5.1
Tue, 17 Jan 2023 05:21:21 GMT
Expand Down
30 changes: 20 additions & 10 deletions packages/autorest.gotest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ https://github.com/Azure/azure-rest-api-specs
## How to Generate GO Test Code

```
autorest --version=3.7.3 --use=@autorest/go@latest --use=@autorest/gotest@latest --go --track2 --output-folder=<RP package path> --file-prefix="zz_generated_" --clear-output-folder=false --go.clear-output-folder=false --testmodeler.generate-mock-test --testmodeler.generate-sdk-example --testmodeler.generate-scenario-test --testmodeler.generate-sdk-sample <RP config md file path>
autorest --version=3.8.2 --use=@autorest/go@latest --use=@autorest/gotest@latest --go --track2 --output-folder=<RP package path> --file-prefix="zz_generated_" --clear-output-folder=false --go.clear-output-folder=false --testmodeler.generate-mock-test --testmodeler.generate-sdk-example --testmodeler.generate-scenario-test --testmodeler.generate-sdk-sample <RP config md file path>
```

## Configurations
Expand Down Expand Up @@ -59,41 +59,51 @@ testmodeler:
scenario:
codemodel-restcall-only: false

version: 3.7.3
version: 3.8.2

use-extension:
'@autorest/go': '4.0.0-preview.43'
'@autorest/go': '4.0.0-preview.45'
'@autorest/testmodeler': '2.3.2'

pipeline:
test-modeler:
input:
- go-transform
- go
output-artifact: source-file-test-modeler
go-tester:
input: test-modeler
output-artifact: source-file-go-tester
testmodeler/emitter:
input:
- test-modeler
- go-tester
scope: scope-testmodeler/emitter
go-transform:
input:
- test-modeler
go-tester:
input: go-transform
output-artifact: source-file-go-tester
gotest/emitter:
input:
- go-tester
scope: scope-gotest/emitter
go-linter:
input:
- go-tester
- testmodeler/emitter
- gotest/emitter

scope-testmodeler/emitter:
input-artifact:
- source-file-test-modeler
output-uri-expr: $key

scope-gotest/emitter:
input-artifact:
- source-file-go-tester
output-uri-expr: $key
```
```yaml $(go) && !$(generate-sdk)
pipeline:
go/emitter:
scope: scope-testmodeler/emitter
scope: scope-gotest/emitter
```
```yaml $(debug)
Expand Down
2 changes: 1 addition & 1 deletion packages/autorest.gotest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/gotest",
"version": "4.5.1",
"version": "4.5.2",
"description": "Autorest extension for go test generation",
"main": "dist/index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 0e44cb9

Please sign in to comment.