-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow colons in UI and API for flag and segment keys
- Loading branch information
Mark Phelps
authored
May 27, 2020
1 parent
485fbfc
commit e3bb45c
Showing
20 changed files
with
2,393 additions
and
2,477 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM debian:stable-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y bats curl jq gnupg \ | ||
# chromium dependencies | ||
libgbm1 chromium chromium-l10n \ | ||
# webkit dependencies | ||
libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a \ | ||
libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 \ | ||
libevent-2.1-6 libnotify4 libvpx5 libxslt1.1 \ | ||
# ffmpeg | ||
ffmpeg | ||
|
||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y yarn npm && \ | ||
apt-get clean -y | ||
|
||
EXPOSE 8080 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# action.yml | ||
name: 'Flipt IT Tests' | ||
description: 'Container for running Flipt ITs' | ||
inputs: | ||
args: # id of input | ||
description: args to pass to container' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.args }} |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG GO_VERSION=1.13.7 | ||
ARG GO_VERSION=1.14 | ||
|
||
FROM golang:$GO_VERSION-alpine AS build | ||
|
||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0")/../.." || exit | ||
|
||
run() | ||
{ | ||
# run any pending db migrations | ||
./bin/flipt migrate --config ./config/local.yml &> /dev/null | ||
|
||
./bin/flipt --config ./config/local.yml &> /dev/null & | ||
|
||
sleep 5 | ||
|
||
flipt_host="0.0.0.0:8080" | ||
|
||
echo -e "\e[32m \e[0m" | ||
echo -e "\e[32m===========================================\e[0m" | ||
echo -e "\e[32mStart UI testing $flipt_host\e[0m" | ||
echo -e "\e[32m===========================================\e[0m" | ||
|
||
./script/test/helpers/wait-for-it/wait-for-it.sh "$flipt_host" -t 30 | ||
|
||
cd "ui" && yarn && yarn qawolf test --headless | ||
} | ||
|
||
run |
Oops, something went wrong.