mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 16:11:48 -05:00
feat(lambdaweb): fail a revision whose code is not a zip (#6141)
* feat(lambdaweb): fail a revision whose code is not a zip
A revision whose code is not a zip is Failed, as on AWS, and cannot be
deployed. The endpoint CreateWebFunction makes on such a revision is
Failed too and answers 409 Platform.EndpointNotActive. An empty object
is a 500 InternalServerException with an empty body, as on AWS.
* fix(lambdaweb): remove a code copy that cannot be read and name the {} body
* test(lambdaweb): upload a real zip in the compatibility tests
This commit is contained in:
1 parent
7c202a8966
commit
62972c91bf
21 files changed
+466
-33
No files matched your search
@@ -56,7 +56,7 @@ class LambdaWebTest {
|
||||
s3 = TestFixtures.s3Client();
|
||||
bucket = TestFixtures.uniqueName("sdk-test-web-code");
|
||||
s3.createBucket(r -> r.bucket(bucket));
|
||||
s3.putObject(r -> r.bucket(bucket).key("app.zip"), RequestBody.fromString("zip"));
|
||||
s3.putObject(r -> r.bucket(bucket).key("app.zip"), RequestBody.fromBytes(LambdaUtils.minimalZip()));
|
||||
}
|
||||
|
||||
/** Only "already gone" is tolerated; any other failure to clean up fails the run. */
|
||||
|
||||
Reference in new issue
Block a user