Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agent-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobirama Ultras 🍥
agent-core
Commits
a26c5ee9
Commit
a26c5ee9
authored
2 weeks ago
by
Jvan Fadda
Browse files
Options
Downloads
Patches
Plain Diff
refactor(simple noshow-agent) todos linked with issue
parent
c617f380
Branches
Branches containing commit
No related tags found
1 merge request
!3
feat: simple no-show agent implemented
Pipeline
#419741
passed
2 weeks ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/e2e/agents/noshow-agent.e2e-spec.ts
+2
-3
2 additions, 3 deletions
test/e2e/agents/noshow-agent.e2e-spec.ts
test/e2e/playground/users/users.e2e-spec.ts
+2
-1
2 additions, 1 deletion
test/e2e/playground/users/users.e2e-spec.ts
with
4 additions
and
4 deletions
test/e2e/agents/noshow-agent.e2e-spec.ts
+
2
−
3
View file @
a26c5ee9
...
@@ -23,11 +23,10 @@ describe('NoShowAgentController (e2e)', () => {
...
@@ -23,11 +23,10 @@ describe('NoShowAgentController (e2e)', () => {
const
moduleFixture
:
TestingModule
=
await
Test
.
createTestingModule
({
const
moduleFixture
:
TestingModule
=
await
Test
.
createTestingModule
({
imports
:
[
AppModule
],
imports
:
[
AppModule
],
})
})
.
setLogger
(
new
Logger
())
// TODO[fjv]: overwrite logger, so that loggs are also output. Possibility via config?
.
setLogger
(
new
Logger
())
// TODO[fjv
, #27
]: overwrite logger, so that loggs are also output. Possibility via config?
.
compile
()
.
compile
()
app
=
moduleFixture
.
createNestApplication
()
app
=
moduleFixture
.
createNestApplication
()
app
.
useLogger
([
'
log
'
,
'
warn
'
,
'
error
'
,
'
debug
'
])
// TODO[fjv]: Possibility via config?
patientRepo
=
moduleFixture
.
get
<
Repository
<
PatientEntity
>>
(
patientRepo
=
moduleFixture
.
get
<
Repository
<
PatientEntity
>>
(
getRepositoryToken
(
PatientEntity
),
getRepositoryToken
(
PatientEntity
),
)
)
...
@@ -45,7 +44,7 @@ describe('NoShowAgentController (e2e)', () => {
...
@@ -45,7 +44,7 @@ describe('NoShowAgentController (e2e)', () => {
})
})
beforeEach
(
async
()
=>
{
beforeEach
(
async
()
=>
{
// Clear all data
// Clear all data
TODO[fjv, #28]: DB Rollback, no SQL
await
chargeItemRepo
.
query
(
await
chargeItemRepo
.
query
(
'
TRUNCATE TABLE "charge_item_entity" RESTART IDENTITY CASCADE;
'
,
'
TRUNCATE TABLE "charge_item_entity" RESTART IDENTITY CASCADE;
'
,
)
)
...
...
This diff is collapsed.
Click to expand it.
test/e2e/playground/users/users.e2e-spec.ts
+
2
−
1
View file @
a26c5ee9
...
@@ -26,7 +26,8 @@ describe('UsersController (e2e)', () => {
...
@@ -26,7 +26,8 @@ describe('UsersController (e2e)', () => {
})
})
afterAll
(
async
()
=>
{
afterAll
(
async
()
=>
{
// todo: SQL Statements sehr unschoen, aber funktioniert.
// TODO[fjv, #28]: DB Rollback, no SQL
// SQL Statements sehr unschoen, aber funktioniert.
// Es gaebe `userRepository.clear()` aber leider löscht dies nicht den PrimaryKey-counter (ID)
// Es gaebe `userRepository.clear()` aber leider löscht dies nicht den PrimaryKey-counter (ID)
// Am schoensten waere ein Autorollback funktionalitaet.
// Am schoensten waere ein Autorollback funktionalitaet.
// Clear database after tests
// Clear database after tests
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment