-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove IaC for integration tests in favor of Github workflow service
- Loading branch information
Showing
18 changed files
with
394 additions
and
3,829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package api_test | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
"testing" | ||
) | ||
|
||
var ( | ||
CTFD_URL = "" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
u, ok := os.LookupEnv("CTFD_URL") | ||
if !ok { | ||
fmt.Println("Environment variable CTFD is not set, please indicate the domain name/IP address to reach out the cluster.") | ||
os.Exit(1) | ||
} | ||
CTFD_URL = u | ||
|
||
os.Exit(m.Run()) | ||
} | ||
|
||
func ptr[T any](t T) *T { | ||
return &t | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.