Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

godiaz89
Copy link

@godiaz89 godiaz89 commented Oct 18, 2021

Adding support for WorkflowJob Templates

Copy link
Owner

@Colstuwjx Colstuwjx left a 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!

types.go Outdated Show resolved Hide resolved
@godiaz89
Copy link
Author

Working on test for wkflowtemplates, just need to find a good api response from awx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants