public override async Task StartAsync()

in e2etest/GuestProxyAgentTest/TestCases/GuestProxyAgentValidationCase.cs [31:52]


        public override async Task StartAsync(TestCaseExecutionContext context)
        {
            context.TestResultDetails = (await RunScriptViaRunCommandV2Async(context, Constants.GUEST_PROXY_AGENT_VALIDATION_SCRIPT_NAME, null!)).ToTestResultDetails(ConsoleLog);
            if (context.TestResultDetails.Succeed && context.TestResultDetails.CustomOut != null)
            {
                var validationDetails = context.TestResultDetails.SafeDeserializedCustomOutAs<GuestProxyAgentValidationDetails>();
                // check the validation json output, if the guest proxy agent service was installed and runing and guest proxy agent process exists and log was generate,
                // then consider it as succeed, otherwise fail the case.
                if (validationDetails != null
                    && validationDetails.GuestProxyAgentServiceInstalled
                    && validationDetails.GuestProxyAgentServiceStatus.Equals(EXPECTED_GUEST_PROXY_AGENT_SERVICE_STATUS, StringComparison.OrdinalIgnoreCase)
                    && validationDetails.GuestProxyProcessStarted
                    && validationDetails.GuestProxyAgentLogGenerated)
                {
                    context.TestResultDetails.Succeed = true;
                }
                else
                {
                    context.TestResultDetails.Succeed = false;
                }
            }
        }