Skip to content

Commit

Permalink
Merge pull request #4 from Triantafullenia-Doumani/rrn-testing
Browse files Browse the repository at this point in the history
Hardcode end points
  • Loading branch information
michielbdejong authored Oct 19, 2021
2 parents 1538c82 + 2a99d98 commit efec9c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/ocmd/ocmd-server-2-with-nextcloud.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ driver = "memory"
driver = "nextcloud"

[grpc.services.ocmcore.drivers.nextcloud]
end_point = "http://localhost:8080/apps/sciencemesh/"
end_point = "http://marie:radioactivity@localhost:8080/index.php/apps/sciencemesh/"
mock_http = false

[grpc.services.ocminvitemanager]
Expand All @@ -52,7 +52,7 @@ driver = "json"
driver = "nextcloud"

[grpc.services.ocmshareprovider.drivers.nextcloud]
end_point = "http://localhost:8080/apps/sciencemesh/"
end_point = "http://marie:radioactivity@localhost:8080/index.php/apps/sciencemesh/"
mock_http = false

[grpc.services.ocmproviderauthorizer]
Expand All @@ -68,7 +68,7 @@ driver = "memory"
driver = "nextcloud"

[grpc.services.storageprovider.drivers.nextcloud]
end_point = "http://localhost:8080/apps/sciencemesh/"
end_point = "http://marie:radioactivity@localhost:8080/index.php/apps/sciencemesh/"
mock_http = false

[grpc.services.authprovider]
Expand Down
2 changes: 1 addition & 1 deletion pkg/ocm/share/manager/nextcloud/nextcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (sm *Manager) do(ctx context.Context, a Action) (int, []byte, error) {
// if err != nil {
// return 0, nil, err
// }
url := "http://localhost:8080/apps/sciencemesh/~marie/api/ocm/" + a.verb
url := "http://localhost:8080/index.php/apps/sciencemesh/~marie/api/ocm/" + a.verb
// url := sm.endPoint + "~" + user.Username + "/api/ocm/" + a.verb

log.Info().Msgf("am.do %s %s", url, a.argS)
Expand Down

0 comments on commit efec9c6

Please sign in to comment.