Skip to content

Commit

Permalink
Update websub integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayomawdb committed Feb 22, 2019
1 parent 7ddb465 commit a8a4578
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ http:ClientEndpointConfig conf = {
url: "https://postman-echo.com/basic-auth",
auth: {
scheme: http:BASIC_AUTH,
username: "postman",
password: "password"
basicAuthConfig: {
username: "postman",
password: "password"
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ http:ClientEndpointConfig conf = {
url: "https://postman-echo.com/basic-auth",
auth: {
scheme: http:BASIC_AUTH,
username: "postman",
password: "password"
basicAuthConfig: {
username: "postman",
password: "password"
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ http:ClientEndpointConfig conf = {
url: "https://postman-echo.com/basic-auth",
auth: {
scheme: http:BASIC_AUTH,
username: "postman",
password: "password"
basicAuthConfig: {
username: "postman",
password: "password"
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const string WEBSUB_PERSISTENCE_TOPIC_TWO = "http://two.persistence.topic.com";
const string WEBSUB_TOPIC_ONE = "http://one.websub.topic.com";

http:AuthProvider basicAuthProvider = {
scheme: "basic",
authStoreProvider: "config"
scheme: http:BASIC_AUTH,
authStoreProvider: http:CONFIG_AUTH_STORE
};

http:ServiceEndpointConfiguration hubListenerConfig = {
Expand All @@ -51,8 +51,10 @@ listener http:Listener publisherServiceEP = new http:Listener(8080);
websub:Client websubHubClientEP = new websub:Client(webSubHub.hubUrl, config = {
auth: {
scheme: http:BASIC_AUTH,
username: "peter",
password: "pqr"
basicAuthConfig: {
username: "peter",
password: "pqr"
}
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ listener websub:Listener websubEP = new websub:Listener(8484);
subscriptionClientConfig: {
auth: {
scheme: http:BASIC_AUTH,
username: "tom",
password: "1234"
basicAuthConfig: {
username: "tom",
password: "1234"
}
}
}
}
Expand All @@ -50,8 +52,10 @@ service websubSubscriber on websubEP {
subscriptionClientConfig: {
auth: {
scheme: http:BASIC_AUTH,
username: "tom",
password: "4321"
basicAuthConfig: {
username: "tom",
password: "4321"
}
}
}
}
Expand All @@ -70,8 +74,10 @@ service websubSubscriberTwo on websubEP {
subscriptionClientConfig: {
auth: {
scheme: http:BASIC_AUTH,
username: "mary",
password: "xyz"
basicAuthConfig: {
username: "mary",
password: "xyz"
}
}
}
}
Expand All @@ -90,8 +96,10 @@ service websubSubscriberThree on websubEP {
subscriptionClientConfig: {
auth: {
scheme: http:BASIC_AUTH,
username: "tom",
password: "1234"
basicAuthConfig: {
username: "tom",
password: "1234"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ listener websub:Listener websubEP = new websub:Listener(8383);
subscriptionClientConfig: {
auth: {
scheme: http:BASIC_AUTH,
username: "tom",
password: "1234"
basicAuthConfig: {
username: "tom",
password: "1234"
}
}
}
}
Expand All @@ -50,8 +52,10 @@ service websubSubscriber on websubEP {
subscriptionClientConfig: {
auth: {
scheme: http:BASIC_AUTH,
username: "tom",
password: "1234"
basicAuthConfig: {
username: "tom",
password: "1234"
}
}
}
}
Expand Down

0 comments on commit a8a4578

Please sign in to comment.