mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix configIsReadWithProvidedContext on Windows
See gh-36445
This commit is contained in:
parent
11753c5a72
commit
b02c1877fc
@ -16,11 +16,13 @@
|
||||
|
||||
package org.springframework.boot.buildpack.platform.docker.configuration;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@ -76,7 +78,8 @@ class DockerConfigurationMetadataTests extends AbstractJsonTests {
|
||||
DockerContext context = config.forContext("test-context");
|
||||
assertThat(context.getDockerHost()).isEqualTo("unix:///home/user/.docker/docker.sock");
|
||||
assertThat(context.isTlsVerify()).isTrue();
|
||||
assertThat(context.getTlsPath()).matches("^.*/with-default-context/contexts/tls/[a-zA-z0-9]*/docker$");
|
||||
assertThat(context.getTlsPath()).matches(String.join(Pattern.quote(File.separator), "^.*",
|
||||
"with-default-context", "contexts", "tls", "[a-zA-z0-9]*", "docker$"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user