Testing collections of vurtual defined resources
As promised, I'm starting to blog the test scripts I write. I'll tag all of these with test.
Anyway, so I'm trying to verify that #787 is fixed, so I used this code:
define yay {
notify { "Testing $name": }
}
@yay { one: }
@yay { two: }
@yay { three: }
class outer {
realize(Yay["one"])
class inner {
realize(Yay["two"])
}
include inner
}
include outer
The point was to try to find a circumstance in which the defined resource got evaluated (i.e., turned into builtin resources) before it was marked non-virtual by the realize function. I tried a few iterations of this, and I consistently got:
notice: Testing one notice: Testing two
Meaning that it was working fine. So I closed the ticket.