microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 283 forks source link

Correct case-sensitive test paths for compiler functional tests #853

Closed eddyashton closed 5 months ago

eddyashton commented 5 months ago

Trying to repro a CI failure on the previous PR, but unable to build the Restler.Compiler.Test project on Linux because of errors like:

/usr/share/dotnet/sdk/7.0.402/Microsoft.Common.CurrentVersion.targets(5167,5): error MSB3030: Could not copy the file "/data/src/restler-fuzzer/src/compiler/Restler.Compiler.Test/swagger/DependencyTests/examples/create_subnet.json" because it was not found. [/data/src/restler-fuzzer/src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj]
/usr/share/dotnet/sdk/7.0.402/Microsoft.Common.CurrentVersion.targets(5167,5): error MSB3030: Could not copy the file "/data/src/restler-fuzzer/src/compiler/Restler.Compiler.Test/swagger/DependencyTests/examples/create_application_gateway.json" because it was not found. [/data/src/restler-fuzzer/src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj]
/usr/share/dotnet/sdk/7.0.402/Microsoft.Common.CurrentVersion.targets(5167,5): error MSB3030: Could not copy the file "/data/src/restler-fuzzer/src/compiler/Restler.Compiler.Test/swagger/DependencyTests/examples/create_vnet_with_subnet.json" because it was not found. [/data/src/restler-fuzzer/src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj]

Some items in the project file refer to folders like DependencyTests, which must be dependencyTests on case-sensitive Linux systems. This PR updates all of the instances I could find, so the CompilerFunctionalTests now build and pass on Linux.