hcAutonomywww_dataload

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2019 License: ISC Imports: 14 Imported by: 0

README

hcAutonomywww_dataload

hcAutonomywww_dataload is a tool that loads basic data into HcAutonomy to help speed up full end-to-end testing. It will automatically start and stop hcAutonomyd and hcAutonomywww, and utilize the hcAutonomywwwcli tool to create the following:

  • Admin user
  • Regular paid user
  • Regular unpaid user
  • A proposal for each state (public, censored, etc)
  • A couple comments on the public proposal

Because it starts and stops hcAutonomyd and hcAutonomywww automatically, you will need to ensure that those servers are shut down before running this tool. It will run the servers with some fixed configuration, although some default configuration is required, so you should have hcAutonomyd.conf and hcAutonomywww.conf already set up.

When running hcAutonomywww_dataload twice, the second time will fail because it can't create duplicate users.

Usage

This tool doesn't require any arguments, but you can specify the following options. Additionally, you can specify these options in a hcAutonomywww_dataload.conf file, which should be located under /Users/<username>/Library/Application Support/HcAutonomywww/dataload/.

     --adminemail   admin email address
     --adminuser    admin username
     --adminpass    admin password
     --paidemail    paid user email address
     --paiduser     paid user username
     --paidpass     paid user password
     --unpaidemail  unpaid user email address
     --unpaiduser   unpaid user username
     --unpaidpass   unpaid user password
     --deletedata   before loading the data, delete all existing data
     --debuglevel   the debug level to set when starting hcAutonomyd and hcAutonomywww
                    server; the servers' log output is stored in the data directory
     --datadir      specify a different directory to store log files
     --configfile   specify a different .conf file for config options
 -v, --verbose      verbose output

Example:

hcAutonomywww_dataload --verbose

Troubleshooting

If you encounter an error while running hcAutonomywww_dataload, it's possible that some program this depends on is out of date. Before opening a Github issue, make sure to pull the latest from master and build all programs:

cd $GOPATH/src/github.com/HcashOrg/hcAutonomy
dep ensure && go install -v ./...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL