public async Task CanDescribeSecureSite(string rootUrl, string username, string password) { var gateway = await IntegrationTestFixture.TestPolicy.Execute(() => { return(PortalGateway.Create(rootUrl, username, password)); }); var response = await IntegrationTestFixture.TestPolicy.Execute(() => { return(gateway.DescribeSite()); }); Assert.NotNull(response); Assert.True(response.Version > 0); foreach (var resource in response.ArcGISServerEndpoints.Where(x => !x.RelativeUrl.ToLowerInvariant().Contains("utilities"))) { var ping = await IntegrationTestFixture.TestPolicy.Execute(() => { return(gateway.Ping(resource)); }); Assert.Null(ping.Error); } }