public async Task InitializeAsync()
 {
     await _createDeploymentSample.CreateDeploymentAsync(
             _fixture.ProjectId, _deploymentId);
     await _createConfigSample.CreateConfigAsync(
             _fixture.ProjectId, _fixture.RegionId, _deploymentId,
             _configId);
 }
示例#2
0
        public async Task CreatesDeploymentAsync()
        {
            var result = await _createSample.CreateDeploymentAsync(
                _fixture.ProjectId, _deploymentId);

            Assert.Equal(_fixture.ProjectId, result.GameServerDeploymentName.ProjectId);
            Assert.Equal("global", result.GameServerDeploymentName.LocationId);
            Assert.Equal(_deploymentId, result.GameServerDeploymentName.DeploymentId);
        }
示例#3
0
        public async Task InitializeAsync()
        {
            await _createDeploymentSample.CreateDeploymentAsync(
                _fixture.ProjectId, _deploymentId);

            await _createConfigSample.CreateConfigAsync(
                _fixture.ProjectId, _fixture.RegionId, _deploymentId,
                _configId);

            await _updateAddOverrideSample.UpdateRolloutOverrideConfigAsync(_fixture.ProjectId, _deploymentId, _configId, _fixture.RegionId, _fixture.TestRealmId);
        }
    public async Task InitializeAsync()
    {
        TestRealmId = $"{RealmIdPrefix}-{RandomId()}";
        RealmIds.Add(TestRealmId);
        TestRealm = await _createRealmSample.CreateRealmAsync(ProjectId, RegionId, TestRealmId);

        TestDeploymentId = $"{DeploymentIdPrefix}-{RandomId()}";
        DeploymentIds.Add(TestDeploymentId);
        TestDeployment = await _createDeploymentSample.CreateDeploymentAsync(ProjectId, TestDeploymentId);

        TestClusterId = $"{ClusterIdPrefix}-{RandomId()}";
        ClusterIdentifiers.Add(new ClusterIdentifier(TestRealmId, TestClusterId));
        TestCluster = await _createClusterSample.CreateClusterAsync(ProjectId, RegionId, TestRealmId,
                                                                    TestClusterId, GkeClusterName);

        TestConfigId = $"{ConfigIdPrefix}-{RandomId()}";
        ConfigIdentifiers.Add(new ConfigIdentifier(TestDeploymentId, TestConfigId));
        TestConfig = await _createConfigSample.CreateConfigAsync(ProjectId, RegionId, TestDeploymentId, TestConfigId);
    }
示例#5
0
 public async Task InitializeAsync()
 {
     await _createSample.CreateDeploymentAsync(
         _fixture.ProjectId, _deploymentId);
 }