Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
<DefineConstants>SIGNASSEMBLY</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(TF_BUILD)'=='True' ">
<DefineConstants>$(DefineConstants);AUTOMATEDBUILD</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<!-- Rules found at: https://aka.ms/Microsoft-NuGet-Compliance -->
<PackageProjectUrl>https://github.com/Microsoft/botbuilder-dotnet</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace Microsoft.Bot.Builder.FunctionalTests
{
[TestClass]
[TestCategory("FunctionalTests")]
#if !AUTOMATEDBUILD
[Ignore]
#endif
public class DirectLineClientTests
{
private static string directLineSecret = null;
Expand Down Expand Up @@ -114,13 +117,13 @@ private void GetEnvironmentVars()
directLineSecret = Environment.GetEnvironmentVariable("DIRECTLINE");
if (string.IsNullOrWhiteSpace(directLineSecret))
{
Assert.Inconclusive("Environment variable 'DIRECTLINE' not found.");
Assert.Fail("Environment variable 'DIRECTLINE' not found.");
}

botId = Environment.GetEnvironmentVariable("BOTID");
if (string.IsNullOrWhiteSpace(botId))
{
Assert.Inconclusive("Environment variable 'BOTID' not found.");
Assert.Fail("Environment variable 'BOTID' not found.");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
namespace Microsoft.Bot.Builder.FunctionalTests
{
[TestClass]

[TestCategory("FunctionalTests")]
[Ignore("DirectLine Speech tests require updates to the REST API and CLI to be able to properly provision a bot.")]
public class DirectLineSpeechTests
Expand Down Expand Up @@ -91,14 +90,14 @@ private void GetEnvironmentVars()
speechBotSecret = Environment.GetEnvironmentVariable("SPEECHBOTSECRET");
if (string.IsNullOrWhiteSpace(speechBotSecret))
{
Assert.Inconclusive("Environment variable 'SPEECHBOTSECRET' not found.");
Assert.Fail("Environment variable 'SPEECHBOTSECRET' not found.");
}

// The cog services key for use with DLS.
speechSubscription = Environment.GetEnvironmentVariable("SPEECHSUBSCRIPTION");
if (string.IsNullOrWhiteSpace(speechSubscription))
{
Assert.Inconclusive("Environment variable 'SPEECHSUBSCRIPTION' not found.");
Assert.Fail("Environment variable 'SPEECHSUBSCRIPTION' not found.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ namespace Microsoft.Bot.Builder.FunctionalTests
[TestClass]
[TestCategory("FunctionalTests")]
[TestCategory("Adapters")]
#if !AUTOMATEDBUILD
[Ignore]
#endif
public class FacebookChatTests
{
private const string FacebookUrlBase = "https://graph.facebook.com/v5.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ namespace Microsoft.Bot.Builder.FunctionalTests
[TestClass]
[TestCategory("FunctionalTests")]
[TestCategory("Adapters")]
#if !AUTOMATEDBUILD
[Ignore]
#endif
public class SlackClientTest
{
private const string SlackUrlBase = "https://slack.com/api";
Expand Down Expand Up @@ -136,31 +139,31 @@ private void GetEnvironmentVars()
_slackChannel = Environment.GetEnvironmentVariable("SlackChannel");
if (string.IsNullOrWhiteSpace(_slackChannel))
{
Assert.Inconclusive("Environment variable 'SlackChannel' not found.");
Assert.Fail("Environment variable 'SlackChannel' not found.");
}

_slackBotToken = Environment.GetEnvironmentVariable("SlackBotToken");
if (string.IsNullOrWhiteSpace(_slackBotToken))
{
Assert.Inconclusive("Environment variable 'SlackBotToken' not found.");
Assert.Fail("Environment variable 'SlackBotToken' not found.");
}

_slackClientSigningSecret = Environment.GetEnvironmentVariable("SlackClientSigningSecret");
if (string.IsNullOrWhiteSpace(_slackClientSigningSecret))
{
Assert.Inconclusive("Environment variable 'SlackClientSigningSecret' not found.");
Assert.Fail("Environment variable 'SlackClientSigningSecret' not found.");
}

_slackVerificationToken = Environment.GetEnvironmentVariable("SlackVerificationToken");
if (string.IsNullOrWhiteSpace(_slackVerificationToken))
{
Assert.Inconclusive("Environment variable 'SlackVerificationToken' not found.");
Assert.Fail("Environment variable 'SlackVerificationToken' not found.");
}

_botName = Environment.GetEnvironmentVariable("BotName");
if (string.IsNullOrWhiteSpace(_botName))
{
Assert.Inconclusive("Environment variable 'BotName' not found.");
Assert.Fail("Environment variable 'BotName' not found.");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ namespace Microsoft.Bot.Builder.FunctionalTests
[TestClass]
[TestCategory("FunctionalTests")]
[TestCategory("Adapters")]
#if !AUTOMATEDBUILD
[Ignore]
#endif
public class TwilioNumberTests
{
private string _botEndpoint;
Expand Down Expand Up @@ -101,31 +104,31 @@ private void GetEnvironmentVars()
_twilioNumber = Environment.GetEnvironmentVariable("TWILIO_NUMBER");
if (string.IsNullOrWhiteSpace(_twilioNumber))
{
Assert.Inconclusive("Environment variable 'TwilioNumber' not found.");
Assert.Fail("Environment variable 'TwilioNumber' not found.");
}

_twilioAuthToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");
if (string.IsNullOrWhiteSpace(_twilioAuthToken))
{
Assert.Inconclusive("Environment variable 'TWILIO_AUTH_TOKEN' not found.");
Assert.Fail("Environment variable 'TWILIO_AUTH_TOKEN' not found.");
}

_twilioAccountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
if (string.IsNullOrWhiteSpace(_twilioAccountSid))
{
Assert.Inconclusive("Environment variable 'TWILIO_ACCOUNT_SID' not found.");
Assert.Fail("Environment variable 'TWILIO_ACCOUNT_SID' not found.");
}

_senderNumber = Environment.GetEnvironmentVariable("SENDER_NUMBER");
if (string.IsNullOrWhiteSpace(_senderNumber))
{
Assert.Inconclusive("Environment variable 'SENDER_NUMBER' not found.");
Assert.Fail("Environment variable 'SENDER_NUMBER' not found.");
}

_botEndpoint = Environment.GetEnvironmentVariable("TwilioValidationUrl");
if (string.IsNullOrWhiteSpace(_botEndpoint))
{
Assert.Inconclusive("Environment variable 'TwilioValidationUrl' not found.");
Assert.Fail("Environment variable 'TwilioValidationUrl' not found.");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ namespace Microsoft.Bot.Builder.FunctionalTests
[TestClass]
[TestCategory("FunctionalTests")]
[TestCategory("Adapters")]
#if !AUTOMATEDBUILD
[Ignore]
#endif
public class WebexClientTest
{
private const string WebexUrlBase = "https://api.ciscospark.com/v1";
Expand Down