WiFi access point credentials no longer stored in git repository (#271)
***NO_CI***
This commit is contained in:
Родитель
d6a9d90eb5
Коммит
58659be194
|
@ -415,6 +415,8 @@ There is a collection of postman tests `nanoFramework WebServer E2E Tests.postma
|
|||
- Set the `base_url` variable to match your device IP address
|
||||
- Choose request you want to test or run whole collection and check tests results.
|
||||
|
||||
The WebServerE2ETests project requires the name and credentials for the WiFi access point. That is stored in the WiFi.cs file that is not part of the git repository. Build the WebServerE2ETests to create a template for that file, then change the SSID and credentials. Your credentials will not be part of a commit.
|
||||
|
||||
## Feedback and documentation
|
||||
|
||||
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
WiFi.cs
|
|
@ -13,10 +13,8 @@ using System.Threading;
|
|||
|
||||
namespace WebServerE2ETests
|
||||
{
|
||||
public class Program
|
||||
public partial class Program
|
||||
{
|
||||
private const string Ssid = "yourSSID";
|
||||
private const string Password = "YourPAssword";
|
||||
private static WebServer _server;
|
||||
|
||||
public static void Main()
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SimpleRouteController.cs" />
|
||||
<Compile Include="WiFi.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\nanoFramework.WebServer.FileSystem\nanoFramework.WebServer.FileSystem.nfproj" />
|
||||
|
@ -74,9 +75,9 @@
|
|||
</ProjectCapabilities>
|
||||
</ProjectExtensions>
|
||||
<Target Name="CopyWiFiTemplate" Condition="!Exists('$(MSBuildProjectDirectory)\WiFi.cs')" BeforeTargets="BeforeBuild">
|
||||
<ItemGroup>
|
||||
<WIFI_TEMPLATE Include="$(MSBuildProjectDirectory)\Template\WiFi.cs"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WIFI_TEMPLATE Include="$(MSBuildProjectDirectory)\Template\WiFi.cs" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(WIFI_TEMPLATE)" DestinationFolder="$(MSBuildProjectDirectory)" />
|
||||
</Target>
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче