Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Commit

Permalink
Development (#62)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Added a common folder for common assembly info and custom dictionary. Added code analysis to bot project and fixed errors and warnings. Work incomplete.

* Added Code Analyzers.

* fix CA

* Refactored the tests to make it more simple.

* Fixed wrong folder name.

* Updated the source headers.

* Added initial acceptance test.

* Acceptance Tests.

* updated ignore file, so it ignores the runsettings file.

* Setup configuration.

* Setup configuration.

* Updated the readme.md file with guidance how to setup the user for Acceptance Tests.

* Updated the headers

* - Added the CommonAssemblyInfo to Acceptance Test.
- Removed the unnecassary try catch from messagesController

* Added AppSettings.config to repo

* Trying to get it right

* Added AppSettings.config again

* Add runsettings

* Added batch for to ignore changes.
Updated the readme

* Fixed the web.release.config

* Web.Release.config

* again

* Change

* And finally fixed.

* - Adopted Autofac.
- Updated Unit test to accomodate Autofac.

* Added Telemetry

* Enabled StyleCop for the api project.

* Added stylecop analysis for the Unit Test project.

* Added stylecop rules to Acceptance test project.

* Initial code to popup a signin card and redirect to login screen.

* Added first unit test for connecting to an account.

* Tested with emulator, it is spinning up.

* Mark the current specflow tests using the DirectLine client as Integration tests.

* Start of controller feature tests.

* Worked on the AuthorizeController, when a redirect is done to the controller with an authorization code. We get the profile and accounts for that user.

* Able to do a round trip with the oauth.

* Update AppSettings.config

* Simplified.

* Added initial steps for testing the controller, although not working yet. Also added a test code rule set for code analysis.

* Fixed issue for Test Explorer not finding the tests.

* Added acceptance tests for the controller, which needs dialogs to be invoked through an injected interfaces. Also tests situation where controller gets an exception.

* Added test for non-message activities sent to the controller.

* Finished the unit test for retrieving and processing a security code.

* Refactored a bit.

* Added a production code ruleset. Fixed all code analysis errors. Ensure all warnings are treated as errors.

* Checks if a profile was selected before.

* Small Updates.

* Fixed issue with different version of assemblies
Enabled the custom rulesets for release configuration.

* Fixed issue with test not showing up

* Added common files to solution for easy tracking.

* Updated NuGet packages.

* Revert "Updated NuGet packages."

This reverts commit 141aeac.

* Jo 13138 (#15)

* Moving forward to a using a flow for the user.

* More changes to the flow.

* Working on the flow.

* Finished the flow for connecting to an account.

* Fixed current unittests.

* Small cleanup in the Authorize controller.

* Some minor fixes.

* - Updated Nuget packages.
- Followed up on new rulesets.

* Added guards in ConnectDialog
Removed try..catch

* Updated NuGet packages.

* Added ReSharper settings file.

* Removed unused parameter.

* Corrected IDisposable patter implementation

* Wrapped any iterpolated string with FormattableString.Invariant(), so… (#17)

* Wrapped any iterpolated string with FormattableString.Invariant(), so it uses the Invariant cultureinfo.

* Removed unused using.

* Fixed failing controller tests. The builder needs to be set up in the controller tests. However, to make it work the builder needs configuration so added a configuration provider interface that can be mocked. Also had to remove some C# 7 syntax.

* Updated the Random generator to RNGCryptoServiceProvider, so the gene… (#16)

* Updated the Random generator to RNGCryptoServiceProvider, so the generation is more secure.

* Using UInt32, and modules to get a 5 number pin

* Added test categories and applied them. Renamed Acceptance tests to Behavioural.

* Jo 13289 (#20)

* Started on a work around to mock user data.

* Got the current unit tests working.

* Simplified the unit tests

* Added unit tests.

* Fixed minor inspection warnings.

* Renamed IProfileService to IVstsService as it serves not only profile retrieval. It will be extended to get other VSTS objects like projects, etc.

* Cleaned up documentation. (#24)

* Cleaned up documentation.

* Added suppress warning 1591 to all configurations for test projects.

* Missed  the change to the custom dictionary . This broke the build

* Implemented reading VSTS projects. Added basic unit tests.

* Reordered using

* Acceptance tests welcome (#27)

* Added Acceptance Tests for the welcome messages.

* Update Team-Services-Bot.runsettings

* Update Team-Services-Bot.runsettings

* Added two acceptance tests for welcome,

* Update Team-Services-Bot.runsettings

* Added CreatedOn and ExpiredOn for easier expiration detection of the access token.

* Undo ignore batch file.

* Two suppress messages.

* Renamed a method.

* Moved TestCategories class into a separate common test project. Applied categories to uncategorised tests. Also pointed all assemblies to a common strong name key file. Removed a redundant warning suppression.

* Getting some info from console.

* showing bot id information.

* Reverted logging stuff.

* Updated test category to use common class rather then string.

* Removed commented code.

* issue with the authorization scope. Fixed.

* Implemented project selection

* Refactored usage of IVstsAccount in ConnectDialog. Fixed tests.

* Feature/13280 jo (#31)

* Added the acceptance tests.

* Added approvals acceptance tests.

* Start for the ApprovalsDialog.

* Added Approvals list, Approve and Reject.

* Finished Approve and reject tests.

* Rewritten unit tests.

* Added refresh token support.

* Running some tests on the approvals flow.

* Added email address to the profile.

* Fixed button in Teams

* Fixed issue with the refreshtoken.

* - Updated according to the comments.
- Using account as string again

* Feature/13280 jo (#32)

* Added the acceptance tests.

* Added approvals acceptance tests.

* Start for the ApprovalsDialog.

* Added Approvals list, Approve and Reject.

* Finished Approve and reject tests.

* Rewritten unit tests.

* Added refresh token support.

* Running some tests on the approvals flow.

* Added email address to the profile.

* Fixed button in Teams

* Fixed issue with the refreshtoken.

* - Updated according to the comments.
- Using account as string again

* Fixed warnings

* Fixed warning

* Fixed tests.

* Reduced cognitive complexity

* Improved method naming and disposed connection object.

* Feature/jo refactoring root and connect dialogs (#33)

* Refactored RootDialog Unit Tests.

* Figured out how to mock the Wait method on DialogContext.

* Added unit tests for connectdialog.

* Finished unit tests for connect dialog.

* Added unit tests for root dialog.

* Finished Unit Tests for Approvals Dialog.

* Added unit tests for the cards.

* Excluded some classes from code coverage.

* Added more unit tests.

* Added more unit tests.

* auth scope reset.

* Added runsettings.

* Changed to include.

* fixing runsettings

* Fixing runsettings

* Final,

* Fixed the issue

* Fixed issue with tests. Changed the welcome message.

* Feature/jo refactor msg controller tests (#35)

* Moved the MessagesControllerTests to the unit test project.

* Encapsulated ContainerBuilder into Bootstrap

* Feature/jo more refactoring (#36)

* Renamed a few method

* Adjusted the code around the pin. so the profile is not used before the pin is entered. This way, it is harder to inject someones profile into another users session.

* var.

* Added reading of build definitions.

* Fixed continious login prompt.

* Fixed GetAccountsTest

* Added tests.

* Added unit tests for VstsService.

* Minor formatting changes.

* Update the third party party notices file to reference all OSS libraries. (#37)

* Updated NuGet packages

* Added missing method description.

* Fixed NuGet references. Added missing analyzers.

* Implemented unit tests for VstsService.ChangeApprovalStatus() and VstsService.GetApprovals()

* Removed unused reference.

* Feature/jo acceptance tests (#38)

* Adding acceptance tests.

* Finished coding Approvals - Acceptance Tests.

* Added connect acceptance test.

* Updated ThirdPartyNotices.txt

* Added basic pages.

* Added pages.

* Finished with the tests.

* Added unit tests for default controller.

* Added updated config files.

* Fixed some issues.

* Feature/jo acceptance tests (#40)

* Adding acceptance tests.

* Finished coding Approvals - Acceptance Tests.

* Added connect acceptance test.

* Updated ThirdPartyNotices.txt

* Added basic pages.

* Added pages.

* Finished with the tests.

* Added unit tests for default controller.

* Added updated config files.

* Fixed some issues.

* Feature/jo acceptance tests (#41)

* Adding acceptance tests.

* Finished coding Approvals - Acceptance Tests.

* Added connect acceptance test.

* Updated ThirdPartyNotices.txt

* Added basic pages.

* Added pages.

* Finished with the tests.

* Added unit tests for default controller.

* Added updated config files.

* Fixed some issues.

* Ignore one test.

* Second try.

* Feature/jo acceptance tests (#42)

* Adding acceptance tests.

* Finished coding Approvals - Acceptance Tests.

* Added connect acceptance test.

* Updated ThirdPartyNotices.txt

* Added basic pages.

* Added pages.

* Finished with the tests.

* Added unit tests for default controller.

* Added updated config files.

* Fixed some issues.

* Ignore one test.

* Second try.

* Removed trailing space

* Added re initialize of the refreshtoken

* Check refreshtoken

* debug info

* Removed Console.WriteLine

* Now using the id

* Exception handling

* Removed Fakes warnigns

* added the authorizeurl

* Another addition

* more logging

* More debug info

* Debug info

* Small refactor.

* AGAIN

* again

* Debug

* Update Team-Services-Bot.runsettings

* Removed all the debug lines.

* Fixed VSTS Tests

* Removed Fakes warnings (#44)

* Removed Fakes warnigns

* Fixed VSTS Tests

* Feature/jo pages (#45)

* Adding acceptance tests.

* Finished coding Approvals - Acceptance Tests.

* Added connect acceptance test.

* Updated ThirdPartyNotices.txt

* Added basic pages.

* Added pages.

* Finished with the tests.

* Added unit tests for default controller.

* Added updated config files.

* Added the Eula page.

* Fixed some issues.

* Ignore one test.

* Second try.

* Removed trailing space

* - Moved EULA to it's own controller.
- Added link to EULA in the bots welcome message.

* Updated ChangeApprovalStatusTest to match changed method under test.

* Corrected formatting.

* Corrected formatting

* Added unit tests for uncovered methods in VstsService class

* Temporarily removed account Uri lookup. (#48)

* Updated readme.

* Added Vladimir as contributor.

* Simplified connecting to VSTS.

* Feature/13140 list build definitions (#49)

* Temporarily removed account Uri lookup.

* Added more

* Added basics & basic tests for BuildsDialog.

* Added code for showing the BuildDefinitionCard

* Added acceptance test.

* Feature/13140 list build definitions (#50)

* Temporarily removed account Uri lookup.

* Added more

* Added basics & basic tests for BuildsDialog.

* Added code for showing the BuildDefinitionCard

* Added acceptance test.

* Fixed message

* Changed type to Index.cshtml of authorize to content

* Added feature to clear user data.

* Features/13141 jo (#51)

* Added QueueBuildAsync method and test

* Added logic for handling queing a build.

* Added acceptance test.

* Fixed some small bugs regarding Build Queue

* Fixed a warning

* Features/13142 jo (#52)

* Added method to get release definitions

* Added ReleasesDialog with unit tests for listing release definition.

* Added acceptance test for listing releases

* Updated CreateRelease so it picks up multiple latest builds for 1 or more artifacts.

* Added Create method to releasesdialog, added unittests, added acceptance tests.

* Renamed test name.

* Added GetReleaseAsyncTest

* Fixed error handling in AuthorizeController

* added scope configuration value (#55)

* fixed issue with unit tests

* Restored back default name for AppSettings configuration file.

* Update shims files

* Joined null checks with assigments.

* Added Guards to VSTSService

* Feature/13290 jo (#56)

* Updated guards in the extension method(s)

* Added Guards on the Cards.

* Added Guards to Bootstrap & Dialogs.

* Feature/naming convention (#58)

* Adhere to the naming

* Converted to VSTS

* Update README.md

* Feature/jo refactorings (#59)

* Removed the common tests project.

* Removed ConfigurationProvider

* Updated AppSettings

Handling unknown commands.

Updated connect message.

* Added check if a team project from the list is selected. (#60)

* Updated notice, so it uses the official name of the VSTS Bot.

* Fixed issue with ignore change bat files.
Cleaned AppSettings.
  • Loading branch information
jeffrey-opdam committed Aug 11, 2017
1 parent fb04cbb commit fc9ba0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Git-Ignore-Changes-Undo.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
git.exe update-index --no-skip-worktree src\Team-Services-Bot.runsettings
git.exe update-index --no-skip-worktree src\Team-Services-Bot.Api\AppSettings.config
git.exe update-index --no-skip-worktree src\VSTS-Bot.runsettings
git.exe update-index --no-skip-worktree src\VSTS-Bot.Api\AppSettings.config
pause
4 changes: 2 additions & 2 deletions Git-Ignore-Changes.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
git.exe update-index --skip-worktree src\Team-Services-Bot.runsettings
git.exe update-index --skip-worktree src\Team-Services-Bot.Api\AppSettings.config
git.exe update-index --skip-worktree src\VSTS-Bot.runsettings
git.exe update-index --skip-worktree src\VSTS-Bot.Api\AppSettings.config
pause
10 changes: 5 additions & 5 deletions src/VSTS-Bot.Api/AppSettings.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<add key="UnobtrusiveJavaScriptEnabled" value="true" />

<!-- update these with your BotId, Microsoft App Id and your Microsoft App Password-->
<add key="AppId" value="D20DF677-B8CF-4B04-B6AE-6F498DA76B9B" />
<add key="AppSecret" value="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im9PdmN6NU1fN3AtSGpJS2xGWHo5M3VfVjBabyJ9.eyJjaWQiOiJkMjBkZjY3Ny1iOGNmLTRiMDQtYjZhZS02ZjQ5OGRhNzZiOWIiLCJjc2kiOiIxMzlkNmE2Zi03Y2ZjLTQzMDktODZlYy0xYWJhZWZjZjNkY2IiLCJuYW1laWQiOiI1MDBiMTY2Mi0wZDFkLTRkZDQtOTY3Yi02MGMzOTZhNDJiOGQiLCJpc3MiOiJhcHAudnNzcHMudmlzdWFsc3R1ZGlvLmNvbSIsImF1ZCI6ImFwcC52c3Nwcy52aXN1YWxzdHVkaW8uY29tIiwibmJmIjoxNDk5MTA3Nzk2LCJleHAiOjE2NTY4NzQxOTZ9.ELscxFWtNYndeuSC9DxOvlwXc-Mkv2NarzPfTzzC0tlCjFy6MTQvN8NLHjUD_RFcvYm8qtPqjpBbLrKG1bz4i0q13SG15j7LcsFa-yYopIQcv2lWtRY6rJ6VUaMQkrhFAECwBNiuB_QjcBskSm8K7WpJo0os_n_ddhFKyIiO4kCOajUaynijhr0YOA498pjpmXFvZkXwoBqmsAyRrbpvkuYpF3kz6pHNUHc1AtQmC_xf15yiaL_Doti1WkQsAZlTuGi_KpNVWrc-djEGtmDm4LQ9pXegQt_nmGO0Ii0zc3i-oG53aqMSymbUls_bqzSBC7nh5vxQK_Y8-VPA28xvFA" />
<add key="AppId" value="" />
<add key="AppSecret" value="" />
<add key="AppScope" value="vso.agentpools_manage%20vso.build_execute%20vso.chat_manage%20vso.code_manage%20vso.code_status%20vso.connected_server%20vso.dashboards%20vso.dashboards_manage%20vso.entitlements%20vso.extension.data_write%20vso.extension_manage%20vso.gallery_acquire%20vso.gallery_manage%20vso.identity%20vso.loadtest_write%20vso.notification_manage%20vso.packaging_manage%20vso.profile_write%20vso.project_manage%20vso.release_manage%20vso.security_manage%20vso.serviceendpoint_manage%20vso.taskgroups_manage%20vso.test_write%20vso.work_write"/>
<add key="AuthorizeUrl" value="https://eb16a9ae.ngrok.io/authorize" />
<add key="AuthorizeUrl" value="" />
<add key="EmulatorListeningUrl" value="" />
<add key="InstrumentationKey" value="" />
<add key="BotId" value="Moya" />
<add key="MicrosoftAppId" value="4a6cfbb9-8d0a-48b0-b829-69524ae5bff6" />
<add key="MicrosoftAppPassword" value="Yo8q6AtKOpMVotTy7hJDDYk" />
<add key="MicrosoftAppId" value="" />
<add key="MicrosoftAppPassword" value="" />
</appSettings>

0 comments on commit fc9ba0b

Please sign in to comment.