|
120 | 120 | end |
121 | 121 |
|
122 | 122 | @testset "logartifact_error" begin |
123 | | - @test_broken logartifact(mlf, r, "/etc/shadow") |
| 123 | + @test_broken logartifact(mlf, r, "/etc/misina") |
124 | 124 | end |
125 | 125 |
|
126 | 126 | deleteexperiment(mlf, e) |
@@ -167,20 +167,29 @@ end |
167 | 167 | runname = "run-$(UUIDs.uuid4())" |
168 | 168 | r = createrun(mlf, e.experiment_id) |
169 | 169 |
|
| 170 | + tempfilename = "./mlflowclient-tempfile.txt" |
| 171 | + |
| 172 | + open(tempfilename, "w") do file |
| 173 | + write(file, "Hello, world!\n") |
| 174 | + end |
| 175 | + |
| 176 | + logartifact(mlf, r, tempfilename) |
| 177 | + |
170 | 178 | @testset "listartifacts_by_run_id" begin |
171 | 179 | artifacts = listartifacts(mlf, r.info.run_id) |
172 | | - @test length(artifacts) == 0 |
| 180 | + @test length(artifacts) == 1 |
173 | 181 | end |
174 | 182 |
|
175 | 183 | @testset "listartifacts_by_run" begin |
176 | 184 | artifacts = listartifacts(mlf, r) |
177 | | - @test length(artifacts) == 0 |
| 185 | + @test length(artifacts) == 1 |
178 | 186 | end |
179 | 187 |
|
180 | 188 | @testset "listartifacts_by_run_info" begin |
181 | 189 | artifacts = listartifacts(mlf, r.info) |
182 | | - @test length(artifacts) == 0 |
| 190 | + @test length(artifacts) == 1 |
183 | 191 | end |
184 | 192 |
|
| 193 | + rm(tempfilename) |
185 | 194 | deleteexperiment(mlf, e) |
186 | 195 | end |
0 commit comments