Skip to content
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

WEB-1031 Provide test utils from sdk #3467

Merged
merged 2 commits into from
Jun 5, 2024
Merged

Conversation

cdriesler
Copy link
Member

@cdriesler cdriesler commented Jun 3, 2024

Description & motivation

We are preparing to release support for "test automations" alongside utils for using them while developing local functions. For this first draft, we'd like to release the utils via the SDKs so that we can provide updates to consumers as test automations develop further.

Changes:

  • Adds TestAutomateEnvrionment and TestAutomateUtils to Speckle.Automate.Sdk.Test. To be used by the dotnet function example on release.

@cdriesler cdriesler requested review from AlanRynne and gjedlicska June 3, 2024 18:24
public static string GetSpeckleServerUrl()
{
return GetAppSettings()?.SpeckleServerUrl
?? TryGetEnvironmentVariable("SPECKLE_SERVER_URL")
Copy link
Contributor

Choose a reason for hiding this comment

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

all the other methods use the GetEnvVariable method, why is this using the TryGet... ?

Copy link
Member Author

Choose a reason for hiding this comment

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

just how I went about doing the fallback to http://127.0.0.1:3000! we don't appear to tolerate/provide fallbacks for the others

although it is a bit silly when you say it like that, open to other ways

@gjedlicska gjedlicska merged commit a021359 into main Jun 5, 2024
32 checks passed
@gjedlicska gjedlicska deleted the chuck/testAutomationSdk branch June 5, 2024 08:41
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