Add acceptance test for project-create and project-delete
This commit is contained in:
parent
8b5c5385c7
commit
7148304344
1 changed files with 12 additions and 0 deletions
12
acceptance/testdata/project/project-create-delete.txtar
vendored
Normal file
12
acceptance/testdata/project/project-create-delete.txtar
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Create a project
|
||||
exec gh project create --owner=$ORG --title='acceptance-test-project-title'
|
||||
|
||||
# Confirm the project has been created and get the project number
|
||||
exec gh project list --owner=$ORG --format=json --jq='.projects[] | select(.title == "acceptance-test-project-title") | .number'
|
||||
stdout2env PROJECT_NUMBER
|
||||
|
||||
# Delete the project
|
||||
exec gh project delete --owner=$ORG $PROJECT_NUMBER
|
||||
|
||||
# Confirm the project has been deleted
|
||||
! exec gh project view --owner=$ORG $PROJECT_NUMBER
|
||||
Loading…
Add table
Add a link
Reference in a new issue