diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dec4c3f..26d47c36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Extracted materialize from the core UD client libraries by [adamdriscoll](https://github.com/adamdriscoll) - Fixed JavaScript error when loading page by [adamdriscoll](https://github.com/adamdriscoll) +- Updated tests to correctly validate #1404 by [adamdriscoll](https://github.com/adamdriscoll) ### Changed (Enterprise) diff --git a/src/UniversalDashboard.UITest/Integration/Api.Tests.ps1 b/src/UniversalDashboard.UITest/Integration/Api.Tests.ps1 index 45da1916..93cb8d70 100644 --- a/src/UniversalDashboard.UITest/Integration/Api.Tests.ps1 +++ b/src/UniversalDashboard.UITest/Integration/Api.Tests.ps1 @@ -186,15 +186,15 @@ Describe "Api" { } It "returns users from the post endpoint" { - $users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method POST -Body @{Test="xyz"} + $users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method POST -Body @{Test="xyz"} -ContentType 'application/x-www-form-urlencoded' $users[0] | Should be "Adam" $users[1] | Should be "Bill" $users[2] | Should be "Frank" $users[3] | Should be "xyz" } - It "returns users from the put endpoint" -Skip { - $users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method PUT -Body @{Test="xyz"} + It "returns users from the put endpoint" { + $users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method PUT -Body @{Test="xyz"} -ContentType 'application/x-www-form-urlencoded' $users[0] | Should be "Adam" $users[1] | Should be "Bill" $users[2] | Should be "Frank" @@ -202,7 +202,7 @@ Describe "Api" { } It "returns users from the patch endpoint" { - $users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method Patch -Body @{Test="xyz"} + $users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method Patch -Body @{Test="xyz"} -ContentType 'application/x-www-form-urlencoded' $users[0] | Should be "Adam" $users[1] | Should be "Bill" $users[2] | Should be "Frank"