Justin Baur
af07dffa6f
Relax nullable in test projects ( #5379 )
...
* Relax nullable in test projects
* Fix xUnit Warnings
* More xUnit fixes
1 year ago
Justin Baur
408ddd9388
Scaffold Events Integration Tests ( #5355 )
...
* Scaffold Events Integration Tests
* Format
1 year ago
Matt Gibson
4377c7a897
Rewrite Icon fetching ( #3023 )
...
* Rewrite Icon fetching
* Move validation to IconUri, Uri, or UriBuilder
* `dotnet format` 🤖
* PR suggestions
* Add not null compiler hint
* Add twitter to test case
* Move Uri manipulation to UriService
* Implement MockedHttpClient
Presents better, fluent handling of message matching and response
building.
* Add redirect handling tests
* Add testing to models
* More aggressively dispose content in icon link
* Format 🤖
* Update icon lockfile
* Convert to cloned stream for HttpResponseBuilder
Content was being disposed when HttResponseMessage was being disposed.
This avoids losing our reference to our content and allows multiple
usages of the same `MockedHttpMessageResponse`
* Move services to extension
Extension is shared by testing and allows access to services from
our service tests
* Remove unused `using`
* Prefer awaiting asyncs for better exception handling
* `dotnet format` 🤖
* Await async
* Update tests to use test TLD and ip ranges
* Remove unused interfaces
* Make assignments static when possible
* Prefer invariant comparer to downcasing
* Prefer injecting interface services to implementations
* Prefer comparer set in HashSet initialization
* Allow SVG icons
* Filter out icons with unknown formats
* Seek to beginning of MemoryStream after writing it
* More appropriate to not return icon if it's invalid
* Add svg icon test
3 years ago
Jim Hays
8262af3c53
[PM-1969] Spellcheck other ( #2878 )
...
* Fix typo in error message: 'Unkown' -> 'Unknown'
* Fix typos in error message
* Fix typo in example text: 'licence' -> 'license'
* Fix typo in validation: 'Ooganization' -> 'Organization'
* Fix typo in text string: 'compatibilty' -> 'compatibility'
* Fix typo: 'ProviderDisllowedOrganizationTypes' -> 'ProviderDisallowedOrganizationTypes'
* Fix typo: 'NSubstitueVersion' -> 'NSubstituteVersion'
* Fix typo: 'CreateIntialInvite' -> 'CreateInitialInvite'
* Fix typo: '_queuryScheme' -> '_queryScheme'
* Fix typo: 'GetApplicationCacheServiceBusSubcriptionName' -> 'GetApplicationCacheServiceBusSubscriptionName'
* Fix typo: 'metaDataRespository' -> 'metaDataRepository'
* Fix typo: 'cipherAttachements' -> 'cipherAttachments'
* Fix typo: 'savedEmergencyAccesss' -> 'savedEmergencyAccesses'
* Fix typo: 'owerOrgUser' -> 'ownerOrgUser'
* Fix typo: 'Organiation' -> 'Organization'
* Fix typo: 'extistingUser' -> 'existingUser'
* Fix typo: 'availibleAccess' -> 'availableAccess'
* Fix typo: 'HasEnouphStorage' -> 'HasEnoughStorage'
* Fix typo: 'extistingOrg' -> 'existingOrg'
* Fix typo: 'subcriber' -> 'subscriber'
* Fix typo: 'availibleCollections' -> 'availableCollections'
* Fix typo: 'Succes' -> 'Success'
* Fix typo: 'CreateAsync_UpdateWithCollecitons_Works' -> 'CreateAsync_UpdateWithCollections_Works'
* Fix typo: 'BadInsallationId' -> 'BadInstallationId'
* Fix typo: 'OrgNotFamiles' -> 'OrgNotFamilies'
* Revert "Fix typo: 'Organiation' -> 'Organization'"
This reverts commit 8aadad1c25 .
* Revert "Fix typos in error message"
This reverts commit 81d201fc09 .
---------
Co-authored-by: Daniel James Smith <djsmith@web.de>
3 years ago
Justin Baur
daeaa42851
[PS-40] Upgrade to .NET 6 ( #2056 )
...
* Bump to .NET 6
* Update Docker images
* Update docs
* Update workflow for linter
* Add all common versions to props file
* Update tools manifest
* Update csproj files
* Update packages.lock.json files
* Switch to setup-dotnet
* Remove msbuild
* Fix deps breaking changes
* Manually install msbuild
* Use msbuild for build
* Fix verbosity switch
* Remove unused exceptions
* Address linter feedback
* Make Obsolete warnings suggestions for now.
* Force Evaluate
* Format on tests
* Run formatting again.
* Use windows 2022
* force evaluate
* Fix restore
* Fix linter
* Skip test
* Update Directory.Build.props
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
* Address PR feedback
* Add IntegationTest for Rate limiter
* Fix test
* Reenable test
* Reorder test
* Skip test again
* Add tracking link
* Update .github/workflows/build.yml
Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
4 years ago
Justin Baur
59268790c9
Implement code coverage tool ( #1390 )
...
* Implement code coverage tool
* Switch to solution style of running tests
* Add shell version of coverage file
* Fix formatting in coverage.sh
* Add trailing newline to powershell
5 years ago
Justin Baur
0e1ab99e25
Cleanup Projects ( #1324 )
...
* Update bitwarden_license projects
* Added tests to verify resource names
* Remove unneeded assembly attributes
* Standardized namespace
* Remove .GetTypeInfo()
5 years ago
Justin Baur
d21ca83a20
Add Directory.Build.props ( #1314 )
...
* Add Directory.Build.props
* Remove unneeded props
5 years ago
Thomas Rittson
908decac5e
Add unit test for hiding emails on sends ( #1246 )
...
* Add unit test for hiding emails on sends
* Fix dependencies
5 years ago
Kyle Spearrin
8559e144c6
bump dependency minor/patch versions
6 years ago
Kyle Spearrin
c205bf72e6
update some libs
6 years ago
Joshua Ford
e00f53369f
Create tests for AccountsController
...
Partial test suite included to minimize the amount necessary to review.
6 years ago
Joshua Ford
945d4cc1c1
Initialize Api.Test unit test suite
6 years ago