@@ -11,8 +11,10 @@ namespace Test.Lib.Net.Http.WebPush.Functional
1111 public class PushMessageDeliveryTests : IClassFixture < FakePushServiceApplicationFactory >
1212 {
1313 #region Fields
14- private const string CREATED_ENDPOINT = "http://localhost/push-created" ;
15- private const string RETRY_AFTER_ONCE_ENDPOINT = "http://localhost/push-retry-after-once" ;
14+ private const string RFC_8030_CREATED_ENDPOINT = "http://localhost/push-rfc-8030-created" ;
15+ private const string MOZILLA_AUTOPUSH_DELIVERED_ENDPOINT = "http://localhost/mozilla-autopush-delivered" ;
16+ private const string MOZILLA_AUTOPUSH_STORED_ENDPOINT = "http://localhost/mozilla-autopush-stored" ;
17+ private const string RETRY_AFTER_ONCE_ENDPOINT = "http://localhost/push-retry-after-once" ;
1618 private const string RETRY_AFTER_ALWAYS_ENDPOINT = "http://localhost/push-retry-after-always" ;
1719 private const string CLIENT_ERROR_ENDPOINT = "http://localhost/push-client-error" ;
1820
@@ -56,10 +58,13 @@ private PushServiceClient PreparePushServiceClient()
5658 #endregion
5759
5860 #region Tests
59- [ Fact ]
60- public async Task PushService_NoError_DeliversPushMessage ( )
61+ [ Theory ]
62+ [ InlineData ( RFC_8030_CREATED_ENDPOINT ) ]
63+ [ InlineData ( MOZILLA_AUTOPUSH_DELIVERED_ENDPOINT ) ]
64+ [ InlineData ( MOZILLA_AUTOPUSH_STORED_ENDPOINT ) ]
65+ public async Task PushService_NoError_DeliversPushMessage ( string endpoint )
6166 {
62- _pushSubscription . Endpoint = CREATED_ENDPOINT ;
67+ _pushSubscription . Endpoint = endpoint ;
6368
6469 PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
6570
@@ -217,8 +222,8 @@ public async Task PushService_PushEncryptionKeysNamesLowercase_DeliversPushMessa
217222 { "auth" , PUSH_SUBSCRIPTION_AUTH_KEY } ,
218223 { "p256dh" , PUSH_SUBSCRIPTION_P256DH_KEY }
219224 } ,
220- Endpoint = CREATED_ENDPOINT
221- } ;
225+ Endpoint = RFC_8030_CREATED_ENDPOINT
226+ } ;
222227
223228 PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
224229
@@ -242,8 +247,8 @@ public async Task PushService_PushEncryptionKeysNamesUppercase_DeliversPushMessa
242247 { "AUTH" , PUSH_SUBSCRIPTION_AUTH_KEY } ,
243248 { "P256DH" , PUSH_SUBSCRIPTION_P256DH_KEY }
244249 } ,
245- Endpoint = CREATED_ENDPOINT
246- } ;
250+ Endpoint = RFC_8030_CREATED_ENDPOINT
251+ } ;
247252
248253 PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
249254
@@ -267,8 +272,8 @@ public async Task PushService_PushEncryptionKeysNamesMixedCase_DeliversPushMessa
267272 { "AuTh" , PUSH_SUBSCRIPTION_AUTH_KEY } ,
268273 { "P256dH" , PUSH_SUBSCRIPTION_P256DH_KEY }
269274 } ,
270- Endpoint = CREATED_ENDPOINT
271- } ;
275+ Endpoint = RFC_8030_CREATED_ENDPOINT
276+ } ;
272277
273278 PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
274279
0 commit comments