@@ -58,6 +58,7 @@ func TestTelemetry(t *testing.T) {
58
58
sourceExampleID := uuid .NewString ()
59
59
_ = dbgen .TemplateVersion (t , db , database.TemplateVersion {
60
60
SourceExampleID : sql.NullString {String : sourceExampleID , Valid : true },
61
+ OrganizationID : org .ID ,
61
62
})
62
63
_ = dbgen .TemplateVersion (t , db , database.TemplateVersion {
63
64
OrganizationID : org .ID ,
@@ -139,6 +140,19 @@ func TestTelemetry(t *testing.T) {
139
140
})
140
141
require .Equal (t , tvs [0 ].SourceExampleID , & sourceExampleID )
141
142
require .Nil (t , tvs [1 ].SourceExampleID )
143
+
144
+ for _ , entity := range snapshot .Workspaces {
145
+ require .Equal (t , entity .OrganizationID , org .ID )
146
+ }
147
+ for _ , entity := range snapshot .ProvisionerJobs {
148
+ require .Equal (t , entity .OrganizationID , org .ID )
149
+ }
150
+ for _ , entity := range snapshot .TemplateVersions {
151
+ require .Equal (t , entity .OrganizationID , org .ID )
152
+ }
153
+ for _ , entity := range snapshot .Templates {
154
+ require .Equal (t , entity .OrganizationID , org .ID )
155
+ }
142
156
})
143
157
t .Run ("HashedEmail" , func (t * testing.T ) {
144
158
t .Parallel ()
0 commit comments