-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added workflow template service #37
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fillout the workflow job template mock data under mockdata dir, from now, it can't pass the tests ( For background: I'm using travis CI previously, but it didn't work anymore, we need to migrate to GitHub Actions to enable the CI tests...):
➜ awx-go git:(feature/workflowtemplates) make test
go: downloading github.com/kylelemons/godebug v1.1.0
go get: upgraded github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 => v1.1.0
>> running all tests
# github.com/Colstuwjx/awx-go [github.com/Colstuwjx/awx-go.test]
./workflow_template_test.go:180:5: unknown field 'UnifiedWorkflowJobTemplate' in struct literal of type Related
./workflow_template_test.go:186:5: unknown field 'WorkflowJobTemplate' in struct literal of type Related
./workflow_template_test.go:193:5: unknown field 'WorkflowJobTemplate' in struct literal of type Summary
./workflow_template_test.go:223:5: unknown field 'UnifiedWorkflowJobTemplate' in struct literal of type Summary
./workflow_template_test.go:300:4: unknown field 'UnifiedWorkflowJobTemplate' in struct literal of type WorkflowJobLaunch
./workflow_template_test.go:314:4: unknown field 'WorkflowJobTemplate' in struct literal of type WorkflowJobLaunch
./workflow_template_test.go:460:4: unknown field 'JobType' in struct literal of type WorkflowJobTemplate
./workflow_template_test.go:462:4: unknown field 'Project' in struct literal of type WorkflowJobTemplate
./workflow_template_test.go:463:4: unknown field 'Playbook' in struct literal of type WorkflowJobTemplate
./workflow_template_test.go:464:4: unknown field 'Forks' in struct literal of type WorkflowJobTemplate
./workflow_template_test.go:464:4: too many errors
FAIL github.com/Colstuwjx/awx-go [build failed]
? github.com/Colstuwjx/awx-go/awxtesting/mockserver [no test files]
? github.com/Colstuwjx/awx-go/awxtesting/mockserver/mockdata [no test files]
FAIL
make: *** [test] Error 2
Thanks!
Co-authored-by: Jacky Wu <Colstuwjx@gmail.com>
…89/awx-go into feature/workflowtemplates
Working on test for wkflowtemplates, just need to find a good api response from awx |
Adding support for WorkflowJob Templates