xtf-cz / xtf

MIT License
12 stars 55 forks source link

Replace load().get() with load().item() #564

Open mchoma opened 7 months ago

mchoma commented 7 months ago

According to https://github.com/fabric8io/kubernetes-client/blob/c05ac82eff1f3faf5f8353ed3022133696c2683e/CHANGELOG.md#L294-L301

Fix #4574: fromServer has been deprecated - it no longer needs to be called. All get() operations will fetch the resource(s) from the api server. If you need the context item that was passed in from a resource, load, or resourceList methods, use the item or items method.

Since 6.4.0 .get() may be replaced with load() in https://github.com/xtf-cz/xtf/blame/master/core/src/main/java/cz/xtf/core/openshift/OpenShift.java#L1196

We do not use exactly that method in our testsuite, so I can't prepare fix for it.