Skip to content

Commit

Permalink
Added New Testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
architmallik7 committed Dec 19, 2024
1 parent 0fa6774 commit 79b9d87
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 1 deletion.
2 changes: 1 addition & 1 deletion convert/drone/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

func TestConvert(t *testing.T) {
tests, err := filepath.Glob("testdata/examples/*.yaml")
tests, err := filepath.Glob("testdatav1/examples/*.yaml")
if err != nil {
t.Error(err)
return
Expand Down
23 changes: 23 additions & 0 deletions convert/drone/testdatav1/examples/drone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
kind: pipeline
type: docker
name: default

steps:
- name: backend
image: golang
environment:
PLUGIN_LOG_LEVEL: info
PLUGIN_ARTIFACT_REGION: us-east-1
PLUGIN_ARTIFACT_BUCKET_NAME: unified-versioning-bucket
commands:
- go build
- go test

- name: frontend
image: node
commands:
- npm install
- npm run test

...
25 changes: 25 additions & 0 deletions convert/drone/testdatav1/examples/drone.yaml.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pipeline:
stages:
- clone:
disabled: true
name: default
runtime: machine
steps:
- name: backend
run:
container:
image: golang
env:
PLUGIN_ARTIFACT_BUCKET_NAME: unified-versioning-bucket
PLUGIN_ARTIFACT_REGION: us-east-1
PLUGIN_LOG_LEVEL: info
script: |-
go build
go test
- name: frontend
run:
container:
image: node
script: |-
npm install
npm run test
19 changes: 19 additions & 0 deletions convert/drone/testdatav1/examples/step.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
kind: pipeline
type: docker
name: default

steps:
- name: backend
image: golang
commands:
- go build
- go test

- name: frontend
image: node
commands:
- npm install
- npm run test

...
21 changes: 21 additions & 0 deletions convert/drone/testdatav1/examples/step.yaml.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pipeline:
stages:
- clone:
disabled: true
name: default
runtime: machine
steps:
- name: backend
run:
container:
image: golang
script: |-
go build
go test
- name: frontend
run:
container:
image: node
script: |-
npm install
npm run test

0 comments on commit 79b9d87

Please sign in to comment.