@@ -35,11 +35,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
3535 command = "install",
3636 candidate = "java",
3737 version = "17.0.2-open",
38- platform = "linuxx64",
38+ clientPlatform = "LINUX_X64 ",
39+ candidatePlatform = "LINUX_X64 ",
3940 distribution = Some ("openjdk"),
4041 host = Some ("test-host"),
4142 agent = Some ("test-agent"),
42- dist = "LINUX_X64 ",
4343 timestamp = Clock .System .now()
4444 )
4545
@@ -54,11 +54,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
5454 record[AuditTable .command] shouldBe audit.command
5555 record[AuditTable .candidate] shouldBe audit.candidate
5656 record[AuditTable .version] shouldBe audit.version
57- record[AuditTable .platform] shouldBe audit.platform
57+ record[AuditTable .clientPlatform] shouldBe audit.clientPlatform
58+ record[AuditTable .candidatePlatform] shouldBe audit.candidatePlatform
5859 record[AuditTable .distribution] shouldBe audit.distribution.getOrNull()
5960 record[AuditTable .host] shouldBe audit.host.getOrNull()
6061 record[AuditTable .agent] shouldBe audit.agent.getOrNull()
61- record[AuditTable .dist] shouldBe audit.dist
6262 }
6363 }
6464
@@ -70,11 +70,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
7070 command = "install",
7171 candidate = "java",
7272 version = "17.0.2-open",
73- platform = "linux64",
73+ clientPlatform = "LINUX_X64 ",
74+ candidatePlatform = "LINUX_X64 ",
7475 distribution = None ,
7576 host = Some ("test-host"),
7677 agent = Some ("test-agent"),
77- dist = "test-dist",
7878 timestamp = Clock .System .now()
7979 )
8080
@@ -98,11 +98,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
9898 command = "install",
9999 candidate = "java",
100100 version = "17.0.2-open",
101- platform = "linux64",
101+ clientPlatform = "LINUX_X64 ",
102+ candidatePlatform = "LINUX_X64 ",
102103 distribution = Some ("openjdk"),
103104 host = None ,
104105 agent = Some ("test-agent"),
105- dist = "test-dist",
106106 timestamp = Clock .System .now()
107107 )
108108
@@ -125,11 +125,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
125125 command = "install",
126126 candidate = "java",
127127 version = "17.0.2-open",
128- platform = "linux64",
128+ clientPlatform = "LINUX_X64 ",
129+ candidatePlatform = "LINUX_X64 ",
129130 distribution = Some ("openjdk"),
130131 host = Some ("test-host"),
131132 agent = None ,
132- dist = "test-dist",
133133 timestamp = Clock .System .now()
134134 )
135135
@@ -151,11 +151,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
151151 command = "list",
152152 candidate = "kotlin",
153153 version = "1.9.22",
154- platform = "linux64",
154+ clientPlatform = "LINUX_X64 ",
155+ candidatePlatform = "LINUX_X64 ",
155156 distribution = Some ("jetbrains"),
156157 host = Some ("test-host"),
157158 agent = Some ("test-agent"),
158- dist = "test-dist",
159159 timestamp = Clock .System .now()
160160 )
161161
@@ -168,7 +168,7 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
168168 database = database,
169169 candidate = audit.candidate,
170170 version = audit.version,
171- platform = audit.platform
171+ platform = audit.clientPlatform
172172 )
173173
174174 savedRecord shouldBeSomeAnd { record ->
@@ -191,11 +191,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
191191 command = "install",
192192 candidate = "java",
193193 version = "17.0.2-open",
194- platform = "linux64",
194+ clientPlatform = "LINUX_X64 ",
195+ candidatePlatform = "LINUX_X64 ",
195196 distribution = None ,
196197 host = Some ("test-host"),
197198 agent = Some ("test-agent"),
198- dist = "test-dist",
199199 timestamp = Clock .System .now()
200200 )
201201
@@ -218,11 +218,11 @@ class PostgresAuditRepositoryIntegrationSpec : ShouldSpec({
218218 command = "install",
219219 candidate = "java",
220220 version = "17.0.2-open",
221- platform = "linux64",
221+ clientPlatform = "LINUX_X64 ",
222+ candidatePlatform = "LINUX_X64 ",
222223 distribution = None ,
223224 host = Some ("test-host"),
224225 agent = Some ("test-agent"),
225- dist = "test-dist",
226226 timestamp = Clock .System .now()
227227 )
228228
0 commit comments