1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00
bitwarden-server/test
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
2023-08-08 19:29:40 +00:00
..
Api.IntegrationTest Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
Api.Test [AC-1443] Update manager permission to only see collections they have access to (#3071) 2023-08-08 16:54:10 +01:00
Billing.Test Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
Common Rewrite Icon fetching (#3023) 2023-08-08 19:29:40 +00:00
Core.Test [AC-1443] Update manager permission to only see collections they have access to (#3071) 2023-08-08 16:54:10 +01:00
Icons.Test Rewrite Icon fetching (#3023) 2023-08-08 19:29:40 +00:00
Identity.IntegrationTest Allow acceptable result ranges for integration tests (#3161) 2023-08-08 12:49:51 -05:00
Identity.Test Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
Infrastructure.EFIntegration.Test Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
Infrastructure.IntegrationTest Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
IntegrationTestCommon Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
bitwarden.tests.sln [PS-1928] Add BumpAccountRevisionDate methods (#2458) 2022-12-02 14:24:30 -05:00
coverage.ps1 Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00
coverage.sh Fix bug in TaxInfo (#1682) 2021-11-01 12:13:31 -04:00