Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpg service-driven-test #1180

Merged

Conversation

changlong-liu
Copy link
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 marked this pull request as ready for review March 8, 2022 08:04
Copy link
Contributor

@iscai-msft iscai-msft left a comment

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
Contributor

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants