public void ReceptionistFlow_connects_to_local_deployment_by_default() { var receptionistFlow = new ReceptionistFlow("My-Worker-Id"); Assert.DoesNotThrow(() => connection = receptionistFlow.CreateAsync(GetConnectionParameters()).Result); Assert.AreEqual(ConnectionStatusCode.Success, connection.GetConnectionStatusCode()); }
public void LocatorFlow_dev_auth_works_with_tagged_depl() { using (var depl = spatiald.StartLocalDeployment("test", "default_launch.json").Result) { depl.AddDevLoginTag().Wait(); var flow = GetLocatorFlow(); flow.DevAuthToken = DevAuthTokenUtils.DevAuthToken; Assert.DoesNotThrow(() => connection = flow.CreateAsync(GetConnectionParameters()).Result); Assert.AreEqual(ConnectionStatusCode.Success, connection.GetConnectionStatusCode()); } }
public void CreateAsync_succeeds_if_there_is_matching_deployment() { using (var depl = spatiald.StartLocalDeployment("target_deployment", LaunchConfigName).Result) { depl.AddDevLoginTag().Wait(); var flow = GetFlow("target_deployment"); flow.DevAuthToken = DevAuthTokenUtils.DevAuthToken; Assert.DoesNotThrow(() => connection = flow.CreateAsync(GetConnectionParameters()).Result); Assert.AreEqual(ConnectionStatusCode.Success, connection.GetConnectionStatusCode()); } }