Skip to content

Commit

Permalink
Switch out ruby for dockerfile in tests
Browse files Browse the repository at this point in the history
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) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Jan 23, 2025
1 parent 2ad875c commit 3831ce7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/new_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func Test_languageNotExists(t *testing.T) {

func Test_appendInvalidSuffix(t *testing.T) {
const functionName = "samplefunc"
const functionLang = "ruby"
const functionLang = "dockerfile"

templatePullLocalTemplateRepo(t)
defer tearDownFetchTemplates(t)
Expand All @@ -294,7 +294,7 @@ func Test_appendInvalidSuffix(t *testing.T) {

func Test_appendInvalidFile(t *testing.T) {
const functionName = "samplefunc"
const functionLang = "ruby"
const functionLang = "dockerfile"

templatePullLocalTemplateRepo(t)
defer tearDownFetchTemplates(t)
Expand All @@ -318,7 +318,7 @@ func Test_duplicateFunctionName(t *testing.T) {
resetForTest()

const functionName = "samplefunc"
const functionLang = "ruby"
const functionLang = "dockerfile"

templatePullLocalTemplateRepo(t)
defer tearDownFetchTemplates(t)
Expand Down Expand Up @@ -346,7 +346,7 @@ func Test_duplicateFunctionName(t *testing.T) {
func Test_backfillTemplates(t *testing.T) {
resetForTest()
const functionName = "samplefunc"
const functionLang = "ruby"
const functionLang = "dockerfile"

// Delete cached templates
localTemplateRepository := setupLocalTemplateRepo(t)
Expand Down

0 comments on commit 3831ce7

Please sign in to comment.