RedHat-SP-Security / tang-operator-tests

Upstream repository for tang-operator test suite
GNU General Public License v3.0
1 stars 1 forks source link

Test execution is modifying runtest.sh #25

Closed sarroutbi closed 1 year ago

sarroutbi commented 1 year ago

After test execution, runtest.sh is modified (it should not be). This change is always taking place:

+[ -n "$TANG_IMAGE" ] || TANG_IMAGE=registry.redhat.io/rhel9/tang

It seems to be related to this part of the code:

useUpstreamImages(){                                                                                                                                                                 
    for yaml_file in $(find . -type f -print)                                                                                                                                        
    do                                                                                                                                                                               
        sed -i "s~\"registry.redhat.io/rhel9/tang\"~$TANG_IMAGE~g" $yaml_file                                                                                                        
    done                                                                                                                                                                             
}   

Extra filtering must be performed to just get yaml files