Skip to content

Commit

Permalink
fix(e2e): Fix E2E test using kamelet my-own-timer-source
Browse files Browse the repository at this point in the history
ref #4750
  • Loading branch information
gansheer authored and squakez committed Sep 20, 2023
1 parent 3079a0e commit 2a12303
Show file tree
Hide file tree
Showing 14 changed files with 591 additions and 218 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class TimerKameletIntegrationConfiguration extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:my-own-timer-source")
from("kamelet:iconfig-test-timer-source")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationConfiguration01 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig01-timer-source")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationConfiguration03 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig03-timer-source")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationConfiguration04 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig04-timer-source")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class TimerKameletIntegrationNamedConfiguration extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:my-own-timer-source/mynamedconfig")
from("kamelet:iconfig-test-timer-source/mynamedconfig")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationNamedConfiguration05 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig05-timer-source/mynamedconfig")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationNamedConfiguration06 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig06-timer-source/mynamedconfig")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationNamedConfiguration07 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig07-timer-source/mynamedconfig")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.lang.Exception;
import java.lang.Override;
import org.apache.camel.builder.RouteBuilder;

public class TimerKameletIntegrationNamedConfiguration08 extends RouteBuilder {
@Override
public void configure() throws Exception {
from("kamelet:iconfig08-timer-source/mynamedconfig")
.to("log:info");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

- route:
from:
uri: "kamelet:my-own-timer-source?message=important%20message"
uri: "kamelet:config01-timer-source?message=important%20message"
steps:
- to:
uri: "kamelet:my-own-log-sink?loggerName=integrationLogger"
uri: "kamelet:config01-log-sink?loggerName=integrationLogger"
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

- route:
from:
uri: "kamelet:my-own-timer-source"
uri: "kamelet:config02-timer-source"
parameters:
message: "{{my-message}}"
steps:
- to:
uri: "kamelet:my-own-log-sink"
uri: "kamelet:config02-log-sink"
parameters:
loggerName: "{{my-logger}}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# ---------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ---------------------------------------------------------------------------

- route:
from:
uri: "kamelet:config03-timer-source"
parameters:
message: "{{my-message}}"
steps:
- to:
uri: "kamelet:config03-log-sink"
parameters:
loggerName: "{{my-logger}}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# ---------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ---------------------------------------------------------------------------

- route:
from:
uri: "kamelet:config04-timer-source"
parameters:
message: "{{my-message}}"
steps:
- to:
uri: "kamelet:config04-log-sink"
parameters:
loggerName: "{{my-logger}}"
Loading

0 comments on commit 2a12303

Please sign in to comment.