@@ -78,16 +78,18 @@ func TestGetLicense(t *testing.T) {
78
78
defer cancel ()
79
79
80
80
coderdenttest .AddLicense (t , client , coderdenttest.LicenseOptions {
81
- AccountID : "testing" ,
82
- AuditLog : true ,
83
- SCIM : true ,
81
+ AccountID : "testing" ,
82
+ AuditLog : true ,
83
+ SCIM : true ,
84
+ BrowserOnly : true ,
84
85
})
85
86
86
87
coderdenttest .AddLicense (t , client , coderdenttest.LicenseOptions {
87
- AccountID : "testing2" ,
88
- AuditLog : true ,
89
- SCIM : true ,
90
- UserLimit : 200 ,
88
+ AccountID : "testing2" ,
89
+ AuditLog : true ,
90
+ SCIM : true ,
91
+ BrowserOnly : true ,
92
+ UserLimit : 200 ,
91
93
})
92
94
93
95
licenses , err := client .Licenses (ctx )
@@ -96,16 +98,18 @@ func TestGetLicense(t *testing.T) {
96
98
assert .Equal (t , int32 (1 ), licenses [0 ].ID )
97
99
assert .Equal (t , "testing" , licenses [0 ].Claims ["account_id" ])
98
100
assert .Equal (t , map [string ]interface {}{
99
- codersdk .FeatureUserLimit : json .Number ("0" ),
100
- codersdk .FeatureAuditLog : json .Number ("1" ),
101
- codersdk .FeatureSCIM : json .Number ("1" ),
101
+ codersdk .FeatureUserLimit : json .Number ("0" ),
102
+ codersdk .FeatureAuditLog : json .Number ("1" ),
103
+ codersdk .FeatureSCIM : json .Number ("1" ),
104
+ codersdk .FeatureBrowserOnly : json .Number ("1" ),
102
105
}, licenses [0 ].Claims ["features" ])
103
106
assert .Equal (t , int32 (2 ), licenses [1 ].ID )
104
107
assert .Equal (t , "testing2" , licenses [1 ].Claims ["account_id" ])
105
108
assert .Equal (t , map [string ]interface {}{
106
- codersdk .FeatureUserLimit : json .Number ("200" ),
107
- codersdk .FeatureAuditLog : json .Number ("1" ),
108
- codersdk .FeatureSCIM : json .Number ("1" ),
109
+ codersdk .FeatureUserLimit : json .Number ("200" ),
110
+ codersdk .FeatureAuditLog : json .Number ("1" ),
111
+ codersdk .FeatureSCIM : json .Number ("1" ),
112
+ codersdk .FeatureBrowserOnly : json .Number ("1" ),
109
113
}, licenses [1 ].Claims ["features" ])
110
114
})
111
115
}
0 commit comments