Skip to content

Commit

Permalink
[tests-only][full-ci] Change wrapper port from 5000 to 5200 (#6321)
Browse files Browse the repository at this point in the history
* use port 5200 for wrapper API server

* remove binary and ignore the build
  • Loading branch information
saw-jan authored May 16, 2023
1 parent 489fc64 commit 14b11f2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def localApiTests(suite, storage, extra_environment = {}):
"BEHAT_FILTER_TAGS": "~@skip&&~@skipOnGraph&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS"),
"EXPECTED_FAILURES_FILE": "%s/tests/acceptance/expected-failures-localAPI-on-%s-storage.md" % (dirs["base"], storage.upper()),
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
"OCIS_WRAPPER_URL": "http://ocis-server:5000",
"OCIS_WRAPPER_URL": "http://ocis-server:5200",
}

for item in extra_environment:
Expand Down
2 changes: 1 addition & 1 deletion docs/ocis/development/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ PROXY_ENABLE_BASIC_AUTH=true \
### Run the tests

```bash
OCIS_WRAPPER_URL=http://localhost:5000 \
OCIS_WRAPPER_URL=http://localhost:5200 \
TEST_WITH_GRAPH_API=true \
TEST_OCIS=true \
TEST_SERVER_URL="https://localhost:9200" \
Expand Down
2 changes: 1 addition & 1 deletion tests/TestHelpers/OcisConfigHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static function sendRequest(
public static function getWrapperUrl(): string {
$url = \getenv("OCIS_WRAPPER_URL");
if ($url === false) {
$url = "http://localhost:5000";
$url = "http://localhost:5200";
}
return $url;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/docker/src/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
RUN_ON_OCIS: "true"
TEST_SERVER_URL: https://ocis-server:9200
TEST_WITH_GRAPH_API: "true"
OCIS_WRAPPER_URL: http://ocis-server:5000
OCIS_WRAPPER_URL: http://ocis-server:5200
STORAGE_DRIVER: $STORAGE_DRIVER
TEST_SOURCE: $TEST_SOURCE
BEHAT_SUITE: ${BEHAT_SUITE:-}
Expand Down
2 changes: 1 addition & 1 deletion tests/ociswrapper/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bin
bin/
2 changes: 1 addition & 1 deletion tests/ociswrapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ When run, **ociswrapper** starts an API server that exposes some endpoints to re
./bin/ociswrapper serve --bin=<path-to-ocis-binary>
```

Access the API server at `http://localhost:5000`.
Access the API server at `http://localhost:5200`.

Also, see `./bin/ociswrapper help` for more information.

Expand Down
Binary file removed tests/ociswrapper/bin/ociswrapper
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/ociswrapper/wrapper/config/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

var config = map[string]string{
"port": "5000",
"port": "5200",
}

func Get(key string) string {
Expand Down

0 comments on commit 14b11f2

Please sign in to comment.