Commit Graph

58 Commits

Author SHA1 Message Date
Ryan Brandenburg 15ca3dcdaa Move templates to netcoreapp2.2 2018-05-18 09:28:12 -07:00
John Luo a8c3615df4 React to implicit Microsoft.AspNetCore.App reference 2018-04-19 16:49:13 -07:00
Jass Bagga cec6363c5a Merge branch 'release/2.1' into dev 2018-04-03 10:46:36 -07:00
Jass Bagga 0a5a963bb0
Use dotnet-ef package (#433)
Addresses  #429 and #378
2018-04-03 10:36:06 -07:00
Pranav K 948a2537da
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-04-02 16:17:07 -07:00
Pranav K d1b745f249 Use Razor.Sdk package to verify templates
Fixes #400
2018-04-02 16:15:32 -07:00
Jass Bagga 79cc52d903
Merge pull request #418 from aspnet/release/2.1
--no-https option for RazorPagesWeb-CSharp template (#362)
2018-03-29 13:49:46 -07:00
Jass Bagga aca30fe8a2
--no-https option for RazorPagesWeb-CSharp template (#362) 2018-03-29 13:49:20 -07:00
Javier Calvarro Nelson 9336ee1b74 Merge branch 'release/2.1' into dev 2018-03-26 21:01:32 -07:00
Javier Calvarro Nelson a8246e2a99 [Fixes #327] Replace AAD template code with packages
* Add Microsoft.AspNetCore.Authentication.AzureAD.UI package.
* Add Microsoft.AspNetCore.Authentication.AzureADB2C.UI package.
* Remove AccountController.
* Remove Pages/Views related to authentication.
2018-03-26 20:37:46 -07:00
Kiran Challa 88f8f97702 Merge branch 'release/2.1' into dev 2018-03-20 13:47:26 -07:00
Kiran Challa 69f52cc3b6 Removing Microsoft.AspNetCore.SpaTemplates project and friends 2018-03-20 13:46:11 -07:00
Hao Kung edaf72c7fc
Add update migrations script (#376) 2018-03-20 09:45:53 -07:00
Hao Kung d682c971b7
Add test for ensuring that migration is current (#344) 2018-03-08 12:12:13 -08:00
Nate McMaster 456121af8b
Fix #320 - skip the certificate error page in Edge 2018-02-12 15:42:51 -08:00
John Luo bd9e53015d Merge branch 'release/2.1' into dev 2018-02-01 14:48:34 -08:00
John Luo 94cfac8ec6 Use Microsoft.AspNetCore.App in templates
- Add BrowserLink and Sqlite for Razor and StarterWeb templates when required
- Add tests for LocalDB scenarios
2018-02-01 12:52:05 -08:00
Nate McMaster e3b23a9fd8 Merge branch 'release/2.1' into dev 2018-01-25 12:27:21 -08:00
Nate McMaster 9000769449 Update tests to only bind to the loopback IP address
Prevents dozens of firewall prompts from appearing while running tests
2018-01-25 12:25:34 -08:00
Jass Bagga 1669e39735
Add firewall exclusions for test executables (#244) 2018-01-24 15:11:28 -08:00
Javier Calvarro Nelson 8c94d27d6a [Fixes #181] Go back to server selected listening ports. 2017-12-28 19:00:29 -08:00
Jass Bagga 886a985726 Target netcoreapp2.1 2017-12-28 17:01:30 -08:00
Javier Calvarro Nelson 4d2e642b94 Add launchSettings.json by default to our templates
* Adds launchSettings.json to all of our templates.
* Provides an alternative flag to exclude it.
* Adds HTTPS support in launchSettings.json.
* Re-adds HTTPS redirect and HSTS middleware for C# templates.
* Improves some infrastructure aspects:
    * Prefix all our test projects with AspNet.Template to allow easy
      killing of orphaned processes.
    * Setup an HTTPS certificate automatically for use with tests in the
      same way our tooling does it on customers machines.
    * Switch from OS selected ports to randomly selected ports. This is
      required as we need to know the port to use for HTTPS.
    * Allow disabling browser automation through an environment variable.
    * Setup Firefox to allow untrusted certificates when using Selenium.
    * Allow running Selenium tests on firefox by setting an environment
      variable.
2017-12-08 13:08:36 -08:00
Steve Sanderson 1f92811ce0 Make AppVeyor builds more consistent by allowing retry for "npm install" 2017-11-24 11:02:05 +00:00
Steve Sanderson 76cb441a8e On test completion, kill the ASP.NET process tree (otherwise orphan processes are left behind) 2017-11-20 23:03:44 +00:00
Steve Sanderson 352d05030b Remove Yarn usage as results were not consistent with npm-shrinkwrap.json 2017-11-20 22:30:56 +00:00
Steve Sanderson 21b15803ae In tests, restore NPM dependencies using yarn if installed 2017-11-20 14:39:25 +00:00
Steve Sanderson 7961894771 Re-enable test parallelization. Fixes #63. 2017-11-20 10:58:56 +00:00
Steve Sanderson fad4fb22fa Remove test workaround that is no longer needed now the underlying issue is resolved 2017-11-17 15:10:57 +00:00
Steve Sanderson a76a891865 Workarounds to make SPA template tests work 2017-11-17 11:02:41 +00:00
Steve Sanderson 849a0843c9 Fixes for constructing IWebDriver 2017-11-17 11:02:25 +00:00
Steve Sanderson f028839b5d Workaround for publishing issue 2017-11-17 11:02:03 +00:00
Steve Sanderson 2dda2dd99d Stop tests from hanging if the ASP.NET process fails to exit 2017-11-17 11:01:32 +00:00
Nate McMaster 0ebece7f44 Update tests to remove any template that might match 'ASP.NET Core Empty' 2017-11-09 17:14:01 -08:00
Nate McMaster aee0d26d67 Merge build infrastructure changes from rel/2.0.3
Changes:
- Replaces PackageLineup with the dependencies.props approach to manage package versions.
- Generate the csproj/fsproj files that go into template packages
- Remove the DependencyUpdater and PullRequestSubmitter tasks
- Remove bower.json and bowerrc from Microsoft.DotNet.Web.ProjectTemplates
- Set MyGet feeds via MSBuild instead of NuGet.config
- Upgrades to the functional tests
- Update Selenium
- Make it possible to run tests on macOS/linux
- Disable test parallelization
2017-11-06 16:06:24 -08:00
Nate McMaster 09161305bb Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1

Changes:
Remove the 2.0 and 1.x templates projects from this branch
2017-11-06 15:54:02 -08:00
Nate McMaster 1ffcf2c009 Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1
2017-11-06 10:19:59 -08:00
Steve Sanderson 38ce406c6e Make tests not fail just because a same-named env var was already present 2017-10-31 15:37:35 +00:00
Steve Sanderson a067713a96 Fix test logic for verifying template uninstallation. Now respects global.json for SDK selection. 2017-10-31 15:32:56 +00:00
Nate McMaster 5541615008 Automate dependency version selection
- Generate the template config file to include package versions as listed in dependencies.props
 - Update template cs/fsproj files to use variables per package
 - Fixup tests to run better on Linux/macOS
2017-10-12 16:44:55 -07:00
Nate McMaster c770f287a5 Remove the 2.1. templates from the rel/2.0.x branch 2017-10-12 14:03:51 -07:00
Steve Sanderson c39c1aaa38 Move 2.1 templates to netcoreapp2.0 until we use an SDK that supports netcoreapp2.1 2017-09-11 18:53:59 +01:00
Steve Sanderson 8c0dd1d2cc Fix for CI agents having extra template package already installed 2017-09-11 18:41:58 +01:00
Steve Sanderson b38f0dbc7a Change tests to use 2.0 templates until SDK is updated 2017-09-11 18:32:54 +01:00
Steve Sanderson 56fdcad4d5 Also uninstall the 2.0 template package when reinstalling for tests 2017-09-11 18:17:13 +01:00
Steve Sanderson 148e4af837 Make template package uninstallation detection report errors properly 2017-09-11 18:13:15 +01:00
Steve Sanderson cb500fe3b8 Account for non-installed templates when preparing test run 2017-09-11 17:41:24 +01:00
Steve Sanderson 1a50c968c4 Update tests to cover 2.1 templates 2017-09-11 16:25:51 +01:00
Steve Sanderson 1e5a3cf59c Trivial string tweak 2017-09-08 23:19:57 +01:00
Steve Sanderson 5178efb17b Fix thread safety issue that was causing intermittent build failures 2017-09-08 19:23:48 +01:00