test: Replace SkipIfRunningCE with SkipIfNotLicensed
Summary
This MR replaces the SkipIfRunningCE function with SkipIfNotLicensed to fix a problem where the docker-compose.yml only spins up gitlab-ee containers, making the CE check ineffective.
Changes
-
Removed:
SkipIfRunningCEandIsRunningInEEContextfunctions -
Added:
SkipIfNotLicensedandHasPremiumOrUltimateLicensefunctions
The new implementation:
- Uses the License API (
client.License.GetLicense()) to check the actual license status - Checks if the plan is either "premium" or "ultimate" (case insensitive)
- Caches the result to avoid repeated API calls
- Gracefully handles cases where no license is installed (treats as unlicensed)
This approach is more reliable as it checks the actual license status rather than just the edition type.