Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCKAN-287 Update Automated tests #366

Merged
merged 31 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3731045
SCKAN-287 fix initial issues for KS creation
SimaoBolota-MetaCell Nov 19, 2024
cbb8c6c
SCKAN-287 fix path builder issues
SimaoBolota-MetaCell Nov 20, 2024
4c0afbb
SCKAN-287 fixes on the status changes
SimaoBolota-MetaCell Nov 22, 2024
dfaf87a
SCKAN-287 cleamups
SimaoBolota-MetaCell Nov 22, 2024
69d0f95
SCKAN-287 ENV variables
SimaoBolota-MetaCell Nov 22, 2024
861456b
fix import issue on pipeline
SimaoBolota-MetaCell Dec 5, 2024
4b6f0b5
babel imports
SimaoBolota-MetaCell Dec 5, 2024
36c392c
fixed import of selectors for qa pipeline
SimaoBolota-MetaCell Dec 5, 2024
537c0ab
fixed import of selectors for qa pipeline
SimaoBolota-MetaCell Dec 5, 2024
a9b7e7a
conditional skip depending on where the URL comes from
SimaoBolota-MetaCell Dec 5, 2024
1fcf7b4
debugging
SimaoBolota-MetaCell Dec 5, 2024
0542046
debugging
SimaoBolota-MetaCell Dec 5, 2024
209aa22
debugging
SimaoBolota-MetaCell Dec 5, 2024
f265e16
remove debugging code
SimaoBolota-MetaCell Dec 10, 2024
b97d4ae
changed test command
SimaoBolota-MetaCell Dec 10, 2024
74dc8e0
npm i
SimaoBolota-MetaCell Dec 10, 2024
c6aff6d
revert debugging
SimaoBolota-MetaCell Dec 10, 2024
5d60620
deal with sandbox issues on pipeline
SimaoBolota-MetaCell Dec 10, 2024
df69288
rever url
SimaoBolota-MetaCell Dec 10, 2024
60d7e1e
last changes
SimaoBolota-MetaCell Dec 11, 2024
a6f325c
logging of the user for debug
SimaoBolota-MetaCell Dec 12, 2024
1a7f3a7
wrong definition of usernanme and password
SimaoBolota-MetaCell Dec 12, 2024
9c68a60
debugging
SimaoBolota-MetaCell Dec 12, 2024
28591ad
SCKAN-287 requested changes
SimaoBolota-MetaCell Dec 20, 2024
f3b99b6
changes requested part 2
SimaoBolota-MetaCell Dec 20, 2024
e0dd327
needed for pipeline
SimaoBolota-MetaCell Dec 20, 2024
936c980
SCKAN-287 Adding test step for Alert System
SimaoBolota-MetaCell Dec 26, 2024
297e3d4
SCKAN-287 adding forward connection step
SimaoBolota-MetaCell Dec 26, 2024
bd41197
SCKAN-287 - Add TESTING environment configuration for database settings
D-GopalKrishna Jan 2, 2025
5f19c96
revert package-lock.json
SimaoBolota-MetaCell Jan 7, 2025
3647b5c
revert package-lock.json
SimaoBolota-MetaCell Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile.testing
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM ghcr.io/puppeteer/puppeteer:16.1.0
FROM ghcr.io/puppeteer/puppeteer:latest



COPY frontend/package.json .
COPY frontend/package-lock.json .
COPY frontend/test/package.json .
COPY frontend/test/package-lock.json .

RUN npm ci

Expand Down
10 changes: 9 additions & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
PRODUCTION = os.environ.get("PRODUCTION", "False").lower() in ("true", "1")
USE_PG = os.environ.get("USE_PG", "False").lower() in ("true", "1")
TESTING = os.environ.get("TESTING", "False").lower() in ("true", "1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DEBUG = os.environ.get("DEBUG", str(not PRODUCTION)).lower() in ("true", "1")

ALLOWED_HOSTS = [
Expand Down Expand Up @@ -106,7 +107,14 @@

# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
if PRODUCTION or USE_PG:
if TESTING:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(BASE_DIR, "persistent", "test_db.sqlite3"),
}
}
elif PRODUCTION or USE_PG:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
Expand Down
541 changes: 336 additions & 205 deletions frontend/test/fullFlow.test.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion frontend/test/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
verbose: true,
preset: "jest-puppeteer",
"testEnvironment": "jsdom"
"testEnvironment": "jsdom",
transform: {
"^.+\\.jsx?$": "babel-jest"
}

};
Loading
Loading