Closed esoubiran-aneo closed 2 years ago
Changing the file ./tools/tests/symphony_like.sh
to this allowed me to run tests (thx @aneojgurhem)
#!/bin/bash
set -e
BASEDIR=$(dirname "$0")
cd $BASEDIR/../../source/ArmoniK.Samples
export CPIP=$(kubectl get svc ingress -n armonik -o custom-columns="IP:.spec.clusterIP" --no-headers=true)
export CPPort=$(kubectl get svc ingress -n armonik -o custom-columns="PORT:.spec.ports[1].port" --no-headers=true)
export Grpc__Endpoint=http://$CPIP:$CPPort
nuget_cache=$(dotnet nuget locals global-packages --list | awk '{ print $2 }')
cd Samples/SymphonyLike/
echo rm -rf ${nuget_cache}/armonik.*
rm -rf $(dotnet nuget locals global-packages --list | awk '{ print $2 }')/armonik.*
- dotnet publish -c Debug --self-contained -r linux-x64 SymphonyLike.sln
+ dotnet publish -f net6.0 -c Debug --self-contained -r linux-x64 SymphonyLike.sln
echo "Need to create Data folder for application"
mkdir -p ${HOME}/data
cp packages/ArmoniK.Samples.SymphonyPackage-v2.0.0.zip ${HOME}/data
kubectl delete -n armonik $(kubectl get pods -n armonik -l service=compute-plane --no-headers=true -o name) || true
cd ArmoniK.Samples.SymphonyClient/
- dotnet bin/Debug/net5.0/linux-x64/ArmoniK.Samples.SymphonyClient.dll
+ dotnet run -f net6.0
Describe the bug
The command
./tools/tests/symphony_like.sh
return this issueTo Reproduce Steps to reproduce the behavior:
./tools/tests/symphony_like.sh
Expected behavior I expected tests to run.
Screenshots Not applicable
Infra
main,