Beispiel #1
0
        public async Task CreatesRealmAsync()
        {
            var result = await _createSample.CreateRealmAsync(
                _fixture.ProjectId, _fixture.RegionId, _realmId);

            Assert.Equal(_fixture.ProjectId, result.RealmName.ProjectId);
            Assert.Equal(_fixture.RegionId, result.RealmName.LocationId);
            Assert.Equal(_realmId, result.RealmName.RealmId);
        }
    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);
    }
Beispiel #3
0
 public async Task InitializeAsync()
 {
     await _createSample.CreateRealmAsync(
         _fixture.ProjectId, _fixture.RegionId,
         _realmId);
 }