This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(feature.isActive("holiday-greeting")) { | |
print("Happy holidays," + user.name + "!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auth_login { | |
path = "auth/aws/login/" | |
parameters = { | |
role = var.vault_role | |
iam_http_request_method = "POST" | |
iam_request_url = base64encode("https://sts.amazonaws.com/") | |
iam_request_body = base64encode("Action=GetCallerIdentity&Version=2011-06-15") | |
iam_request_headers = var.request_headers | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generate "provider" { | |
path = "provider.tf" | |
if_exists = "overwrite" | |
contents = file("${get_parent_terragrunt_dir()}/vault/provider.block") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the Terraform source module to use: an RDS database module in this example | |
terraform { | |
source = "git::git@github.com:terraform-aws-modules/terraform-aws-rds?ref=v2.13.0" | |
} | |
# Define dependencies | |
dependency "vpc" { | |
config_path = "../path/to/vpc_module" | |
} | |
dependency "sg" { | |
config_path = "../path/to/security_group_module" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: policy/v1beta1 | |
kind: PodDisruptionBudget | |
metadata: | |
name: zk-pdb | |
spec: | |
minAvailable: 2 | |
selector: | |
matchLabels: | |
app: zookeeper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// omitted for brevity | |
labels: | |
app: zk | |
// omitted for brevity | |
affinity: | |
podAntiAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
- labelSelector: | |
matchExpressions: | |
- key: "app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"ansi-regex": { | |
"version": "3.0.0", | |
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3. | |
0.0.tgz", | |
"integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('404 Page', () => { | |
test('users are redirected to a 404 page for nonexistent views', async () => { | |
await page.goto(routes.public.noMatch); | |
await page.waitForSelector('.no-match') | |
}, 9000000); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Unathorized view', () => { | |
test('users that are not logged in are redirected to sign in page', async () => { | |
await page.goto(routes.private.home); | |
await page.waitForSelector('.signin-form') | |
}, 9000000); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Logout', () => { | |
test('users can logout', async () => { | |
await page.waitForSelector('.nav-link'); | |
await page.click('[data-testid="signoutBtn"]') | |
await page.waitForSelector('.signin-form') | |
}, 9000000); | |
}); |
NewerOlder