-
Notifications
You must be signed in to change notification settings - Fork 3
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
Simple pub sub integration #113
Open
kschrief
wants to merge
7
commits into
dev
Choose a base branch
from
SimplePubSub_Integration
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6920d7c
Added changes to run defaultConfigModule
kdivya153 fccf9ac
Added logic to continue without ws connection
kdivya153 394cdc7
Merge pull request #98 from kdivya153/SYSTEST-9779
kschrief d0d2e9e
PubSub URL/Failure changes
kschrief 5d41da6
changing default ws port in FireboltInvoker.js back to 9998
jbigel277 844a9bd
sending macaddress as query param for pubSub topic setup by FCA
jbigel277 a994f08
Update README.md
jbigel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
*/ | ||
const CONSTANTS = require('../constants/constants'); | ||
const { _ } = Cypress; | ||
import UTILS from '../cypress-support/src/utils'; | ||
import UTILS, { getEnvVariable } from '../cypress-support/src/utils'; | ||
const logger = require('../Logger')('command.js'); | ||
|
||
/** | ||
|
@@ -653,12 +653,12 @@ Cypress.Commands.add('launchApp', (appType, appCallSign) => { | |
? UTILS.getEnvVariable(CONSTANTS.APP_TYPE) | ||
: CONSTANTS.FIREBOLT; // appType defines in which mode app should be launched | ||
data = { | ||
query: JSON.stringify({ | ||
query: { | ||
params: { | ||
[CONSTANTS.APP_ID]: appId, | ||
[CONSTANTS.APP_TYPE]: appCategory, | ||
}, | ||
}), | ||
}, | ||
}; | ||
const messageIntent = { | ||
action: CONSTANTS.SEARCH, | ||
|
@@ -676,17 +676,25 @@ Cypress.Commands.add('launchApp', (appType, appCallSign) => { | |
Cypress.env(CONSTANTS.TEST_TYPE).toLowerCase() == CONSTANTS.MODULE_NAMES.LIFECYCLE | ||
) { | ||
data = { | ||
query: JSON.stringify({ | ||
query: { | ||
params: { | ||
[CONSTANTS.APP_ID]: appId, | ||
[CONSTANTS.LIFECYCLE_VALIDATION]: true, | ||
[CONSTANTS.APP_TYPE]: appCategory, | ||
}, | ||
}), | ||
}, | ||
}; | ||
requestMap.params.intent.data = data; | ||
} | ||
|
||
// Add the PubSub URL if required | ||
if (getEnvVariable(CONSTANTS.PUB_SUB_URL, false)) { | ||
data.query.params[CONSTANTS.PUB_SUB_URL] = getEnvVariable(CONSTANTS.PUB_SUB_URL); | ||
} | ||
|
||
// Stringify the query (The intent requires it be a string) | ||
data.query = JSON.stringify(data.query); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Medium impact. Quality issue. |
||
|
||
Cypress.env(CONSTANTS.CURRENT_APP_ID, appId); | ||
|
||
const requestTopic = UTILS.getTopic(appId); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Medium impact. Quality issue.
Null pointer dereferences. Bad use of null-like value.
Performing an operation that would be invalid on a null or undefined value.
If the value is null or undefined, this code will cause an exception such as a TypeError.