Fn context, oracle.image-compartment-id is used to specify the compartment id to which the function image is to be deployed.
If the the repository already exists and oracle.image-compartment-id is specified, the deployment will fail if the repository is not present the same compartment id as the image-compartment-id.
There are no tests added to the code due to the lack of testing around the deploy path, in order to write a test, we would have needed to mock multiple clients and change some fundamental properties in the providers code. Instead, we have performed manual testing:
oracle.image-compartment-Id set in fn context
handling of oracle.image-compartment-Id not set (check in the code early on and skips if not set)
setting oracle.image-compartment-Id to COMPA with a repository/image in COMPB - code will error telling use the repo already exists in another compartment
Fn context, oracle.image-compartment-id is used to specify the compartment id to which the function image is to be deployed.
If the the repository already exists and oracle.image-compartment-id is specified, the deployment will fail if the repository is not present the same compartment id as the image-compartment-id.
There are no tests added to the code due to the lack of testing around the deploy path, in order to write a test, we would have needed to mock multiple clients and change some fundamental properties in the providers code. Instead, we have performed manual testing:
oracle.image-compartment-Id
set in fn contextoracle.image-compartment-Id
not set (check in the code early on and skips if not set)oracle.image-compartment-Id
to COMPA with a repository/image in COMPB - code will error telling use the repo already exists in another compartment