Open ghost opened 8 years ago
Mostlikely you didn't enable the provisioning api app. I already created a PR to check for that a long time ago, but it's still waiting: https://github.com/cernbox/smashbox/pull/52
@nickvergessen Found it - provisioning api app was and is enabled.
Okay had a look again 102 means User already exists
.
Did you set oc_account_reset_procedure = "delete"
in your smashbox.conf?
@nickvergessen Yes, I used the example config with several modifications.
# this is the top directory where all local working files are kept (test working direcotires, test logs, test data, temporary filesets, ..)
smashdir = "~/smashbox"
# name of the account used for testing
# if None then account name is chosen automatically (based on the test name)
oc_account_name="smashbox"
#oc_account_name=None
# default number of users for tests involving multiple users (user number is appended to the oc_account_name)
# this only applies to the tests involving multiple users
oc_number_test_users=20
# name of the group used for testing
oc_group_name=None
# default number of groups for tests involving multiple groups (group number is appended to the oc_group_name)
# this only applies to the tests involving multiple groups
oc_number_test_groups=5
# password for test accounts: all test account will have the same password
# if not set then it's an error
oc_account_password="demo"
# owncloud test server
# if left blank or "localhost" then the real hostname of the localhost will be set
oc_server = 'ip-adress of server'
# root of the owncloud installation as visible in the URL
oc_root = 'owncloud'
# webdav endpoint URI within the oc_server
import os.path
oc_webdav_endpoint = os.path.join(oc_root,'remote.php/webdav') # standard owncloud server
# target folder on the server (this may not be compatible with all tests)
oc_server_folder = ''
# should we use protocols with SSL (https, ownclouds)
oc_ssl_enabled = True
# how to invoke shell commands on the server
# for localhost there is no problem - leave it blank
# for remote host it may be set like this: "ssh -t -l root $oc_server"
# note: configure ssh for passwordless login
# note: -t option is to make it possible to run sudo
oc_server_shell_cmd = "ssh -t -l root $oc_server"
# Data directory on the owncloud server.
#
oc_server_datadirectory = os.path.join('/usr/local/www/owncloud/data')
# a path to server side tools (create_user.php, ...)
#
# it may be specified as relative path "dir" and then resolves to
# <smashbox>/dir where <smashbox> is the top-level of of the tree
# containing THIS configuration file
#
oc_server_tools_path = "server-tools"
# a path to ocsync command with options
# this path should work for all client hosts
#
# it may be specified as relative path "dir" and then resolves to
# <smashbox>/dir where <smashbox> is the top-level of of the tree
# containing THIS configuration file
#
#oc_sync_cmd = "client/build/mirall/bin/owncloudcmd --trust"
oc_sync_cmd = "/usr/bin/owncloudcmd --trust" [note: path to the owncloudcmd]
# number of times to repeat ocsync run every time
oc_sync_repeat = 1
####################################
# unique identifier of your test run
# if None then the runid is chosen automatically (and stored in this variable)
runid = None
# if True then the local working directory path will have the runid added to it automatically
workdir_runid_enabled=False
# if True then the runid will be part of the oc_account_name automatically
oc_account_runid_enabled=False
####################################
# this defines the default account cleanup procedure
# - "delete": delete account if exists and then create a new account with the same name
# - "keep": don't delete existing account but create one if needed
#
# these are not implemeted yet:
# - "sync_delete": delete all files via a sync run
# - "webdav_delete": delete all files via webdav DELETE request
# - "filesystem_delete": delete all files directly on the server's filesystem
oc_account_reset_procedure = "delete"
# this defined the default local run directory reset procedure
# - "delete": delete everything in the local run directory prior to running the test
# - "keep": keep all files (from the previous run)
rundir_reset_procedure = "delete"
#web_user = "www-data"
web_user = "www"
oc_admin_user = "admin_user"
oc_admin_password = "admin_password"
# cleanup imported namespaces
del os
# Verbosity of curl client.
# If none then verbosity is on when smashbox run in --debug mode.
# set it to True or False to override
#
pycurl_verbose = True
# scp port to be used in scp commands, used primarily when copying over the server log file
scp_port = 22
# user that can r+w the owncloud.log file (needs to be configured for passwordless login)
#oc_server_log_user = "www-data"
oc_server_log_user = "www" [note: www because of the www user in FreeBSD, www-data is used in ubuntu or linux)
# Reset the server log file and verify that no exceptions and other known errors have been logged
oc_check_server_log = False
Maybe this helps...
Overwiev
Smashbox Test System
etc/smashbox.conf
Owncloud System
Problem
Used tests
bin/smash lib/test_basicSync.py
Expected behavior
Actual behavior
Maybe somebody can give me a hint or know this problem? This will be great! Another question: Will smashbox work on FreeBSD? I got a working configuration with Ubuntu Owncloud server, but not with a FreeBSD server.