Skip to content

Commit ef9c610

Browse files
committed
Switch out ruby for dockerfile in tests
The tests relied on ruby being a long term template in the templates repository, however we are moving to a model with a repository per template, and this template has gone to EOL. The Dockerfile template makes sense as a replacement and is still supported. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 15ae2e3 commit ef9c610

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/new_function_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func Test_languageNotExists(t *testing.T) {
272272

273273
func Test_appendInvalidSuffix(t *testing.T) {
274274
const functionName = "samplefunc"
275-
const functionLang = "ruby"
275+
const functionLang = "dockerfile"
276276

277277
templatePullLocalTemplateRepo(t)
278278
defer tearDownFetchTemplates(t)
@@ -294,7 +294,7 @@ func Test_appendInvalidSuffix(t *testing.T) {
294294

295295
func Test_appendInvalidFile(t *testing.T) {
296296
const functionName = "samplefunc"
297-
const functionLang = "ruby"
297+
const functionLang = "dockerfile"
298298

299299
templatePullLocalTemplateRepo(t)
300300
defer tearDownFetchTemplates(t)
@@ -318,7 +318,7 @@ func Test_duplicateFunctionName(t *testing.T) {
318318
resetForTest()
319319

320320
const functionName = "samplefunc"
321-
const functionLang = "ruby"
321+
const functionLang = "dockerfile"
322322

323323
templatePullLocalTemplateRepo(t)
324324
defer tearDownFetchTemplates(t)
@@ -346,7 +346,7 @@ func Test_duplicateFunctionName(t *testing.T) {
346346
func Test_backfillTemplates(t *testing.T) {
347347
resetForTest()
348348
const functionName = "samplefunc"
349-
const functionLang = "ruby"
349+
const functionLang = "dockerfile"
350350

351351
// Delete cached templates
352352
localTemplateRepository := setupLocalTemplateRepo(t)

0 commit comments

Comments
 (0)