Skip to content

Fix mac integration function tools path #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2022
Merged

Fix mac integration function tools path #533

merged 2 commits into from
Nov 22, 2022

Conversation

VasuBhog
Copy link
Contributor

If users on Mac have Azure Function core tools installed via Brew. Then dotnet test will constantly fail.

@@ -265,6 +265,20 @@ private static string GetFunctionsCoreToolsPath()
}
throw new FileNotFoundException($"Azure Function Core Tools not found at {funcPath} or {programFilesFuncPath}");
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does OSPlatform only has OSX for mac? Just making sure that it's inclusive for macos11/12/etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be FreeBSD, Linux, OSX, Windows, and Create OS as options for OSPlatform.

I believe that OSX should be inclusive of any version of Mac.

@chlafreniere
Copy link
Contributor

@VasuBhog I tried pulling down the branch, had a connection string that used SQL Auth, and got an error about kerberos:

Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.

Is this a known issue?

@VasuBhog
Copy link
Contributor Author

VasuBhog commented Nov 22, 2022

Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.

https://github.com/Azure/azure-functions-sql-extension/tree/main/test - setting SA Password for local connection string or Test_Connection_String for Azure SQL Connections should be done prior to running dotnet test

@chlafreniere
Copy link
Contributor

Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.

Does not seem to be an issue that's tracked in the powershell worker repo. So please create an issue and then can follow up on investigating it.

Ah, user error, didn't have the SA_PASSWORD environment variable set.

@VasuBhog VasuBhog merged commit 43acd35 into main Nov 22, 2022
@VasuBhog VasuBhog deleted the vabhog/macFixOnly branch November 22, 2022 23:30
PBBlox pushed a commit to PBBlox/azure-functions-sql-extension that referenced this pull request Apr 6, 2025
* fix mac integration function tools path

* Update test/Integration/IntegrationTestBase.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants