Closed jorchiu closed 1 month ago
Not too sure why the API test failed since the tests in targets/proxy/proxy_test.go
aren't executed.
We also run integration tests. The error is:
time="2024-03-29T20:03:45.673884669Z" level=error msg=" P (Proxy Target): failed to unmarshall apply response: invalid character 'O' looking for beginning of value, traceId: 00000000000000000000000000000000" instance=fv-az1532-254 scope=coa.runtime type=log ver=unknown proxy_test.go:277: Error Trace: /home/runner/work/symphony/symphony/api/pkg/apis/v1alpha1/providers/target/proxy/proxy_test.go:277 Error: Expected nil, but got: &json.SyntaxError{msg:"invalid character 'O' looking for beginning of value", Offset:1} Test: TestProxyUpdateProviderApplyGet
Previously, an HTTP Proxy Target Provider component's summary spec would always return 9998 for its status and an empty message:
The
ret
variable is assigned but never updated in the HTTP Proxy Target Provider: https://github.com/eclipse-symphony/symphony/blob/main/api/pkg/apis/v1alpha1/providers/target/proxy/proxy.go#L163This PR updates
ret
variable in the HTTP Proxy Target Provider according to what the target returns: