Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
8f56985b
Commit
8f56985b
authored
2 years ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Email Patches
Plain Diff
fix: planning configuration failed tests
parent
49e1d65b
dev
41-add-optional-operating_area-as-a-wider-zone-outside-region_of_interest
42-add-event-details-and-status-to-acknowledgement-schema
66-tag-current-dev-as-version-1
76-should-depth-and-altitude-be-coordinates
80-add-informational-type-primitive
87-remove-comment-for-platform-status-state
87-remove-todo-comment-from-platform-state
action-refactor-test
ci-js-test
master
missionmonitor
v2.0.0
v2.0.0-beta.11
v2.0.0-beta.10
v2.0.0-beta.9
v2.0.0-beta.8
v2.0.0-beta.7
v2.0.0-beta.6
v2.0.0-beta.5
v2.0.0-beta.4
v2.0.0-beta.3
v2.0.0-beta.2
v2.0.0-beta.1
v1.0.0
v0.2.0
v0.1.0
2 merge requests
!19
feat: support binary payload
,
!16
Resolve "Release v0.1"
Pipeline
#113288
passed with stages
in 1 minute and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
tests-js/docker/docker-compose.yml
tests-js/docker/docker-compose.yml
+2
-1
tests-js/soar-examples.test.js
tests-js/soar-examples.test.js
+4
-2
No files found.
tests-js/docker/docker-compose.yml
View file @
8f56985b
...
@@ -6,5 +6,6 @@ services:
...
@@ -6,5 +6,6 @@ services:
dockerfile
:
tests-js/docker/Dockerfile
dockerfile
:
tests-js/docker/Dockerfile
container_name
:
soar_js_test
container_name
:
soar_js_test
volumes
:
volumes
:
-
../../src:/app/src
-
../../examples:/app/examples
-
../../project:/app/project
command
:
"
yarn
test"
command
:
"
yarn
test"
This diff is collapsed.
Click to expand it.
tests-js/soar-examples.test.js
View file @
8f56985b
...
@@ -46,9 +46,11 @@ describe('examples validate', () => {
...
@@ -46,9 +46,11 @@ describe('examples validate', () => {
validation
=
validateMessage
(
message
,
schema
);
validation
=
validateMessage
(
message
,
schema
);
valid
=
validation
.
valid
;
valid
=
validation
.
valid
;
if
(
!
valid
)
{
if
(
!
valid
)
{
console
.
log
(
`validation:
${
messageFile
}
`
,
validation
);
console
.
log
(
`validation:
${
messageFile
}
`
,
validation
.
GetErrorMessages
()
);
payloadValidation
=
validateMessage
(
message
.
payload
,
schema
,
message
.
payload
.
message_type
)
payloadValidation
=
validateMessage
(
message
.
payload
,
schema
,
message
.
payload
.
message_type
)
console
.
log
(
`payload
${
message
.
payload
.
message_type
}
`
,
payloadValidation
);
if
(
!
payloadValidation
.
valid
)
{
console
.
log
(
`payload
${
message
.
payload
.
message_type
}
`
,
payloadValidation
.
GetErrorMessages
());
}
}
}
expect
(
valid
).
toBe
(
true
);
expect
(
valid
).
toBe
(
true
);
});
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment