}
If no `P4CLIENT` environment name is provided a workspace generated name is calculated
-based on the Digest of path. For example:
+based on the Digest of path and hostname. For example:
puppet-91bc00640c4e5a17787286acbe2c021c
# default (generated) client name
path = @resource.value(:path)
- default = "puppet-" + Digest::MD5.hexdigest(path)
+ host = Facter.value('hostname')
+ default = "puppet-" + Digest::MD5.hexdigest(path + host)
# check config for client name
set_client = nil
context "when a client and source are not given" do
it "should execute 'p4 client'" do
- provider.expects(:p4).with(['client', '-o', "puppet-51f0a4b45dbfc10614df94f0a189c16f"]).returns({})
+ provider.expects(:p4).with(['client', '-o', "puppet-1c5e7a8e4f702e5091dfba173bc0e7c0"]).returns({})
provider.expects(:p4).with(['client', '-i'], spec)
provider.create
end