Error in KryptOn/Magma SUnit Tests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in KryptOn/Magma SUnit Tests

Dane Jensen
As the first step in getting the hang of Magma, I'm trying to load  
Magma into a fresh image and run the sunit tests. So far so good with  
the loading, not so good with the tests though.

I'm getting a "MessageNotUnderstood: Rijndael  
class>>asMakoEncryptable:" in  
"MakoSecurityManager>>basicEncrypt:using:" error from the Magma tests.

I assumed it had something to do with KryptOn and ran the tests for  
it, same error. I'm probably missing some simple package somewhere,  
but have no clue which. Any ideas?

Thanks!
-Dane

Reply | Threaded
Open this post in threaded view
|

Re: Error in KryptOn/Magma SUnit Tests

Chris Muller
Hi Dane, that is strange.  I will take a look at it
tonight.

I assume you loaded "Cryptography 0.3" from SqueakMap
prior to loading "MagmaTesterLoader" from
SqueakSource.

The KryptOn tests should be run through the SUnit
browser, but the Magma tests cannot (because it uses a
multi-image testing extension of SUnit).  Instead, you
execute in a workspace:

  MagmaTestCase kickoff

Also, out of curiousity, what platform are you testing
on?

 - Chris


--- Dane Jensen <[hidden email]> wrote:

> As the first step in getting the hang of Magma, I'm
> trying to load
> Magma into a fresh image and run the sunit tests. So
> far so good with
> the loading, not so good with the tests though.
>
> I'm getting a "MessageNotUnderstood: Rijndael
> class>>asMakoEncryptable:" in
> "MakoSecurityManager>>basicEncrypt:using:" error
> from the Magma tests.
>
> I assumed it had something to do with KryptOn and
> ran the tests for
> it, same error. I'm probably missing some simple
> package somewhere,
> but have no clue which. Any ideas?
>
> Thanks!
> -Dane
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Error in KryptOn/Magma SUnit Tests

Chris Muller-2
In reply to this post by Dane Jensen
One more thing be sure you are running in Squeak 3.8.


--- Dane Jensen <[hidden email]> wrote:

> As the first step in getting the hang of Magma, I'm
> trying to load
> Magma into a fresh image and run the sunit tests. So
> far so good with
> the loading, not so good with the tests though.
>
> I'm getting a "MessageNotUnderstood: Rijndael
> class>>asMakoEncryptable:" in
> "MakoSecurityManager>>basicEncrypt:using:" error
> from the Magma tests.
>
> I assumed it had something to do with KryptOn and
> ran the tests for
> it, same error. I'm probably missing some simple
> package somewhere,
> but have no clue which. Any ideas?
>
> Thanks!
> -Dane
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error in KryptOn/Magma SUnit Tests

Dane Jensen
In reply to this post by Chris Muller
On Feb 7, 2006, at 9:09 AM, Chris Muller wrote:

> Hi Dane, that is strange.  I will take a look at it
> tonight.

I got it. I loaded everything into a fresh image and the KryptOn  
tests passed with flying colors.

Some digging in the working image revealed the missing method is an  
extension to BlockCipher added by KryptOn, and that the extensions  
weren't present in the broken image.

Reloading KryptOn into the broken image added the extensions and got  
the tests passing with flying colors.

> I assume you loaded "Cryptography 0.3" from SqueakMap
> prior to loading "MagmaTesterLoader" from
> SqueakSource.

Well... about that...

<sheepish look>I think what happened is I loaded MagmaServerLoader  
from SqueakSource *before* loading Cryptography, got an error about  
missing classes, remembered that those classes are from Cryptography  
and that I needed to load that first, loaded Cryptography, then hit  
proceed in the error thinking that all would be well with the  
dependency resolved.</sheepish look>

Turns out it wasn't. KryptOn continued loading fine, just without  
successfully adding methods to the classes from the missing  
Cryptography package.

Thanks,
-Dane