List tokens of a client
Change-Id: Ib4752a9f4fc502f79fefd870857405634ef5ebb9
diff --git a/t/plugin/auth-oauth.t b/t/plugin/auth-oauth.t
index adb7378..4f0d67a 100644
--- a/t/plugin/auth-oauth.t
+++ b/t/plugin/auth-oauth.t
@@ -556,11 +556,12 @@
name => 'MyApp2',
'client-id' => 'fCBbQkA2NDA3MzM1Yw=='
})
- ->status_is(200)
- ->attr_is('input[name=access_token]', 'value', 'jvgjbvjgzucgdwuiKHJK')
- ->text_is('p[name=expires] tt', '31536000')
- ->text_is('p[name=scope] tt', 'match_info search openid')
- ->text_is('p[name=type] tt', 'Bearer')
+ ->status_is(302)
+ ->header_is('Location','/settings/oauth/client/fCBbQkA2NDA3MzM1Yw==')
+ ;
+
+$t->get_ok('/settings/oauth/client/fCBbQkA2NDA3MzM1Yw==')
+ ->text_is('div.notify-success', 'New access token created')
;