@@ -54,21 +54,21 @@ def test_get_cache_time(self):
54
54
self .assertEqual (cache .get_cache_expiration_time (
55
55
"sws" , "/student/v5/section" , status = 404 ), 60 * 7 )
56
56
self .assertEqual (cache .get_cache_expiration_time (
57
- "sws" , "/student/v5/section" , status = 503 ), 60 * 15 )
57
+ "sws" , "/student/v5/section" , status = 503 ), 60 * 7 )
58
58
59
59
self .assertEqual (cache .get_cache_expiration_time (
60
60
"gws" , "/group_sws/v3" ), HALF_HOUR )
61
61
self .assertEqual (cache .get_cache_expiration_time (
62
62
"gws" , "/group_sws/v3" , status = 404 ), 60 * 7 )
63
63
self .assertEqual (cache .get_cache_expiration_time (
64
- "gws" , "/group_sws/v3" , status = 500 ), 60 * 15 )
64
+ "gws" , "/group_sws/v3" , status = 500 ), 60 * 7 )
65
65
66
66
self .assertEqual (cache .get_cache_expiration_time (
67
67
"pws" , "/identity/v2/person" ), ONE_HOUR )
68
68
self .assertEqual (cache .get_cache_expiration_time (
69
69
"pws" , "/identity/v2/person" , status = 404 ), 60 * 7 )
70
70
self .assertEqual (cache .get_cache_expiration_time (
71
- "pws" , "/identity/v2/person" , status = 503 ), 60 * 15 )
71
+ "pws" , "/identity/v2/person" , status = 503 ), 60 * 7 )
72
72
73
73
self .assertEqual (cache .get_cache_expiration_time (
74
74
"uwnetid" , "/nws/v1/uwnetid" ), FOUR_HOURS )
@@ -77,7 +77,7 @@ def test_get_cache_time(self):
77
77
self .assertEqual (cache .get_cache_expiration_time (
78
78
"uwnetid" , "/nws/v1/uwnetid" , status = 409 ), 60 * 7 )
79
79
self .assertEqual (cache .get_cache_expiration_time (
80
- "uwnetid" , "/nws/v1/uwnetid" , status = 500 ), 60 * 15 )
80
+ "uwnetid" , "/nws/v1/uwnetid" , status = 500 ), 60 * 7 )
81
81
82
82
self .assertEqual (cache .get_cache_expiration_time (
83
83
"grad" , "/services/students" ), FOUR_HOURS )
@@ -99,12 +99,12 @@ def test_get_cache_time(self):
99
99
self .assertEqual (cache .get_cache_expiration_time (
100
100
"mailman" , "/uw_list_manager/api/v1/list/" , status = 404 ), 60 * 7 )
101
101
self .assertEqual (cache .get_cache_expiration_time (
102
- "mailman" , "/uw_list_manager/api/v1/list/" , status = 500 ), 60 * 15 )
102
+ "mailman" , "/uw_list_manager/api/v1/list/" , status = 500 ), 60 * 7 )
103
103
104
104
self .assertEqual (cache .get_cache_expiration_time (
105
105
"uwidp" , "/idp/profile/oidc/keyset" , status = 404 ), 60 * 7 )
106
106
self .assertEqual (cache .get_cache_expiration_time (
107
- "uwidp" , "/idp/profile/oidc/keyset" , status = 500 ), 60 * 15 )
107
+ "uwidp" , "/idp/profile/oidc/keyset" , status = 500 ), 60 * 7 )
108
108
109
109
110
110
class TestMyUWCache (TestCase ):
0 commit comments