@@ -11,8 +11,10 @@ namespace Test.Lib.Net.Http.WebPush.Functional
11
11
public class PushMessageDeliveryTests : IClassFixture < FakePushServiceApplicationFactory >
12
12
{
13
13
#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" ;
16
18
private const string RETRY_AFTER_ALWAYS_ENDPOINT = "http://localhost/push-retry-after-always" ;
17
19
private const string CLIENT_ERROR_ENDPOINT = "http://localhost/push-client-error" ;
18
20
@@ -56,10 +58,13 @@ private PushServiceClient PreparePushServiceClient()
56
58
#endregion
57
59
58
60
#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 )
61
66
{
62
- _pushSubscription . Endpoint = CREATED_ENDPOINT ;
67
+ _pushSubscription . Endpoint = endpoint ;
63
68
64
69
PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
65
70
@@ -217,8 +222,8 @@ public async Task PushService_PushEncryptionKeysNamesLowercase_DeliversPushMessa
217
222
{ "auth" , PUSH_SUBSCRIPTION_AUTH_KEY } ,
218
223
{ "p256dh" , PUSH_SUBSCRIPTION_P256DH_KEY }
219
224
} ,
220
- Endpoint = CREATED_ENDPOINT
221
- } ;
225
+ Endpoint = RFC_8030_CREATED_ENDPOINT
226
+ } ;
222
227
223
228
PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
224
229
@@ -242,8 +247,8 @@ public async Task PushService_PushEncryptionKeysNamesUppercase_DeliversPushMessa
242
247
{ "AUTH" , PUSH_SUBSCRIPTION_AUTH_KEY } ,
243
248
{ "P256DH" , PUSH_SUBSCRIPTION_P256DH_KEY }
244
249
} ,
245
- Endpoint = CREATED_ENDPOINT
246
- } ;
250
+ Endpoint = RFC_8030_CREATED_ENDPOINT
251
+ } ;
247
252
248
253
PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
249
254
@@ -267,8 +272,8 @@ public async Task PushService_PushEncryptionKeysNamesMixedCase_DeliversPushMessa
267
272
{ "AuTh" , PUSH_SUBSCRIPTION_AUTH_KEY } ,
268
273
{ "P256dH" , PUSH_SUBSCRIPTION_P256DH_KEY }
269
274
} ,
270
- Endpoint = CREATED_ENDPOINT
271
- } ;
275
+ Endpoint = RFC_8030_CREATED_ENDPOINT
276
+ } ;
272
277
273
278
PushMessage pushMessage = new PushMessage ( WALRUS_CONTENT ) ;
274
279
0 commit comments