-
Notifications
You must be signed in to change notification settings - Fork 503
fix: Fixed collection of api tags (',' vs. ', ') #853
Conversation
@microsoft-github-policy-service agree |
Hello @Horizon0156, thank you for the PR! |
Sure, here we go. I added theories to test both variants. API Tags without a whitespace after the separator (tag1,tag2,api-tag1) and those with a whitespace (tag1, tag2, api-tag1) In addition, I slightly modified the generation of your test data to simulate a real string input like it would be parsed from the yaml file. All tests are passing now. |
tests/ArmTemplates.Tests/Creator/TemplateCreatorTests/TagTemplateCreatorTests.cs
Show resolved
Hide resolved
Thank you for tests and improvements, one comment was left: regarding moving tagNames generation in tests to use the same approach as apiTagNames. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for contribution! |
Fixed the collection of grabbing tags from the config file. When more than a single tag was defined, it was not possible to separate them by a "," or ", " as the creator was splitting them differently and therefore I got sanitizing errors.
I harmonized the extraction and also trimmed the outcome. Now it's possible to either use "," or ", " as a separator.