Skip to content
Snippets Groups Projects
Unverified Commit 5bffa46e authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Extract hard coded embedding key for e2e tests and store it as a variable (#20852)

parent e96d434f
No related branches found
No related tags found
No related merge requests found
......@@ -111,3 +111,7 @@ export const USERS = {
group_ids: [ALL_USERS_GROUP],
},
};
// Embedding
export const METABASE_SECRET_KEY =
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";
......@@ -5,6 +5,7 @@ import {
USER_GROUPS,
SAMPLE_DB_ID,
SAMPLE_DB_TABLES,
METABASE_SECRET_KEY,
} from "__support__/e2e/cypress_data";
const {
......@@ -68,7 +69,7 @@ describe("snapshots", () => {
cy.request("PUT", "/api/setting/enable-public-sharing", { value: true });
cy.request("PUT", "/api/setting/enable-embedding", { value: true });
cy.request("PUT", "/api/setting/embedding-secret-key", {
value: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
value: METABASE_SECRET_KEY,
});
// update the Sample db connection string so it is valid in both CI and locally
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment