CI: Pull_Image_from_Registry(): harmonize code

- pass parameter directly instead of indirectly via class
- call it simply "images", to harmonize with clean-function later
- harmonize to svr_id as in the previous commit
- rewrite function to use with-statement with cls_cmd
- optionally pass a tag to use (which will be used in a test, and can be
  used to pull flexric)
- Introduce Pull_Image() which does the actual pulling, can pull from
  any registry, and will be reused in the case of pulling from cluster.
This commit is contained in:
Robert Schmidt
2024-11-25 15:33:41 +01:00
parent a48728ba35
commit dee9ce26db
43 changed files with 123 additions and 130 deletions
@@ -57,15 +57,15 @@
<testCase id="111110">
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<test_svr_id>0</test_svr_id>
<images_to_pull>oai-enb</images_to_pull>
<svr_id>0</svr_id>
<images>oai-enb</images>
</testCase>
<testCase id="111111">
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<test_svr_id>1</test_svr_id>
<images_to_pull>oai-gnb</images_to_pull>
<svr_id>1</svr_id>
<images>oai-gnb</images>
</testCase>
<testCase id = "100000">