From b859a1b67707e95a43e71362791b5962bad002b7 Mon Sep 17 00:00:00 2001
From: Rohith <gambol99@gmail.com>
Date: Fri, 18 Dec 2015 17:02:46 +0000
Subject: [PATCH] - fixing up the tests for now

---
 session_test.go | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/session_test.go b/session_test.go
index c4a7149..65652fc 100644
--- a/session_test.go
+++ b/session_test.go
@@ -46,16 +46,9 @@ func TestGetUserContext(t *testing.T) {
 			"resource_access": map[string]interface{}{
 				"openvpn": map[string]interface{}{
 					"roles": []string{
-						"vpn-user",
 						"dev-vpn",
 					},
 				},
-				"account": map[string]interface{}{
-					"roles": []string{
-						"view-profile",
-						"manage-account",
-					},
-				},
 			},
 			"email": "gambol99@gmail.com",
 			"name": "Rohith Jayawardene",
@@ -77,7 +70,7 @@ func TestGetUserContext(t *testing.T) {
 	assert.Equal(t, "1e11e539-8256-4b3b-bda8-cc0d56cddb48", context.id)
 	assert.Equal(t, "gambol99@gmail.com", context.email)
 	assert.Equal(t, "rjayawardene", context.preferredName)
-	roles := []string{"account:view-profile", "account:manage-account", "openvpn:vpn-user", "openvpn:dev-vpn"}
+	roles := []string{"openvpn:dev-vpn"}
 	if !reflect.DeepEqual(context.roles, roles) {
 		t.Errorf("the claims are not the same, %v <-> %v", context.roles, roles)
 	}
-- 
GitLab