Skip to content

Commit

Permalink
[Dotnet] - Fix tests ; removes stale check (#802)
Browse files Browse the repository at this point in the history
* [Dotnet] - Fix tests ; removes stale check

* Update projects
  • Loading branch information
samruddhikhandale committed Jan 22, 2024
1 parent 43bb98b commit 96f5303
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
4 changes: 0 additions & 4 deletions test/dotnet/install_aspnetcore_runtime_only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ expected=$(fetch_latest_version "aspnetcore")
check "Latest ASP.NET Core Runtime version installed" \
is_aspnetcore_runtime_version_installed "$expected"

# Expect this check to fail in November 2023 when .NET 8.0 becomes GA
check "It is a flavor of .NET 7.0" \
is_aspnetcore_runtime_version_installed "7.0"

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
reportResults
6 changes: 1 addition & 5 deletions test/dotnet/install_dotnet_latest_when_version_is_empty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ expected=$(fetch_latest_version)
check "Latest .NET SDK version installed" \
is_dotnet_sdk_version_installed "$expected"

# Expect this check to fail in November 2023 when .NET 8.0 becomes GA
check "It is a flavor of .NET 7.0" \
is_dotnet_sdk_version_installed "7.0"

check "Build and run example project" \
dotnet run --project projects/net7.0
dotnet run --project projects/net8.0

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
Expand Down
2 changes: 1 addition & 1 deletion test/dotnet/install_dotnet_lts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ check "Latest LTS version installed" \
is_dotnet_sdk_version_installed "$expected"

check "Build and run example project" \
dotnet run --project projects/net6.0
dotnet run --project projects/net8.0

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
Expand Down
4 changes: 0 additions & 4 deletions test/dotnet/install_dotnet_runtime_only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ expected=$(fetch_latest_version "dotnet")
check "Latest .NET Runtime version installed" \
is_dotnet_runtime_version_installed "$expected"

# Expect this check to fail in November 2023 when .NET 8.0 becomes GA
check "It is a flavor of .NET 7.0" \
is_dotnet_runtime_version_installed "7.0"

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
reportResults
6 changes: 1 addition & 5 deletions test/dotnet/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ expected=$(fetch_latest_version)
check "Latest .NET SDK version installed" \
is_dotnet_sdk_version_installed "$expected"

# Expect this check to fail in November 2023 when .NET 8.0 becomes GA
check "It is a flavor of .NET 7.0" \
is_dotnet_sdk_version_installed "7.0"

check "Build and run example project" \
dotnet run --project projects/net7.0
dotnet run --project projects/net8.0

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
Expand Down

0 comments on commit 96f5303

Please sign in to comment.