Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaelabalutoiu committed Oct 19, 2023
1 parent f09e1be commit b11b1e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/integration/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ func GetControllerInfo() *params.ControllerInfo {
return &controllerInfo
}

func ListInstances() *params.Instances {
log.Println("List instances>>>>>>>>")
instances, err := listInstances(cli, authToken)
if err != nil {
panic(err)
}
if err := printJsonResponse(instances); err != nil {
panic(err)
}
return &instances
}

func GracefulCleanup() {
// disable all the pools
pools, err := listPools(cli, authToken)
Expand Down
2 changes: 2 additions & 0 deletions test/integration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func main() {

orgPool := e2e.CreateOrgPool(org.ID, orgPoolParams)
orgPool = e2e.GetOrgPool(org.ID, orgPool.ID)
e2e.ListInstances()
e2e.DeleteOrgPool(org.ID, orgPool.ID)

orgPool = e2e.CreateOrgPool(org.ID, orgPoolParams)
Expand All @@ -125,6 +126,7 @@ func main() {
///////////////
e2e.WaitRepoRunningIdleInstances(repo.ID, 6*time.Minute)
e2e.WaitOrgRunningIdleInstances(org.ID, 6*time.Minute)
e2e.ListInstances()

//////////
// jobs //
Expand Down

0 comments on commit b11b1e0

Please sign in to comment.