public override void TestCleanup()
 {
     HDInsightClient.DefaultPollingInterval     = TimeSpan.FromSeconds(1);
     IHadoopClientExtensions.GetPollingInterval = () => 50;
     HDInsightManagementRestSimulatorClient.ResetConnectivityDefaultsAllClusters();
     base.TestCleanup();
 }
        public HadoopJobSubmissionPocoSimulatorClient(BasicAuthCredential connectionCredentials, IAbstractionContext context, string userAgentString)
        {
            this.credentials = connectionCredentials;
            var server = connectionCredentials.Server.Host.Split('.')[0];

            this.cluster         = HDInsightManagementRestSimulatorClient.GetCloudServiceInternal(server);
            this.context         = context;
            this.userAgentString = userAgentString;
            this.InitializeSimulator();
        }
        public Task <OozieSiteConfigurationCollection> GetOozieServiceConfiguration()
        {
            var simulatedContainer = HDInsightManagementRestSimulatorClient.GetCloudServiceInternal(this.credentials.Server.Host.Split('.').First());

            return(Task.FromResult(simulatedContainer.Configuration.Oozie));
        }