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

Improve profile support for azdev test #6377

Merged
merged 4 commits into from
May 22, 2018
Merged

Improve profile support for azdev test #6377

merged 4 commits into from
May 22, 2018

Conversation

tjprescott
Copy link
Member

@tjprescott tjprescott commented May 17, 2018

This PR:

  • Converts --profile from the format used in the CLI ("2017-03-09-profile") into the correct directory name ("2017_03_09_profile") so that tests can be run. Fixes Azdev test not honoring --profile parameter #6347.

  • Maintains an index for each profile instead of a single index. Previously this would require you to run azdev test with --discover or it would most likely use recordings from the wrong directory (the one that was used with the last --discover). If the index isn't found, the command will create it and automatically discover tests.

  • Instead of checking the current CLI profile against --profile and issuing an error if they don't match, automatically set the profile based on --profile and run accordingly.


This checklist is used to make sure that common guidelines for a pull request are followed.

  • [N/A] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

@tjprescott tjprescott added bug This issue requires a change to an existing behavior in the product in order to be resolved. Test Framework labels May 17, 2018
@promptws
Copy link

View a preview at https://prompt.ws/r/Azure/azure-cli/6377
This is an experimental preview for @microsoft users.

@troydai
Copy link
Contributor

troydai commented May 17, 2018

@viananth

@codecov-io
Copy link

codecov-io commented May 18, 2018

Codecov Report

Merging #6377 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff         @@
##           dev   #6377   +/-   ##
===================================
  Coverage    0%      0%           
===================================
  Files       11      11           
  Lines      133     133           
  Branches     9       9           
===================================
  Misses     133     133

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4dc0c9...9887c04. Read the comment docs.

@tjprescott
Copy link
Member Author

ping @troydai

@troydai troydai merged commit d895910 into Azure:dev May 22, 2018
@troydai
Copy link
Contributor

troydai commented May 22, 2018

@viananth you need to merge this to the stack branch.

@viananth
Copy link
Member

Thank you @troydai @tjprescott. Merged.

@tjprescott tjprescott deleted the AzdevTestProfile branch May 23, 2018 16:49
@haroldrandom haroldrandom added bug This issue requires a change to an existing behavior in the product in order to be resolved. Profile Versioning Test Framework labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Profile Versioning Test Framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azdev test not honoring --profile parameter
6 participants