SkipIfVersionLessThan is used to skip tests if the API version >= the specified version. If maxVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used.
(maxVersion string)
| 114 | // SkipIfVersionLessThan is used to skip tests if the API version >= the specified version. If |
| 115 | // maxVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used. |
| 116 | func SkipIfVersionAtLeast(maxVersion string) { |
| 117 | version := matchMajorAPIVersion(maxVersion) |
| 118 | |
| 119 | if IsVersionMet(maxVersion) { |
| 120 | Skip(fmt.Sprintf("maximum version %s exceeded by API version %s", maxVersion, version)) |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | func ignoreAPIVersion() bool { |
| 125 | ignoreEnv := os.Getenv("CF_INT_IGNORE_API_VERSION_CHECK") |
nothing calls this directly
no test coverage detected