55namespace Bugsnag . ConfigurationSection . Tests
66{
77 /// <summary>
8- /// Verifies that a “Hub” -flavoured API-key (prefix 00000…)
9- /// automatically switches the notify / sessions hosts to InsightHub ,
8+ /// Verifies that a Secondary -flavoured API-key (prefix 00000…)
9+ /// automatically switches the notify / sessions hosts to smartbear.com ,
1010 /// *unless* the user deliberately overrides them in the XML.
1111 /// </summary>
12- public class HubEndpointTests
12+ public class SecondaryEndpointTests
1313 {
1414 private static IConfiguration Load ( string cfgName )
1515 {
@@ -21,38 +21,38 @@ private static IConfiguration Load(string cfgName)
2121 }
2222
2323 /*─────────────────────────────────────────────────────────
24- * 1. Hub key, *default* endpoints → InsightHub hosts
24+ * 1. Secondary key, *default* endpoints → smartbear.com hosts
2525 *────────────────────────────────────────────────────────*/
2626 [ Fact ]
27- public void HubKey_UsesInsightHubHosts_WhenNotOverridden ( )
27+ public void SecondaryKey_UsesSmartbearHosts_WhenNotOverridden ( )
2828 {
29- var cfg = Load ( "HubDefault " ) ; // see HubDefault .config below
29+ var cfg = Load ( "SecondaryDefault " ) ; // see SecondaryDefault .config below
3030
3131 Assert . NotNull ( cfg ) ;
3232 Assert . Equal ( "00000123456789abcdef0123456789" , cfg . ApiKey ) ;
3333
34- Assert . Equal ( new Uri ( "https://notify.insighthub .smartbear.com" ) , cfg . Endpoint ) ;
35- Assert . Equal ( new Uri ( "https://sessions.insighthub .smartbear.com" ) , cfg . SessionEndpoint ) ;
34+ Assert . Equal ( new Uri ( "https://notify.bugsnag .smartbear.com" ) , cfg . Endpoint ) ;
35+ Assert . Equal ( new Uri ( "https://sessions.bugsnag .smartbear.com" ) , cfg . SessionEndpoint ) ;
3636 }
3737
3838 /*─────────────────────────────────────────────────────────
39- * 2. Hub key but custom <endpoint> / <sessionsEndpoint> →
39+ * 2. Secondary key but custom <endpoint> / <sessionsEndpoint> →
4040 * **user preference wins**
4141 *────────────────────────────────────────────────────────*/
4242 [ Fact ]
43- public void HubKey_HonoursCustomEndpoints_WhenPresent ( )
43+ public void SecondaryKey_HonoursCustomEndpoints_WhenPresent ( )
4444 {
45- var cfg = Load ( "HubCustomEndpoint " ) ; // see HubCustomEndpoint .config below
45+ var cfg = Load ( "SecondaryEndpoint " ) ; // see SecondaryEndpoint .config below
4646
4747 Assert . NotNull ( cfg ) ;
4848 Assert . Equal ( "00000feedfacecafebeefdeadbeef" , cfg . ApiKey ) ;
4949
50- Assert . Equal ( new Uri ( "https://corp.example.com/notify" ) , cfg . Endpoint ) ;
50+ Assert . Equal ( new Uri ( "https://corp.example.com/notify" ) , cfg . Endpoint ) ;
5151 Assert . Equal ( new Uri ( "https://corp.example.com/sessions" ) , cfg . SessionEndpoint ) ;
5252 }
5353
5454 /*─────────────────────────────────────────────────────────
55- * 3. Non-hub key ⇒ still Bugsnag hosts
55+ * 3. Non-secondary key ⇒ still Bugsnag hosts
5656 *────────────────────────────────────────────────────────*/
5757 [ Fact ]
5858 public void ClassicKey_KeepsBugsnagHosts ( )
@@ -62,7 +62,7 @@ public void ClassicKey_KeepsBugsnagHosts()
6262 Assert . NotNull ( cfg ) ;
6363 Assert . Equal ( "abcd1234abcd1234abcd1234abcd1234" , cfg . ApiKey ) ;
6464
65- Assert . Equal ( new Uri ( Bugsnag . Configuration . DefaultEndpoint ) , cfg . Endpoint ) ;
65+ Assert . Equal ( new Uri ( Bugsnag . Configuration . DefaultEndpoint ) , cfg . Endpoint ) ;
6666 Assert . Equal ( new Uri ( Bugsnag . Configuration . DefaultSessionEndpoint ) , cfg . SessionEndpoint ) ;
6767 }
6868 }
0 commit comments