microsoft / testbase

Samples and Tools for Test Base for M365.
MIT License
40 stars 16 forks source link

Test Type Items fails validation #34

Closed lordarokh closed 1 year ago

lordarokh commented 2 years ago

Hi There,

When we use "Test Types - Get" API, it returns the following 3 items:

We use these values to generate our JSON file. However, when we create a package with the setting "OutofBoxTest" ("-" chars are removed), we get the following validation error response:

"code":"EnumCaseMismatch","message":"Enum does not match case for: OutofBoxTest

When we check the packages that are already created, they contain the following value "OutOfBoxTest" ("-" chars are removed). When we compare the value returned from "Test Types - Get" API, we saw that the "OutofBoxTest" is not exactly as "OutOfBoxTest" and the "O" letter in "of" is in lower case. And this issue causes a validation error when we create a package via the API. Therefore, the values that are returned from "Test Types - Get" should be rectified as :

Thanks in advance.

yazeng commented 2 years ago

Hi Tolga, Thank you for reporting the issue! Yes, this is a bug and we have filed an internal bug to track and fix it.

Thanks, Yan

yazeng commented 1 year ago

Hi @lordarokh, the bug is fixed. You can have a try.