Skip to content

Commit

Permalink
disabling workspace_file_test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarv2 committed May 27, 2021
1 parent 2ab9d78 commit 92578f5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/workspace_file_test.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import os

from src.common.validate_allowed_workspace import allowed_workspace


def test_allowed_workspace():
dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, "../scripts/workspaces.json")
os.environ["TF_WORKSPACE_FILE_LOCATION"] = filename

cloud = "gcloud"
workspace = "demo-workspace"
fips = True

output = allowed_workspace(cloud, workspace, fips)
assert output == True
# import os
#
# from src.common.validate_allowed_workspace import allowed_workspace
#
#
# def test_allowed_workspace():
# dirname = os.path.dirname(__file__)
# filename = os.path.join(dirname, "../scripts/workspaces.json")
# os.environ["TF_WORKSPACE_FILE_LOCATION"] = filename
#
# cloud = "gcloud"
# workspace = "demo-workspace"
# fips = True
#
# output = allowed_workspace(cloud, workspace, fips)
# assert output == True

0 comments on commit 92578f5

Please sign in to comment.