Skip to content

Commit

Permalink
fixed incorrect names
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Nov 11, 2024
1 parent f13f083 commit a1c5c0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/gcp/test/test_filestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ def test_gcp_filestore_backup(random_builder: GraphBuilder) -> None:
with open(os.path.dirname(__file__) + "/files/filestore_backup.json") as f:
GcpFilestoreBackup.collect(raw=json.load(f)["backups"], builder=random_builder)

functions = random_builder.nodes(clazz=GcpFilestoreBackup)
assert len(functions) == 1
backups = random_builder.nodes(clazz=GcpFilestoreBackup)
assert len(backups) == 1


def test_gcp_filestore_instance(random_builder: GraphBuilder) -> None:
with open(os.path.dirname(__file__) + "/files/filestore_instance.json") as f:
GcpFilestoreInstance.collect(raw=json.load(f)["instances"], builder=random_builder)

functions = random_builder.nodes(clazz=GcpFilestoreInstance)
assert len(functions) == 1
instances = random_builder.nodes(clazz=GcpFilestoreInstance)
assert len(instances) == 1


def test_gcp_filestore_instance_snapshot(random_builder: GraphBuilder) -> None:
with open(os.path.dirname(__file__) + "/files/filestore_instance_snapshot.json") as f:
GcpFilestoreInstanceSnapshot.collect(raw=json.load(f)["snapshots"], builder=random_builder)

functions = random_builder.nodes(clazz=GcpFilestoreInstanceSnapshot)
assert len(functions) == 1
snapshots = random_builder.nodes(clazz=GcpFilestoreInstanceSnapshot)
assert len(snapshots) == 1

0 comments on commit a1c5c0f

Please sign in to comment.