use of org.gradle.testkit.runner.BuildResult in project spring-boot by spring-projects.
the class PackagingDocumentationTests method bootBuildImageWithBuilder.
@TestTemplate
void bootBuildImageWithBuilder() {
BuildResult result = this.gradleBuild.script("src/docs/gradle/packaging/boot-build-image-builder").build("bootBuildImageBuilder");
assertThat(result.getOutput()).contains("builder=mine/java-cnb-builder").contains("runImage=mine/java-cnb-run");
}
use of org.gradle.testkit.runner.BuildResult in project spring-boot by spring-projects.
the class PackagingDocumentationTests method bootBuildImageWithDockerUserAuth.
@TestTemplate
void bootBuildImageWithDockerUserAuth() {
BuildResult result = this.gradleBuild.script("src/docs/gradle/packaging/boot-build-image-docker-auth-user").build("bootBuildImageDocker");
assertThat(result.getOutput()).contains("username=user").contains("password=secret").contains("url=https://docker.example.com/v1/").contains("email=user@example.com");
}
use of org.gradle.testkit.runner.BuildResult in project spring-boot by spring-projects.
the class PackagingDocumentationTests method bootBuildImageWithDockerHost.
@TestTemplate
void bootBuildImageWithDockerHost() {
BuildResult result = this.gradleBuild.script("src/docs/gradle/packaging/boot-build-image-docker-host").build("bootBuildImageDocker");
assertThat(result.getOutput()).contains("host=tcp://192.168.99.100:2376").contains("tlsVerify=true").contains("certPath=/home/users/.minikube/certs");
}
use of org.gradle.testkit.runner.BuildResult in project spring-boot by spring-projects.
the class PackagingDocumentationTests method bootBuildImageWithCustomBuildpackJvmVersion.
@TestTemplate
void bootBuildImageWithCustomBuildpackJvmVersion() {
BuildResult result = this.gradleBuild.script("src/docs/gradle/packaging/boot-build-image-env").build("bootBuildImageEnvironment");
assertThat(result.getOutput()).contains("BP_JVM_VERSION=8.*");
}
use of org.gradle.testkit.runner.BuildResult in project spring-boot by spring-projects.
the class PackagingDocumentationTests method bootBuildImageWithCustomImageName.
@TestTemplate
void bootBuildImageWithCustomImageName() {
BuildResult result = this.gradleBuild.script("src/docs/gradle/packaging/boot-build-image-name").build("bootBuildImageName");
assertThat(result.getOutput()).contains("example.com/library/" + this.gradleBuild.getProjectDir().getName());
}
Aggregations