Update data platform tests
This commit is contained in:
parent
aaf97110c1
commit
99e69e319f
|
@ -289,3 +289,16 @@ Features to add in future releases:
|
||||||
- Add example on how to use Cloud Data Loss Prevention
|
- Add example on how to use Cloud Data Loss Prevention
|
||||||
- Add solution to handle Tables, Views, and Authorized Views lifecycle
|
- Add solution to handle Tables, Views, and Authorized Views lifecycle
|
||||||
- Add solution to handle Metadata lifecycle
|
- Add solution to handle Metadata lifecycle
|
||||||
|
|
||||||
|
## Test
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
module "test" {
|
||||||
|
source = "./fabric/blueprints/data-solutions/data-platform-foundations/"
|
||||||
|
organization_domain = "example.com"
|
||||||
|
billing_account_id = "123456-123456-123456"
|
||||||
|
folder_id = "folders/12345678"
|
||||||
|
prefix = "prefix"
|
||||||
|
}
|
||||||
|
# tftest modules=43 resources=297
|
||||||
|
```
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
# Copyright 2022 Google LLC
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
|
@ -1,25 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright 2022 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
module "test" {
|
|
||||||
source = "../../../../../blueprints/data-solutions/data-platform-foundations/"
|
|
||||||
organization_domain = "example.com"
|
|
||||||
project_config = {
|
|
||||||
billing_account_id = "123456-123456-123456"
|
|
||||||
parent = "folders/12345678"
|
|
||||||
}
|
|
||||||
prefix = "prefix"
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
# Copyright 2022 Google LLC
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
import os
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixture')
|
|
||||||
|
|
||||||
|
|
||||||
def test_resources(e2e_plan_runner):
|
|
||||||
"Test that plan works and the numbers of resources is as expected."
|
|
||||||
modules, resources = e2e_plan_runner(FIXTURES_DIR)
|
|
||||||
|
|
||||||
assert len(modules) == 42
|
|
||||||
assert len(resources) == 277
|
|
Loading…
Reference in New Issue