Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
]
modules = [
{org = "ballerina", packageName = "io", moduleName = "io"}
]

[[package]]
org = "ballerina"
Expand Down Expand Up @@ -194,6 +197,9 @@ version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "lang.runtime", moduleName = "lang.runtime"}
]

[[package]]
org = "ballerina"
Expand Down Expand Up @@ -263,6 +269,9 @@ dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "os", moduleName = "os"}
]

[[package]]
org = "ballerina"
Expand Down Expand Up @@ -324,6 +333,9 @@ name = "hubspot.crm.extensions.videoconferencing"
version = "1.0.0"
dependencies = [
{org = "ballerina", name = "http"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "lang.runtime"},
{org = "ballerina", name = "os"},
{org = "ballerina", name = "test"},
{org = "ballerina", name = "url"},
{org = "ballerinai", name = "observe"}
Expand Down
8 changes: 6 additions & 2 deletions ballerina/tests/test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ function testDeleteSettings() returns error? {
dependsOn: [testDeleteSettings]
}
function testGetEmptySettings() returns error? {
if !isLiveServer {
// Note: It takes some time for the settings to be updated in HubSpot CRM. Usually 60 seconds is enough.
// However, you can increase or decrease the delay as per your need through the Config.toml.
if isLiveServer {
runtime:sleep(delay);
}
ExternalSettings|http:ClientRequestError|error settings = hubspot->/[appIdSigned32]();
Expand Down Expand Up @@ -92,7 +94,9 @@ function testPutIncorrectAppId() returns error? {
dependsOn: [testPutSettings]
}
function testGetSettings() returns error? {
if !isLiveServer {
// Note: It takes some time for the settings to be updated in HubSpot CRM. Usually 60 seconds is enough.
// However, you can increase or decrease the delay as per your need through the Config.toml.
if isLiveServer {
runtime:sleep(delay);
}
ExternalSettings|http:Response settings = check hubspot->/[appIdSigned32]();
Expand Down
4 changes: 2 additions & 2 deletions examples/close-conference-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ This example demonstrates how to use the `HubSpot CRM Video conference connector
3. `Config.toml`: Add the `Config.toml` in the example's root directory and add the obtained credentials from HubSpot. Here's an example of how your `Config.toml` file should look:

```toml
hapikey = <HubSpot developer API key as a string>
appId = <App ID as an int>
hapikey = <HubSpot developer API key> # string
appId = <App ID> # int
```

## Running an example
Expand Down
Loading