Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.

dpg service-driven-test - #1180

Merged
iscai-msft merged 3 commits into
Azure:autorestv3from
changlong-liu:20220307-service-driven-test
Mar 9, 2022
Merged

dpg service-driven-test#1180
iscai-msft merged 3 commits into
Azure:autorestv3from
changlong-liu:20220307-service-driven-test

Conversation

@changlong-liu

Copy link
Copy Markdown
Member

For #1163.

The report-dpg.json result of this PR:

{
  "GetRawModel": 0,
  "GetHandwrittenModel": 0,
  "PostRawModel": 0,
  "PostHandwrittenModel": 0,
  "GetRawPages": 0,
  "GetHandwrittenModelPages": 0,
  "RawLRO": 0,
  "HandwrittenModelLRO": 0,
  "DPGAddOptionalInput_NoParams": 6,
  "DPGAddOptionalInput": 5,
  "DPGAddOptionalInput_RequiredOptionalParam": 8,
  "DPGAddOptionalInput_OptionalParam": 6,
  "DPGNewBodyType.JSON": 4,
  "DPGNewBodyType.JPEG": 2,
  "DPGNewBodyType": 6,
  "DPGAddNewOperation": 2,
  "DPGAddNewPath": 2,
  "DPGGlassBreaker": 2
}

@changlong-liu
changlong-liu force-pushed the 20220307-service-driven-test branch from d365fdc to 0babde6 Compare March 8, 2022 01:23
@changlong-liu
changlong-liu marked this pull request as ready for review March 8, 2022 08:04

@iscai-msft iscai-msft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks really good! however, I don't know why but it's not updating in the dashboard (the other DPG tests show up there). Can you double check that you're hitting all of the correct endpoints for each of the cases? Here is the testserver file, I'll double check on my end to see what's going on. Thanks!


request = params_update_one.build_get_new_operation_request()
response = await update_one_send_request(request)
assert response.content.decode('utf8') == json.dumps(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can just do assert response.json() == {'message': 'An object was successfully returned'}

@iscai-msft
iscai-msft merged commit 961cddb into Azure:autorestv3 Mar 9, 2022
iscai-msft added a commit that referenced this pull request Mar 9, 2022
…into inherit_customization

* 'autorestv3' of https://github.com/Azure/autorest.python:
  dpg service-driven-test (#1180)
  prepare for release (#1181)
  [Package mode] add new flag `--package-mode` (#1154)
  hide operation group docs (#1179)
iscai-msft added a commit that referenced this pull request Mar 10, 2022
…into mypy_code

* 'autorestv3' of https://github.com/Azure/autorest.python: (26 commits)
  dpg service-driven-test (#1180)
  prepare for release (#1181)
  [Package mode] add new flag `--package-mode` (#1154)
  hide operation group docs (#1179)
  add coverage var (#1178)
  improve logging (#1177)
  don't reformat query params for dpg next link calls (#1168)
  Update package.json
  Update ChangeLog.md
  default optional const parameter to none (#1171)
  add storage to ci checks (#1176)
  fail on regeneration diff (#1173)
  Drop Python 2.7 (#1175)
  Add secrets test (#1174)
  bump testserver version (#1172)
  make content type keyword only if multiple (#1167)
  add default value info for params to docs (#1164)
  update release tests to hopefully get coverage report green (#1152)
  fix windows: clean the outputFolderUri  (#1135)
  Update CODEOWNERS
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants