Skip to content
Closed
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 src/config/supportedRuntimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const supportedRuntimesArchitecture = {
"python3.12": [ARM64, X86_64],
"ruby2.7": [ARM64, X86_64],
"ruby3.2": [ARM64, X86_64],
"ruby3.3": [ARM64, X86_64],
java8: [X86_64],
"java8.al2": [ARM64, X86_64],
java11: [ARM64, X86_64],
Expand Down Expand Up @@ -69,7 +70,7 @@ export const supportedPython = new Set([
])

// RUBY
export const supportedRuby = new Set(["ruby2.7", "ruby3.2"])
export const supportedRuby = new Set(["ruby2.7", "ruby3.2", "ruby3.3"])

export const supportedRuntimes = new Set([
// ...supportedDotnetcore,
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/docker/ruby/ruby3.2/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service: docker-ruby-3-2-tests
service: docker-ruby-3-3-tests

configValidationMode: error
deprecationNotificationMode: error
Expand All @@ -12,7 +12,7 @@ provider:
memorySize: 1024
name: aws
region: us-east-1
runtime: ruby3.2
runtime: ruby3.3
stage: dev
versionFunctions: false

Expand Down
39 changes: 39 additions & 0 deletions tests/integration/docker/ruby/ruby3.3/dockerRuby3.3.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import assert from "node:assert"
import { env } from "node:process"
import { join } from "desm"
import { setup, teardown } from "../../../../_testHelpers/index.js"
import { BASE_URL } from "../../../../config.js"

describe("Ruby 3.3 with Docker tests", function desc() {
beforeEach(() =>
setup({
servicePath: join(import.meta.url),
}),
)

afterEach(() => teardown())

//
;[
{
description: "should work with ruby3.3 in docker container",
expected: {
message: "Hello Ruby 3.3!",
},
path: "/dev/hello",
},
].forEach(({ description, expected, path }) => {
it(description, async function it() {
// "Could not find 'Docker', skipping tests."
if (!env.DOCKER_DETECTED) {
this.skip()
}

const url = new URL(path, BASE_URL)
const response = await fetch(url)
const json = await response.json()

assert.equal(json.message, expected.message)
})
})
})
Loading