Displaying 3 results from an estimated 3 matches for "custom_attribute".
Did you mean:
custom_attributes
2014 Feb 17
0
Custom policy executable
Hi,
I'm trying to create an autosign policy which checks for a custom attribute
in the CSR but I'm having some issue with the master not signing the
request.
My client has the following in /etc/puppet/csr_attributes.yaml
custom_attributes:
1.2.840.113549.1.9.7: foo
My policy is a simple bash script, in this case checking for foo
#!/bin/bash
CUSTOM_ATTR=$(echo "$(cat)" | grep "challengePassword" | awk -F ":"
'{print$2}')
if [[ "$CUSTOM_ATTR" == "foo" ]]
then
exit...
2006 Feb 22
0
model''s custom attributes not loaded if file is not in app/models/ folder, HELP!!
..., http://localhost:3000/userview, it always works.
* view the webpage, http://localhost:3000/powerview, first time it works,
refresh the page, works too.
* Now stop and restart the script/server webrick, or lighttpd, first time
works, then refresh
the page, rails return "undefined method <custom_attribute>".
*** note: unit and functional test passes though. Since first time view
works, but not subsequent view. I''ve tested on both windows XP and redhat
(centos, RHEL clone), same behavior. I''ve tried cleared browser cache,
ruby-session cache, same.
environment: rails 1.0, m...
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and
view tests and i have a question. Is this statement really correct:
"We highly recommend that you exploit the mock framework here rather
than providing real model objects in order to keep the view specs
isolated from changes to your models."
(http://rspec.rubyforge.org/documentation/rails/writing/views.html