mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tests: Add basic e2e tests for frontend plugin sandbox (#70759)
* Add initial e2e tests for sandboxing * Add tests for sandbox on * Add additional sandbox tests * Move sandbox into various suite * Test drone setup * Move variable * Update drone * Update plugins path for e2e * Revert drone changes * use drone from main * Use lib.star from main * Move sandbox test to its own suite * Expand methods to inject iframes * Restore e2e script * Add back change to script * Update tests for trusted types * Integrate custom plugins into grafana-server * Echo for deubging * add debugging message * Expand message * Add extra for ci * fix path * Improve start-server logic * Remove duplicated logic * Restore file deleted by mistake * Restore file to main p * restore file * Restore start script * Update e2e/panels-suite/frontend-sandbox-panel.spec.ts Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com> --------- Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
This commit is contained in:
@@ -34,6 +34,17 @@ mkdir $PROV_DIR/dashboards
|
||||
cp ./scripts/grafana-server/custom.ini $RUNDIR/conf/custom.ini
|
||||
cp ./conf/defaults.ini $RUNDIR/conf/defaults.ini
|
||||
|
||||
echo -e "Copying custom plugins from e2e tests"
|
||||
|
||||
mkdir -p "$RUNDIR/data/plugins"
|
||||
# when running in a local computer
|
||||
if [ -d "./e2e/custom-plugins" ]; then
|
||||
cp -r "./e2e/custom-plugins" "$RUNDIR/data/plugins"
|
||||
# when running in CI
|
||||
elif [ -d "../e2e/custom-plugins" ]; then
|
||||
cp -r "../e2e/custom-plugins" "$RUNDIR/data/plugins"
|
||||
fi
|
||||
|
||||
echo -e "Copy provisioning setup from devenv"
|
||||
|
||||
cp devenv/datasources.yaml $PROV_DIR/datasources
|
||||
@@ -53,4 +64,3 @@ $RUNDIR/bin/"$ARCH"grafana-server \
|
||||
|
||||
# 2>&1 > $RUNDIR/output.log &
|
||||
# cfg:log.level=debug \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user