This file contains hidden or 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
import { check } from 'k6'; | |
import http from 'k6/http'; | |
import { sleep } from 'k6'; | |
export default function() { | |
const mainPage = http.get('https://example.com'); | |
sleep(1); | |
check (mainPage, { | |
'main: is status 200': (r) => r.status === 200, | |
}); |
This file contains hidden or 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
scan_image: | |
stage: scan | |
image: | |
name: docker.io/aquasec/trivy:latest | |
entrypoint: [""] | |
tags: | |
- docker | |
needs: | |
- dockerfile_lint | |
- build |
This file contains hidden or 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
- name: Scan repo with kube-linter | |
uses: stackrox/kube-linter-action@v1.0.4 | |
with: | |
directory: .helmwave | |
config: .kube-linter/config.yaml | |
- name: Kubeval | |
uses: instrumenta/kubeval-action@master | |
with: | |
files: .helmwave/manifest/ | |
- name: Download Pluto |
This file contains hidden or 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
- name: Set environment for branch | |
run: | | |
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then | |
echo "CI_ENVIRONMENT_NAME=prod" >> "$GITHUB_ENV" | |
else | |
echo "CI_ENVIRONMENT_NAME=stage" >> "$GITHUB_ENV" | |
fi |
This file contains hidden or 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
version: 0.18.0 | |
.options: &options | |
namespace: microservices-demo | |
wait: true | |
timeout: 300s | |
create_namespace: true | |
releases: |
This file contains hidden or 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
releases: | |
- name: adservice | |
- name: cartservice | |
- name: checkoutservice | |
- name: currencyservice | |
- name: emailservice | |
- name: frontend | |
- name: paymentservice | |
- name: productcatalogservice | |
- name: recommendationservice |
This file contains hidden or 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
version: 0.18.0 | |
.options: &options | |
namespace: microservices-demo | |
wait: true | |
timeout: 300s | |
create_namespace: true | |
releases: | |
{{- with readFile "releases.yaml" | fromYaml | get "releases" }} |
This file contains hidden or 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
molecule-test: | |
name: molecule test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
distro: | |
- ubuntu2004 | |
- ubuntu1804 | |
scenario: | |
- oh-my-zsh |
This file contains hidden or 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
jobs: | |
lint: | |
name: molecule lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
... | |
- name: Molecule test | |
run: | |
This file contains hidden or 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
import pytest | |
@pytest.mark.parametrize('username', [ | |
'test_usr1', | |
'test_usr2', | |
'test_usr5', | |
]) | |
def test_oh_my_zsh_install(host, username): | |
oh_my_zsh = host.file('/home/' + username + '/.oh-my-zsh') |
NewerOlder