feat: release 2.7.0-rc2
This commit is contained in:
@@ -29,4 +29,23 @@ describe("build protocol", () => {
|
||||
expect(isSha256Digest(`sha256:${"F".repeat(64)}`)).toBe(false);
|
||||
expect(() => assertSha256Digest("sha256:short")).toThrow("Invalid SHA-256");
|
||||
});
|
||||
|
||||
test("round-trips an explicit buildpacks builder without changing protocol version", () => {
|
||||
const request: BuildRequest = {
|
||||
version: BUILD_PROTOCOL_VERSION,
|
||||
id: "cnb-build",
|
||||
project: "demo",
|
||||
service: "web",
|
||||
spec: {
|
||||
builder: "buildpacks",
|
||||
architecture: "arm64",
|
||||
image: "registry.example/demo/web:latest",
|
||||
context: ".",
|
||||
buildArgs: [],
|
||||
workspace: `sha256:${"a".repeat(64)}`,
|
||||
},
|
||||
};
|
||||
expect(JSON.parse(JSON.stringify(request))).toEqual(request);
|
||||
expect(request.version).toBe(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user