Skip to content

Commit

Permalink
Add copyright notice and update target URLs in tests
Browse files Browse the repository at this point in the history
- Insert copyright notice for 2024 and Apache License at the top of relevant files.
- Change HTTP target URLs to HTTPS for better security in test configurations.
- Ensure consistency across interceptor packages by applying the same updates where necessary.
  • Loading branch information
t-burch committed Nov 8, 2024
1 parent 022956f commit 3197c43
Show file tree
Hide file tree
Showing 16 changed files with 131 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.core.interceptor.json;

import com.jayway.jsonpath.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.core.interceptor.shadowing;

import com.predic8.membrane.annot.MCChildElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.core.interceptor.templating;

import com.predic8.membrane.annot.MCAttribute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.core.interceptor.authentication.session;

import org.junit.jupiter.api.Assertions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.core.interceptor.json;

import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.core.interceptor.shadowing;

import com.predic8.membrane.core.Router;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
package com.predic8.membrane.core.interceptor.templating;
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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
import org.junit.jupiter.api.Test;
http://www.apache.org/licenses/LICENSE-2.0
import static com.predic8.membrane.core.interceptor.templating.StaticInterceptor.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
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. */
package com.predic8.membrane.core.interceptor.templating;

class StaticInterceptorTest {

Expand Down
2 changes: 1 addition & 1 deletion distribution/examples/basic-xml-interceptor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<dependency>
<groupId>org.membrane-soa</groupId>
<artifactId>service-proxy-core</artifactId>
<version>5.5.5-SNAPSHOT</version>
<version>5.7.5-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion distribution/examples/custom-interceptor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>org.membrane-soa</groupId>
<artifactId>service-proxy-core</artifactId>
<version>5.5.5-SNAPSHOT</version>
<version>5.7.5-SNAPSHOT</version>
</dependency>

</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion distribution/examples/soap/add-soap-header/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<dependency>
<groupId>org.membrane-soa</groupId>
<artifactId>service-proxy-core</artifactId>
<version>5.5.5-SNAPSHOT</version>
<version>5.7.5-SNAPSHOT</version>
</dependency>

</dependencies>
Expand Down
4 changes: 3 additions & 1 deletion distribution/examples/xslt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ First take a look at the proxies.xml file.
<response>
<transform xslt="./reformat.xsl" />
</response>
<target host="api.predic8.de" port="443" />
<target host="api.predic8.de" port="443">
<ssl />
</target>
</serviceProxy>
</router>
```
Expand Down
6 changes: 4 additions & 2 deletions distribution/examples/xslt/proxies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
<serviceProxy port="2000">
<response>
<transform xslt="./reformat.xsl" />
</response>
<target host="api.predic8.de" port="443" />
</response>
<target host="api.predic8.de" port="443">
<ssl />
</target>
</serviceProxy>

</router>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.examples.tests;

import com.predic8.membrane.examples.util.AbstractSampleMembraneStartStopTestcase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Copyright 2024 predic8 GmbH, www.predic8.com
Licensed 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. */
package com.predic8.membrane.examples.tests.ssl;

import com.predic8.membrane.examples.util.DistributionExtractingTestcase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void start() throws Exception {

@Test
public void step1() {
get("http://localhost:2001/shop/products/")
get("http://localhost:2001/shop/v2/products/")
.then()
.assertThat()
.contentType(APPLICATION_JSON)
Expand All @@ -76,7 +76,7 @@ public void step1() {

@Test
public void step2() {
get("http://localhost:2001/shop/products/")
get("http://localhost:2001/shop/v2/products/")
.then()
.assertThat()
.contentType(APPLICATION_JSON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

<api port="2002">
<path>/restnames</path>
<target url="http://www.thomas-bayer.com"/>
<target url="https://api.predic8.de"/>
</api>

<api port="2003">
<path>/restnames</path>
<xml2Json/>
<target url="http://www.thomas-bayer.com"/>
<target url="https://api.predic8.de"/>
</api>

<api port="2004">
Expand All @@ -38,7 +38,7 @@
<beautifier/>
<xml2Json/>
</response>
<target url="http://www.thomas-bayer.com"/>
<target url="https://api.predic8.de"/>
</api>

<api port="9000">
Expand Down

0 comments on commit 3197c43

Please sign in to comment.