Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion webauthn-server-attestation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ val integrationTest = task<Test>("integrationTest") {
classpath = sourceSets["integrationTest"].runtimeClasspath
shouldRunAfter(tasks.test)
val mdsCacheDir = project.layout.buildDirectory.dir("fido-mds-cache").get().asFile
mdsCacheDir.mkdir()
mdsCacheDir.mkdirs()
environment("FIDO_MDS_CACHE_DIR", mdsCacheDir.absolutePath)
inputs.dir(mdsCacheDir)
}
tasks["check"].dependsOn(integrationTest)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import org.scalatest.tags.Slow
import org.scalatestplus.junit.JUnitRunner

import scala.jdk.CollectionConverters.ListHasAsScala
import scala.util.Success
import scala.util.Try

@Slow
@Network
Expand All @@ -28,16 +26,15 @@ class FidoMetadataDownloaderIntegrationTest
val downloader = cachedDefaultSettingsDownloader.build()

it("downloads and verifies the root cert and BLOB successfully.") {
val blob = Try(TestCaches.cacheSynchronized(downloader.loadCachedBlob))
blob shouldBe a[Success[_]]
blob.get should not be null
val blob = TestCaches.cacheSynchronized(downloader.loadCachedBlob)
blob should not be null
}

it(
"does not encounter any CRLDistributionPoints entries in unknown format."
) {
val blob = Try(TestCaches.cacheSynchronized(downloader.loadCachedBlob))
blob shouldBe a[Success[_]]
val blob = TestCaches.cacheSynchronized(downloader.loadCachedBlob)
blob should not be null
val trustRootCert =
CertificateParser.parseDer(
TestCaches.trustRootCache.get.getBytes
Expand Down Expand Up @@ -86,9 +83,8 @@ class FidoMetadataDownloaderIntegrationTest
.build()

it("downloads and parses the BLOB successfully.") {
val blob = Try(TestCaches.cacheSynchronized(downloader.loadCachedBlob))
blob shouldBe a[Success[_]]
blob.get should not be null
val blob = TestCaches.cacheSynchronized(downloader.loadCachedBlob)
blob should not be null
}
}

Expand Down
Loading